/* ===== DASHBOARD STYLES ===== */

/* Animated Background - Light Professional Theme */
.dashboard-container {
  margin-top: 100px;
  padding: 40px 0;
  min-height: calc(100vh - 100px);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #f1f3f5 50%, #e8eaed 75%, #f8f9fa 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  position: relative;
  overflow: hidden;
}

.dashboard-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(10, 22, 40, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(13, 31, 53, 0.03) 0%, transparent 50%);
  animation: moveGradient 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes moveGradient {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Subtle Pattern */
.dashboard-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(10, 22, 40, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: floatParticles 30s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes floatParticles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

/* Dashboard Navbar - Match Website Navbar */
.dashboard-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-bottom: none;
  transition: var(--transition);
}

.dashboard-navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-navbar .nav-links a {
  color: var(--navy-light);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
}

.dashboard-navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--golden), var(--golden-light));
  transition: var(--transition);
}

.dashboard-navbar .nav-links a:hover::after,
.dashboard-navbar .nav-links a.active::after {
  width: 100%;
}

.dashboard-navbar .nav-links a:hover,
.dashboard-navbar .nav-links a.active {
  color: var(--golden);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(10, 22, 40, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  transition: var(--transition);
}

.user-profile:hover {
  background: rgba(10, 22, 40, 0.08);
  box-shadow: 0 4px 15px rgba(10, 22, 40, 0.1);
}

.user-name {
  color: var(--navy-light);
  font-weight: 600;
  font-size: 15px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--golden), var(--golden-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-blue);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6); }
}

.dashboard-logout-btn {
  background: transparent;
  border: 2px solid var(--navy-light);
  color: var(--navy-light);
  padding: 8px 16px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
  margin-left: 12px;
}

.dashboard-logout-btn:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.3);
}

.dashboard-logout-btn i {
  font-size: 16px;
}

/* Dashboard Header */
.dashboard-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.dashboard-header h1 {
  font-size: 48px;
  color: #0A1628;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-shadow: none;
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-header h1 i {
  color: var(--golden);
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dashboard-header p {
  font-size: 20px;
  color: #5a6a7a;
  animation: slideUp 0.6s ease 0.2s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Summary Cards - Glassmorphism */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.summary-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 22, 40, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease both;
}

.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.2s; }
.summary-card:nth-child(3) { animation-delay: 0.3s; }
.summary-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s;
}

.summary-card:hover::before {
  left: 100%;
}

.summary-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.summary-card.credited {
  border-color: rgba(16, 185, 129, 0.5);
}

.summary-card.debited {
  border-color: rgba(239, 68, 68, 0.5);
}

.summary-card.balance {
  border-color: rgba(212, 175, 55, 0.5);
}

.summary-card.transactions {
  border-color: rgba(255, 255, 255, 0.5);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(10, 22, 40, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 22, 40, 0.15);
  transition: all 0.3s ease;
}

.summary-card:hover .card-icon {
  transform: rotate(360deg) scale(1.1);
}

.summary-card.credited .card-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.summary-card.debited .card-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.8));
  color: white;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.summary-card.balance .card-icon {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(184, 148, 31, 0.8));
  color: white;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.summary-card.transactions .card-icon {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.8), rgba(9, 26, 68, 0.8));
  color: white;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.4);
}

.card-details h3 {
  font-size: 16px;
  color: #0A1628;
  margin-bottom: 8px;
  font-weight: 600;
}

.card-details .amount {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'Playfair Display', serif;
}

.card-details .amount.positive {
  color: #10b981;
}

.card-details .amount.negative {
  color: #ef4444;
}

.card-details .amount.neutral {
  color: #0A1628;
}

.card-details .period {
  font-size: 13px;
  color: #6c757d;
  opacity: 0.9;
}

/* Section Header - Glassmorphism */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(10, 22, 40, 0.1);
}

.section-header h2 {
  font-size: 28px;
  color: #0A1628;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header h2 i {
  color: var(--golden);
}

.section-header p {
  font-size: 16px;
  color: #6c757d;
}

/* Chart Section - Glassmorphism */
.chart-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
  border: 1px solid rgba(10, 22, 40, 0.1);
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.chart-container {
  position: relative;
  height: 400px;
  margin-top: 20px;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 15px;
  padding: 20px;
}

/* Filter Controls - Glassmorphism */
.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid rgba(10, 22, 40, 0.15);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  color: #0A1628;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: rgba(212, 175, 55, 0.8);
  border-color: var(--golden);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Transaction Section - Glassmorphism */
.transaction-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px;
}

.transaction-table {
  width: 100%;
  border-collapse: collapse;
}

.transaction-table thead {
  background: linear-gradient(135deg, #0A1628, #091a44);
  backdrop-filter: blur(10px);
  color: #fff;
}

.transaction-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-table tbody tr {
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  transition: var(--transition);
}

.transaction-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: scale(1.01);
}

