/*
 * Mailchimp-inspired design for Site Users application
 * Using vanilla CSS with modern, clean styling
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #241c15;
  background-color: #fff;
  line-height: 1.6;
}

/* Header Navigation */
.header-nav {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007c89;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #241c15;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #007c89;
}

.nav-cta {
  background-color: #ffe01b;
  color: #241c15;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.nav-cta:hover {
  background-color: #241c15;
  color: #fff;
  transform: translateY(-1px);
}

.nav-secondary {
  background-color: #ffe01b;
  color: #241c15;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 2px solid #241c15;
  transition: all 0.2s ease;
}

.nav-secondary:hover {
  background-color: #241c15;
  color: #fff;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #007c89 0%, #00a8b8 100%);
  color: white;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  background-color: #ffe01b;
  color: #241c15;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.hero-cta:hover {
  background-color: #fff;
  color: #007c89;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #007c89;
  color: white;
}

.btn-primary:hover {
  background-color: #006570;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 124, 137, 0.3);
}

.btn-secondary {
  background-color: #ffe01b;
  color: #241c15;
}

.btn-secondary:hover {
  background-color: #ffdc00;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #007c89;
  border: 2px solid #007c89;
}

.btn-outline:hover {
  background-color: #007c89;
  color: white;
}

/* Cards and sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #241c15;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* How it works page specific styles */
.how-it-works {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.how-it-works h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #241c15;
  margin-bottom: 2rem;
  text-align: center;
}

.steps {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  background-color: #007c89;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #241c15;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #6b7280;
  font-size: 1.1rem;
}

/* Forms */
.form-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 3rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
}

.form-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #241c15;
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #241c15;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #007c89;
  box-shadow: 0 0 0 3px rgba(0, 124, 137, 0.1);
  transform: translateY(-1px);
}

.form-input:hover {
  border-color: #9ca3af;
}

.form-submit {
  width: 100%;
  background-color: #007c89;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.form-submit:hover {
  background-color: #006570;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 124, 137, 0.3);
}

.form-submit:active {
  transform: translateY(0);
}

.form-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: #007c89;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.form-link:hover {
  color: #006570;
  text-decoration: underline;
}

.form-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  color: #9ca3af;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e5e7eb;
  z-index: 1;
}

.form-divider span {
  background-color: #fff;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* Error messages */
.error-explanation {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-explanation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.error-explanation li {
  color: #dc2626;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.error-explanation li:last-child {
  margin-bottom: 0;
}

/* Form page layout */
.form-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
}

.form-page .header-nav {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

/* Dashboard styles */
.dashboard-header {
/*  background: linear-gradient(135deg, #007c89 0%, #00a8b8 100%);*/
  color: white;
  padding: 1rem 0;
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  font-size: 0.95rem;
  opacity: 0.7;
  font-weight: 400;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
  color: #007c89;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.dashboard-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Table styles */
.table-container {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #6b7280;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background-color: #f8fafc;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.table-actions a {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.table-actions .edit {
  background-color: #ffe01b;
  color: #241c15;
}

.table-actions .edit:hover {
  background-color: #ffdc00;
}

.table-actions .delete {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.table-actions .delete:hover {
  background-color: #dc2626;
  color: white;
}

.table-actions .view {
  background-color: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.table-actions .view:hover {
  background-color: #0284c7;
  color: white;
}

/* Alert messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-warning {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.alert-info {
  background-color: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .main-content {
    padding: 0 1rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-actions {
    flex-direction: column;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .table {
    min-width: 600px;
  }
}
