/* ===== ADMIN SPECIFIC STYLES ===== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.admin-content {
  margin-left: 250px;
  flex: 1;
  padding: 2rem;
  background-color: var(--light-bg);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin: 0;
}

.sidebar-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: #bdc3c7;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-left-color: var(--accent-color);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(194, 17, 97, 0.12);
  text-align: center;
  border: 1px solid rgba(194, 17, 97, 0.08);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #c21161;
  margin: 1rem 0;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
}

.admin-table {
  width: 100%;
  background-color: var(--white);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(194, 17, 97, 0.12);
}

.admin-table table {
  width: 100%;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-actions .btn {
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-container {
  max-width: 1200px;
}

.dashboard-card {
  background-color: var(--white);
  border-radius: 0.8rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(194, 17, 97, 0.12);
  border: 1px solid rgba(194, 17, 97, 0.08);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-border);
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 1.5rem;
}

/* ===== REFERRAL SECTION ===== */
.referral-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.referral-stat {
  background: linear-gradient(135deg, #c21161 0%, #db9cb8 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 0.6rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(194, 17, 97, 0.25);
}

.referral-stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.referral-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.copy-code {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.copy-code input {
  flex: 1;
  background-color: var(--light-bg);
  border: 2px solid var(--light-border);
}

.copy-btn {
  padding: 0.75rem 1rem;
}

.referrals-list {
  margin-top: 1.5rem;
}

.referral-item {
  background-color: var(--light-bg);
  padding: 1rem;
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.referral-info {
  flex: 1;
}

.referral-name {
  font-weight: 600;
  color: var(--text-dark);
}

.referral-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.referral-points {
  background-color: var(--success-color);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 0.3rem;
  font-weight: 600;
}

/* ===== AUTH PAGES ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.auth-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 0.6rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.auth-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-light);
}

.auth-link a {
  color: var(--accent-color);
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.6rem;
  box-shadow: var(--shadow-lg);
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.contact-info {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.contact-text p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== LOADING & SPINNER ===== */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-border);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* ===== RESPONSIVE ADMIN ===== */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 200px;
  }

  .admin-content {
    margin-left: 200px;
    padding: 1rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .admin-title {
    font-size: 1.5rem;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    width: 150px;
  }

  .admin-content {
    margin-left: 150px;
    padding: 0.5rem;
  }

  .sidebar-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .auth-form {
    padding: 1.5rem;
  }

  .admin-table {
    overflow-x: auto;
  }

  .referral-item {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
}

/* ===== ANALYTICS DASHBOARD STYLES ===== */
.analytics-grid {
  display: grid;
  gap: 1.5rem;
}

.analytics-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(194, 17, 97, 0.12);
  border: 1px solid rgba(194, 17, 97, 0.08);
  transition: all 0.3s ease;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.analytics-card:hover {
  box-shadow: 0 8px 24px rgba(194, 17, 97, 0.2);
  transform: translateY(-2px);
}

.analytics-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2rem;
}

.analytics-card-content {
  flex: 1;
}

.analytics-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.analytics-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.analytics-description {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== RESPONSIVE ANALYTICS ===== */
@media (max-width: 768px) {
  .analytics-card {
    flex-direction: column;
    text-align: center;
  }

  .analytics-card-icon {
    margin: 0 auto;
  }

  .analytics-value {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-card {
    padding: 1rem;
  }

  .analytics-value {
    font-size: 1.5rem;
  }

  .analytics-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