.transaction-table td {
  padding: 16px;
  font-size: 14px;
  color: #0A1628;
}

.transaction-date {
  color: #6c757d;
  font-weight: 500;
}

.transaction-description {
  color: #0A1628;
  font-weight: 600;
}

.transaction-id {
  color: #6c757d;
  font-family: monospace;
  font-size: 13px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0A1628;
}

.payment-method i {
  color: var(--golden);
}

.transaction-amount {
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.transaction-amount.credited {
  color: #10b981;
}

.transaction-amount.debited {
  color: #ef4444;
}

.transaction-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.transaction-status.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.transaction-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.transaction-status.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Service Stats - Glassmorphism */
.service-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 25px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(10, 22, 40, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  background: rgba(10, 22, 40, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 22, 40, 0.15);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: rotate(360deg) scale(1.1);
}

.active-services .stat-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.pending-services .stat-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.8));
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.expired-services .stat-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.8));
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.total-spent .stat-icon {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.8), rgba(9, 26, 68, 0.8));
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.4);
}

.stat-info h3 {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #0A1628;
  font-family: 'Playfair Display', serif;
}

/* Services Filter - Glassmorphism */
.services-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.service-filter-btn {
  padding: 12px 24px;
  border: 1px solid rgba(10, 22, 40, 0.15);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  color: #0A1628;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}

.service-filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.service-filter-btn.active {
  background: rgba(212, 175, 55, 0.8);
  border-color: var(--golden);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Purchased Services Grid - Glassmorphism */
.purchased-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.service-card-dashboard {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(10, 22, 40, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease both;
}

.service-card-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.service-card-dashboard::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.service-card-dashboard:hover::after {
  transform: scale(1.5);
  transition: transform 0.5s ease;
}

.service-card-dashboard:nth-child(1) { animation-delay: 0.05s; }
.service-card-dashboard:nth-child(2) { animation-delay: 0.1s; }
.service-card-dashboard:nth-child(3) { animation-delay: 0.15s; }
.service-card-dashboard:nth-child(4) { animation-delay: 0.2s; }
.service-card-dashboard:nth-child(5) { animation-delay: 0.25s; }
.service-card-dashboard:nth-child(6) { animation-delay: 0.3s; }

.service-card-dashboard:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.service-card-dashboard.active {
  border-color: rgba(16, 185, 129, 0.5);
}

.service-card-dashboard.active::before {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.service-card-dashboard.pending {
  border-color: rgba(245, 158, 11, 0.5);
}

.service-card-dashboard.pending::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

.service-card-dashboard.expired {
  border-color: rgba(239, 68, 68, 0.5);
}

.service-card-dashboard.expired::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.service-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.service-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.service-badge.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.service-icon {
  width: 65px;
  height: 65px;
  background: rgba(10, 22, 40, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--golden);
  margin-bottom: 20px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.1);
}

.service-card-dashboard:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

.service-card-dashboard h3 {
  font-size: 20px;
  color: #0A1628;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-package {
  font-size: 14px;
  color: var(--golden);
  font-weight: 600;
  margin-bottom: 15px;
}

.service-details {
  margin-bottom: 20px;
}

.service-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  font-size: 14px;
}

.service-detail-item:last-child {
  border-bottom: none;
}

.service-detail-item .label {
  color: #6c757d;
  font-weight: 500;
}

.service-detail-item .value {
  color: #0A1628;
  font-weight: 600;
}

.service-price {
  font-size: 26px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}

.service-dates {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6c757d;
  padding-top: 15px;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
}

/* Service History Table - Glassmorphism */
.service-history-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
  border: 1px solid rgba(10, 22, 40, 0.1);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
}

.service-table thead {
  background: linear-gradient(135deg, #0A1628, #091a44);
  color: #fff;
}

.service-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-table tbody tr {
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  transition: var(--transition);
}

.service-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: scale(1.01);
}

.service-table td {
  padding: 16px;
  font-size: 14px;
  color: #0A1628;
}

.service-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.service-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.service-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.service-status.expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    margin-top: 80px;
    padding: 20px 0;
  }

  .dashboard-header h1 {
    font-size: 28px;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 300px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .filter-controls {
    width: 100%;
    justify-content: space-between;
  }

  .filter-btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 13px;
  }

  .purchased-services-grid {
    grid-template-columns: 1fr;
  }

  .service-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-name {
    display: none;
  }

  .dashboard-logout-btn span {
    display: none;
  }

  .dashboard-logout-btn {
    padding: 8px 12px;
    margin-left: 8px;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .service-table {
    min-width: 800px;
  }

  .service-table th,
  .service-table td {
    padding: 12px 10px;
    font-size: 13px;
  }
}
