/* Frontend Dashboard Styles */
.sam-affiliate-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sam-dashboard-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
}

.sam-dashboard-header h2 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 300;
}

.sam-dashboard-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.sam-affiliate-info {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sam-affiliate-info h3 {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.sam-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.sam-info-item {
  display: flex;
  flex-direction: column;
}

.sam-info-item label {
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  font-size: 14px;
}

.sam-affiliate-code {
  background: #f8f9fa;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 16px;
  color: #495057;
}

.sam-commission-rate {
  font-size: 18px;
  font-weight: bold;
  color: #28a745;
}

.sam-affiliate-links {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.sam-link-generator {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.sam-link-generator input {
  flex: 1;
  min-width: 300px;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.sam-generated-link {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.sam-generated-link input {
  flex: 1;
  min-width: 300px;
  padding: 12px;
  border: 1px solid #28a745;
  border-radius: 4px;
  background: #f8fff9;
  font-family: "Courier New", monospace;
}

.sam-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.sam-button-primary {
  background: #007cba;
  color: white;
}

.sam-button-primary:hover {
  background: #005a87;
  color: white;
}

.sam-button-secondary {
  background: #6c757d;
  color: white;
}

.sam-button-secondary:hover {
  background: #545b62;
  color: white;
}

.sam-stats-overview {
  margin-bottom: 30px;
}

.sam-stats-overview h3 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.sam-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.sam-stat-card {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sam-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sam-stat-card .sam-stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.sam-stat-card h4 {
  margin: 0 0 10px 0;
  color: #6c757d;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sam-stat-card .sam-stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
}

.sam-recent-activity {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sam-recent-activity h3 {
  margin-top: 0;
  color: #2c3e50;
}

.sam-activity-tabs {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.sam-tab-button {
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.sam-tab-button.active {
  color: #007cba;
  border-bottom-color: #007cba;
}

.sam-tab-button:hover {
  color: #007cba;
}

.sam-tab-content {
  display: none;
}

.sam-tab-content.active {
  display: block;
}

.sam-activity-list {
  min-height: 200px;
}

.sam-notice {
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.sam-notice-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.sam-notice-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.sam-notice-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

/* Registration Form Styles */
.sam-registration-form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sam-form-group {
  margin-bottom: 20px;
}

.sam-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.sam-form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.sam-form-group input:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sam-affiliate-dashboard {
    padding: 10px;
  }

  .sam-link-generator,
  .sam-generated-link {
    flex-direction: column;
  }

  .sam-link-generator input,
  .sam-generated-link input {
    min-width: auto;
  }

  .sam-stats-grid {
    grid-template-columns: 1fr;
  }

  .sam-info-grid {
    grid-template-columns: 1fr;
  }
}
