@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}


/* Admin Layout Styles - Fully Responsive */
:root {
  --admin-primary: #667eea;
  --admin-secondary: #764ba2;
  --admin-accent: #f093fb;
  --admin-success: #00d4aa;
  --admin-warning: #ff9500;
  --admin-danger: #ff3b30;
  --admin-info: #5ac8fa;
  --admin-light: #f8f9fa;
  --admin-dark: #1a1a1a;
  --admin-gray: #6c757d;
  --admin-border: #e9ecef;
  --admin-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --admin-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --sidebar-width: 280px;
  --sidebar-collapsed: 80px;
  --header-height: 70px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.admin-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--admin-light) 0%, #e9ecef 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--admin-dark);
  line-height: 1.6;
}
.admin-content-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}
/* Admin Header */
.admin-header {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
  color: white;
  padding: 0;
  box-shadow: var(--admin-shadow-lg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  backdrop-filter: blur(10px);
}
.admin-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  max-width: 100%;
  margin: 0 auto;
}
.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sidebar-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.admin-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-notifications {
  position: relative;
}
.notification-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.notification-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--admin-danger);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid var(--admin-primary);
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.admin-profile:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.admin-name {
  font-weight: 500;
  font-size: 0.95rem;
}
.admin-dropdown-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.admin-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
/* Admin Sidebar */
.admin-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: white;
  box-shadow: var(--admin-shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--admin-border) transparent;
}
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: var(--admin-border);
  border-radius: 3px;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--admin-gray);
}
.admin-sidebar.collapsed {
  width: var(--sidebar-collapsed);
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-border);
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.sidebar-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--admin-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.admin-sidebar.collapsed .sidebar-header h2 {
  display: none;
}
.sidebar-header i {
  font-size: 2rem;
  color: var(--admin-primary);
  margin-bottom: 8px;
}
.admin-sidebar.collapsed .sidebar-header i {
  margin-bottom: 0;
}
.sidebar-nav {
  padding: 16px 0;
}
.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-menu-item {
  margin-bottom: 4px;
}
.sidebar-menu-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: none;
  color: var(--admin-gray);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0;
  position: relative;
}
.sidebar-menu-btn:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--admin-dark);
  transform: translateX(4px);
}
.sidebar-menu-btn.active {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.sidebar-menu-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  border-radius: 0 4px 4px 0;
}
.sidebar-menu-btn i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.admin-sidebar.collapsed .sidebar-menu-btn {
  padding: 14px;
  justify-content: center;
}
.admin-sidebar.collapsed .sidebar-menu-btn i {
  margin-right: 0;
  font-size: 1.2rem;
}
.admin-sidebar.collapsed .sidebar-menu-btn span {
  display: none;
}
.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  border-top: 1px solid var(--admin-border);
  background: white;
}
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: linear-gradient(135deg, var(--admin-danger) 0%, #dc3545 100%);
  color: white;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--admin-shadow);
}
.sidebar-logout-btn:hover {
  background: linear-gradient(135deg, #dc3545 0%, var(--admin-danger) 100%);
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-lg);
}
.admin-sidebar.collapsed .sidebar-logout-btn {
  padding: 14px;
  justify-content: center;
}
.admin-sidebar.collapsed .sidebar-logout-btn span {
  display: none;
}
/* Admin Main Content */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  background-color: transparent;
  min-height: calc(100vh - var(--header-height));
  overflow-x: auto;
}
.admin-main.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed);
}
.admin-main.mobile {
  margin-left: 0;
  padding: 16px;
}
/* Page Header */
.page-header {
  margin-bottom: 24px;
  width: 100%;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--admin-dark);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  color: var(--admin-gray);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}
/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  width: 100%;
}
.stat-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--admin-primary), var(--admin-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--admin-shadow-lg);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--admin-dark);
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card p {
  color: var(--admin-gray);
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.stat-change {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-success);
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
}
/* Dashboard Content */
.dashboard-content {
  display: grid;
  gap: 24px;
  width: 100%;
}
.dashboard-section {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
  width: 100%;
  box-sizing: border-box;
}
.dashboard-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--admin-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--admin-border);
}
/* Activities List */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.activity-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid var(--admin-border);
  transition: all 0.3s ease;
}
.activity-item:hover {
  transform: translateX(4px);
  box-shadow: var(--admin-shadow);
}
.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.activity-content p {
  margin: 0 0 4px 0;
  color: var(--admin-dark);
  font-size: 0.95rem;
  font-weight: 500;
}
.activity-time {
  color: var(--admin-gray);
  font-size: 0.85rem;
}
/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border: 2px solid var(--admin-border);
  border-radius: 12px;
  color: var(--admin-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--admin-shadow);
}
.action-btn:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-lg);
}
.action-btn i {
  font-size: 1.2rem;
}
/* Loading and Error States */
.loading-state, .error-state, .no-users, .no-tasks, .no-voucher {
  text-align: center;
  padding: 48px 24px;
  color: var(--admin-gray);
  background: white;
  border-radius: 16px;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
}
.loading-state i, .error-state i, .no-users i, .no-tasks i, .no-voucher i {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loading-state p, .error-state p, .no-users p, .no-tasks p, .no-voucher p {
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 500;
}
.error-state {
  color: var(--admin-danger);
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.05) 0%, rgba(255, 59, 48, 0.02) 100%);
}
.no-users, .no-tasks, .no-voucher {
  color: var(--admin-gray);
}
/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--admin-shadow-lg);
  border: 1px solid var(--admin-border);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--admin-border);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px 16px 0 0;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--admin-dark);
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--admin-gray);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.close-btn:hover {
  background: rgba(108, 117, 125, 0.1);
  color: var(--admin-dark);
}
.modal-body {
  padding: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--admin-dark);
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--admin-border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--admin-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
/* Responsive Design */
/* Large Desktop */
@media (min-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-content {
    grid-template-columns: 2fr 1fr;
    gap: 32px;
  }
}
/* Desktop */
@media (max-width: 1199px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .admin-main {
    padding: 20px;
  }
}
/* Tablet */
@media (max-width: 991px) {
  .admin-main {
    margin-left: var(--sidebar-width);
  }

  .admin-sidebar {
    width: var(--sidebar-width);
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }

  .page-header {
    padding: 20px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .dashboard-section {
    padding: 20px;
  }
}
/* Mobile Landscape */
@media (max-width: 768px) {
  .admin-main {
    margin-left: 0;
    padding: 16px;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }

  .admin-sidebar.mobile-closed {
    transform: translateX(-100%);
  }

  .admin-layout.mobile-sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
  }

  .admin-header-content {
    padding: 0 16px;
  }

  .admin-title {
    font-size: 1.25rem;
  }

  .sidebar-toggle {
    padding: 10px;
    font-size: 1.1rem;
  }

  .admin-avatar {
    width: 36px;
    height: 36px;
  }

  .admin-name {
    display: none;
  }

  .notification-badge {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }

  .page-header {
    padding: 16px;
    margin-bottom: 16px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .dashboard-content {
    gap: 16px;
  }

  .dashboard-section {
    padding: 16px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .modal-content {
    max-width: 95vw;
    margin: 20px;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
/* Mobile Portrait */
@media (max-width: 576px) {
  .admin-header-content {
    flex-direction: column;
    gap: 12px;
    height: auto;
    padding: 12px 16px;
  }

  .admin-header-left,
  .admin-header-right {
    width: 100%;
  }

  .admin-header-right {
    justify-content: space-between;
  }

  .admin-title {
    font-size: 1.1rem;
  }

  .sidebar-toggle {
    padding: 8px;
    font-size: 1rem;
  }

  .admin-avatar {
    width: 32px;
    height: 32px;
  }

  .notification-btn {
    padding: 8px;
  }

  .notification-badge {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card h3 {
    font-size: 1.75rem;
  }

  .page-header {
    padding: 16px;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .dashboard-section {
    padding: 16px;
  }

  .modal-content {
    max-width: 95vw;
    margin: 10px;
  }

  .modal-header,
  .modal-body {
    padding: 16px;
  }

  .loading-state,
  .error-state,
  .no-users,
  .no-tasks,
  .no-voucher {
    padding: 32px 16px;
  }

  .loading-state i,
  .error-state i,
  .no-users i,
  .no-tasks i,
  .no-voucher i {
    font-size: 3rem;
  }

  .loading-state p,
  .error-state p,
  .no-users p,
  .no-tasks p,
  .no-voucher p {
    font-size: 1rem;
  }
}
/* Extra Small Mobile */
@media (max-width: 480px) {
  .admin-main {
    padding: 12px;
  }

  .admin-header-content {
    padding: 8px 12px;
  }

  .page-header {
    padding: 12px;
    margin-bottom: 12px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 12px;
  }

  .dashboard-section {
    padding: 12px;
  }

  .modal-header,
  .modal-body {
    padding: 12px;
  }
}
/* Print Styles */
@media print {
  .admin-sidebar,
  .admin-header,
  .sidebar-toggle,
  .modal-overlay {
    display: none !important;
  }

  .admin-main {
    margin-left: 0 !important;
  }

  .page-header,
  .dashboard-section {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .admin-layout {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e9ecef;
  }

  .admin-sidebar {
    background: #2d2d2d;
    border-right: 1px solid #404040;
  }

  .sidebar-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    border-bottom-color: #404040;
  }

  .sidebar-menu-btn:hover {
    background: #404040;
  }

  .admin-main {
    background: transparent;
  }

  .page-header,
  .dashboard-section,
  .stat-card {
    background: #2d2d2d;
    border-color: #404040;
    color: #e9ecef;
  }

  .modal-content {
    background: #2d2d2d;
    border-color: #404040;
  }

  .modal-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    border-bottom-color: #404040;
  }
}
/* High Contrast Mode */
@media (prefers-contrast: high) {
  .admin-layout {
    background: white;
    color: black;
  }

  .admin-header {
    background: black;
    color: white;
  }

  .admin-sidebar {
    background: white;
    border-right: 2px solid black;
  }

  .sidebar-menu-btn.active {
    background: black;
    color: white;
  }

  .stat-card,
  .page-header,
  .dashboard-section {
    border: 2px solid black;
  }
}
/* Product Table Styles */
.products-table, .tasks-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
}
.products-table th,
.products-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}
.products-table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-weight: 600;
  color: var(--admin-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.products-table td {
  color: var(--admin-gray);
  font-size: 0.95rem;
}
.products-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.02);
}
.product-image-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumbnail-small {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--admin-border);
  transition: all 0.3s ease;
}
.product-thumbnail-small:hover {
  transform: scale(1.1);
  border-color: var(--admin-primary);
}
.product-name-cell, .task-title-cell {
  max-width: 200px;
}
.product-name-cell strong, .task-title-cell strong {
  color: var(--admin-dark);
  font-weight: 600;
}
.task-description-cell {
  max-width: 250px;
  line-height: 1.4;
}
.type-badge {
  background: linear-gradient(135deg, var(--admin-info) 0%, #17a2b8 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}
.completion-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.completion-rate {
  font-weight: 600;
  color: var(--admin-dark);
  font-size: 0.9rem;
}
.mini-progress-bar {
  width: 60px;
  height: 4px;
  background: var(--admin-border);
  border-radius: 2px;
  overflow: hidden;
}
.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--admin-success), #28a745);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.category-badge {
  background: linear-gradient(135deg, var(--admin-info) 0%, #17a2b8 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}
.status-active {
  background: linear-gradient(135deg, var(--admin-success) 0%, #28a745 100%);
  color: white;
}
.status-inactive {
  background: linear-gradient(135deg, var(--admin-danger) 0%, #dc3545 100%);
  color: white;
}
.action-buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
}
.action-btn {
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  color: white;
}
.action-btn.edit {
  background: linear-gradient(135deg, var(--admin-info) 0%, #17a2b8 100%);
  color: white;
}
.action-btn.edit:hover {
  background: linear-gradient(135deg, #17a2b8 0%, var(--admin-info) 100%);
  transform: translateY(-2px);
}
.action-btn.activate {
  background: linear-gradient(135deg, var(--admin-success) 0%, #28a745 100%);
  color: white;
}
.action-btn.activate:hover {
  background: linear-gradient(135deg, #28a745 0%, var(--admin-success) 100%);
  transform: translateY(-2px);
}
.action-btn.deactivate {
  background: linear-gradient(135deg, var(--admin-warning) 0%, #ffc107 100%);
  color: white;
}
.action-btn.deactivate:hover {
  background: linear-gradient(135deg, #ffc107 0%, var(--admin-warning) 100%);
  transform: translateY(-2px);
}
.action-btn.delete {
  background: linear-gradient(135deg, var(--admin-danger) 0%, #dc3545 100%);
  color: white;
}
.action-btn.delete:hover {
  background: linear-gradient(135deg, #dc3545 0%, var(--admin-danger) 100%);
  transform: translateY(-2px);
}
/* Tab Navigation */
.tab-navigation {
  display: flex;
  background: white;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
  width: fit-content;
}
.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  color: var(--admin-gray);
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.tab-btn:hover:not(.active) {
  background: rgba(102, 126, 234, 0.1);
  color: var(--admin-primary);
}
/* Table Container */
.table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
  margin-bottom: 24px;
}
.table-container::-webkit-scrollbar {
  height: 8px;
}
.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.table-container::-webkit-scrollbar-thumb {
  background: var(--admin-border);
  border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb:hover {
  background: var(--admin-gray);
}
/* Responsive Table */
@media (max-width: 768px) {
  .products-table {
    font-size: 0.85rem;
  }

  .products-table th,
  .products-table td {
    padding: 12px 8px;
  }

  .product-thumbnail-small {
    width: 32px;
    height: 32px;
  }

  .action-buttons {
    flex-direction: row;
    gap: 2px;
    flex-wrap: nowrap;
  }

  .action-btn {
    padding: 4px 6px;
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .tab-navigation {
    width: 100%;
    justify-content: center;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}.admin-home {
  padding: 2rem;
  background-color: #f8f9fa;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.page-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-primary {
  border-left-color: #3498db;
}

.stat-secondary {
  border-left-color: #9b59b6;
}

.stat-success {
  border-left-color: #27ae60;
}

.stat-info {
  border-left-color: #17a2b8;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: white;
}

.stat-primary .stat-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-secondary .stat-icon {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-success .stat-icon {
  background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-info .stat-icon {
  background: linear-gradient(135deg, #17a2b8, #138496);
}

.stat-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.25rem 0;
}

.stat-content p {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0 0 0.5rem 0;
}

.stat-change {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  background-color: #e8f5e8;
  color: #27ae60;
}

/* Dashboard Content */
.dashboard-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.dashboard-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #ecf0f1;
}

/* Activities List */
.activities-list {
  space-y: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ecf0f1;
  transition: background-color 0.2s ease;
}

.activity-item:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1rem;
  color: white;
}

.activity-item:nth-child(1) .activity-icon {
  background: linear-gradient(135deg, #27ae60, #229954);
}

.activity-item:nth-child(2) .activity-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.activity-item:nth-child(3) .activity-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.activity-item:nth-child(4) .activity-icon {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.activity-content p {
  margin: 0 0 0.25rem 0;
  color: #2c3e50;
  font-size: 0.95rem;
}

.activity-time {
  font-size: 0.85rem;
  color: #7f8c8d;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn i {
  font-size: 1.1rem;
  width: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-home {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}.admin-users {
  padding: 2rem;
  background: #f8f9fa;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.page-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
}

/* Controls Section */
.users-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
  min-width: 250px;
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.search-container input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #2573a7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-state i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.loading-state p {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin: 0;
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-state i {
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.error-state p {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

/* Table Container */
.users-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  overflow-y: visible;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.users-table thead {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}

.users-table th {
  padding: 1.2rem 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table th:last-child {
  min-width: 200px;
}

.users-table th:first-child {
  border-top-left-radius: 12px;
}

.users-table th:last-child {
  border-top-right-radius: 12px;
}

.users-table tbody tr {
  border-bottom: 1px solid #ecf0f1;
  transition: all 0.3s ease;
}

.users-table tbody tr:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.users-table td {
  padding: 1.2rem 1rem;
  color: #2c3e50;
  font-weight: 500;
}

.users-table td:last-child {
  min-width: 200px;
}

/* Badges */
.role-badge, .status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge {
  background: #e8f4fd;
  color: #3498db;
}

.status-badge {
  background: #d5f4e6;
  color: #27ae60;
}

.status-inactive {
  background: #fde8e8;
  color: #e74c3c;
}

.status-pending {
  background: #fef5e7;
  color: #f39c12;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.25rem;
  white-space: nowrap;
}

.action-btn.view {
  background: #e8f4fd;
  color: #3498db;
}

.action-btn.view:hover {
  background: #3498db;
  color: white;
  transform: scale(1.1);
}

.action-btn.edit {
  background: #fef5e7;
  color: #f39c12;
}

.action-btn.edit:hover {
  background: #f39c12;
  color: white;
  transform: scale(1.1);
}

.action-btn.delete {
  background: #fde8e8;
  color: #e74c3c;
  font-weight: 600;
  border: 2px solid #e74c3c;
}

.action-btn.delete:hover {
  background: #e74c3c;
  color: white;
  transform: scale(1.05);
  border-color: #c0392b;
}

.action-btn.referrals {
  background: #e8f8f5;
  color: #27ae60;
}

.action-btn.referrals:hover {
  background: #27ae60;
  color: white;
  transform: scale(1.1);
}

/* No Users State */
.no-users {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #95a5a6;
}

.no-users i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-users p {
  font-size: 1.2rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-users {
    padding: 1rem;
  }

  .users-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    max-width: none;
  }

  .users-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .users-table {
    min-width: 800px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .action-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .action-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .admin-users {
    padding: 0.5rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .users-table td,
  .users-table th {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }

  .action-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }
}

/* Animation for smooth transitions */
.users-table tbody tr {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #95a5a6;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 140, 141, 0.3);
}

.referral-code {
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
}

/* Referral Modal Styles */
.referral-modal {
  max-width: 800px;
}

.referral-summary {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.summary-item .label {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}

.summary-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.referrals-table-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.referrals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.referrals-table thead {
  background: #f8f9fa;
  position: sticky;
  top: 0;
}

.referrals-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e9ecef;
}

.referrals-table td {
  padding: 1rem;
  border-bottom: 1px solid #ecf0f1;
  color: #2c3e50;
}

.referrals-table tbody tr:hover {
  background: #f8f9fa;
}

.no-referrals {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #95a5a6;
}

.no-referrals i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-referrals p {
  font-size: 1.1rem;
  margin: 0;
}

/* Scrollbar Styling */
.users-table-container::-webkit-scrollbar,
.referrals-table-container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.users-table-container::-webkit-scrollbar-track,
.referrals-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb,
.referrals-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb:hover,
.referrals-table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Horizontal scrollbar styling for users table */
.users-table-container::-webkit-scrollbar {
  height: 8px;
}

.users-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}/* AdminVoucher.css */

/* General Styles */
.admin-voucher {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.page-header p {
  color: #666;
  font-size: 16px;
}

/* Stats Section */
.voucher-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #f0f0f0;
}

.stat-card h3 {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.stat-card p {
  color: #666;
  font-size: 14px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.close-btn:hover {
  color: #333;
  background: #f5f5f5;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #4f46e5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #4f46e5;
  color: #fff;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-large {
  padding: 12px 24px;
  font-size: 16px;
}

/* Loading and Error States */
.loading-state,
.error-state,
.no-voucher {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.loading-state i,
.error-state i {
  font-size: 40px;
  color: #666;
  margin-bottom: 16px;
}

.error-state i {
  color: #ef4444;
}

.loading-state p,
.error-state p,
.no-voucher p {
  color: #666;
  margin-bottom: 16px;
}

.no-voucher i {
  font-size: 48px;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* Vouchers Table */
.vouchers-table-container {
  background: #fff;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.vouchers-table-container::-webkit-scrollbar {
  height: 8px;
}

.vouchers-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.vouchers-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.vouchers-table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.vouchers-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.vouchers-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  background: #f9fafb;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.vouchers-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.vouchers-table tbody tr:hover {
  background: #fafafa;
}

.user-cell .user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: 500;
  color: #333;
}

.email {
  font-size: 12px;
  color: #666;
}

.code-cell .voucher-code {
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
}

.amount-cell {
  font-weight: 600;
  color: #333;
}

.type-cell {
  color: #666;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-success {
  background: #dcfce7;
  color: #166534;
}

.status-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.date-cell {
  color: #666;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #f9fafb;
}

.action-btn.copy:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.action-btn.delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.action-btn.view:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
}

/* Generate Voucher Section */
.generate-voucher-section {
  text-align: center;
  padding: 20px 0;
}

.generate-voucher-section .btn-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Receipt Modal Styles */
.receipt-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.receipt-modal-content {
  background: #fff;
  border-radius: 20px;
  width: 95vw;
  max-width: 550px;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  overflow-y: auto;
}

.receipt-main-header {
  padding: 28px 28px 20px;
}

.receipt-amount-section {
  margin-bottom: 20px;
}

.receipt-amount-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.receipt-amount-display {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 20px;
}

.receipt-status-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8f9fa;
  border-radius: 12px;
}

.receipt-status-title {
  font-size: 15px;
  color: #666;
  font-weight: 500;
}

.receipt-status-value.completed {
  color: #10b981;
  font-weight: 600;
  font-size: 14px;
  background: #d1fae5;
  padding: 6px 14px;
  border-radius: 20px;
}

.receipt-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0 28px;
}

.receipt-details {
  padding: 8px 28px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  min-height: 60px;
}

.receipt-label {
  font-size: 15px;
  color: #666;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}

.receipt-value {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 400;
  text-align: right;
  flex: 1.2;
  line-height: 1.4;
  word-break: break-word;
}

.reference-no {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 15px;
}

.receipt-actions {
  padding: 20px 28px;
}

.receipt-action-btn {
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 1.5px solid #d1d5db;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.receipt-action-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.receipt-help {
  padding: 24px 28px 28px;
  background: #f8f9fa;
}

.help-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.help-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.receipt-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.receipt-close-btn:hover {
  background: #fff;
  color: #333;
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-voucher {
    padding: 16px;
  }
  
  .voucher-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vouchers-table {
    display: block;
    overflow-x: auto;
  }
  
  .receipt-modal-content {
    margin: 0 16px;
  }
  
  .receipt-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .receipt-value {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .voucher-stats {
    grid-template-columns: 1fr;
  }
  
  .modal-content,
  .receipt-modal-content {
    margin: 0;
    border-radius: 12px;
  }
  
  .receipt-main-header {
    padding: 20px 16px 12px;
  }
  
  .receipt-details {
    padding: 12px 16px;
  }
  
  .receipt-actions,
  .receipt-help {
    padding: 16px;
  }
  
  .receipt-amount-title {
    font-size: 20px;
  }
  
  .receipt-amount-display {
    font-size: 38px;
  }

  .receipt-close-btn {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
  }

  /* Mobile Card Layout for Vouchers */
  .vouchers-table-container {
    display: none;
  }

  .voucher-cards-container {
    display: block;
  }

  .voucher-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e9ecef;
  }

  .voucher-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .voucher-card-user {
    flex: 1;
  }

  .voucher-card-user .username {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
  }

  .voucher-card-user .email {
    color: #666;
    font-size: 14px;
  }

  .voucher-card-status {
    flex-shrink: 0;
  }

  .voucher-card-body {
    display: grid;
    gap: 12px;
  }

  .voucher-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
  }

  .voucher-card-row:last-child {
    border-bottom: none;
  }

  .voucher-card-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
  }

  .voucher-card-value {
    font-weight: 500;
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 12px;
  }

  .voucher-card-code {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border: 1px solid #dee2e6;
  }

  .voucher-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f8f9fa;
  }

  .voucher-card-actions .action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
  }

  .voucher-card-actions .action-btn.view {
    background: #10b981;
    color: white;
  }

  .voucher-card-actions .action-btn.view:hover {
    background: #059669;
    transform: translateY(-1px);
  }

  .voucher-card-actions .action-btn.copy {
    background: #3b82f6;
    color: white;
  }

  .voucher-card-actions .action-btn.copy:hover {
    background: #2563eb;
    transform: translateY(-1px);
  }

  .voucher-card-actions .action-btn.delete {
    background: #ef4444;
    color: white;
  }

  .voucher-card-actions .action-btn.delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
  }
}

/* Desktop table styles - show table, hide cards */
@media (min-width: 769px) {
  .voucher-cards-container {
    display: none;
  }

  .vouchers-table-container {
    display: block;
  }
}/* Admin Customer Service Styles */
.admin-customer-service {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.communication-container {
  display: flex;
  gap: 20px;
  height: calc(100vh - 200px);
}

/* Users Panel */
.users-panel {
  flex: 1;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  min-width: 300px;
}

.users-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.users-header h3 {
  margin: 0;
  color: #333;
}

.search-container {
  position: relative;
  width: 250px;
}

.search-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.search-container input {
  width: 100%;
  padding: 8px 12px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.users-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.user-item:hover {
  background: #f8f9fa;
}

.user-item.active {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.user-email {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.user-balance {
  font-size: 12px;
  color: #28a745;
  font-weight: 500;
}

.user-status {
  margin-left: 10px;
  position: relative;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background: #28a745;
}

.status-dot.offline {
  background: #6c757d;
}

.user-item.has-new-message::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  border: 2px solid white;
}

/* Chat Panel */
.chat-panel {
  flex: 2;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  min-width: 400px;
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-user-info {
  display: flex;
  align-items: center;
}

.chat-user-info .user-avatar {
  margin-right: 15px;
}

.user-details h4 {
  margin: 0 0 2px 0;
  color: #333;
}

.user-details p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.close-chat-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  display: flex;
  margin-bottom: 10px;
}

.message.admin-message {
  justify-content: flex-end;
}

.message.user-message {
  justify-content: flex-start;
}

.message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
}

.admin-message .message-content {
  background: #007bff;
  color: white;
  border-bottom-right-radius: 4px;
}

.user-message .message-content {
  background: #f1f3f4;
  color: #333;
  border-bottom-left-radius: 4px;
}

.message-content p {
  margin: 0 0 5px 0;
  word-wrap: break-word;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
}

.chat-input {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 10px;
  align-items: center;
}

.file-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.file-btn:hover {
  background: #e0e0e0;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

.chat-input input[type="text"]:focus {
  border-color: #667eea;
}

.send-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
  transform: scale(1.1);
}

.send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.chat-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
}

.chat-input input:focus {
  border-color: #007bff;
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.send-btn:hover:not(:disabled) {
  background: #0056b3;
}

.send-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.media-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-image:hover {
  transform: scale(1.05);
}

.file-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.file-attachment i {
  font-size: 24px;
  color: #6c757d;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 500;
  color: #495057;
  word-break: break-all;
}

.file-size {
  font-size: 12px;
  color: #6c757d;
}

.download-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: #0056b3;
}

.no-chat-selected {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
}

.no-chat-selected i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #dee2e6;
}

.no-chat-selected h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.no-chat-selected p {
  margin: 0;
  font-size: 14px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  color: #333;
  margin-bottom: 5px;
  font-size: 28px;
}

.page-header p {
  color: #666;
  margin: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-card h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 24px;
}

.stat-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.stat-danger h3 { color: #dc3545; }
.stat-warning h3 { color: #ffc107; }
.stat-success h3 { color: #28a745; }

/* Filters Section */
.filters-section {
  margin-bottom: 20px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #007bff;
  color: #007bff;
}

.filter-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

/* Tickets Container */
.tickets-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.tickets-list {
  max-height: 800px;
  overflow-y: auto;
}

/* Ticket Card */
.ticket-card {
  border-bottom: 1px solid #e9ecef;
  padding: 20px;
  transition: background 0.3s ease;
}

.ticket-card:hover {
  background: #f8f9fa;
}

.ticket-card:last-child {
  border-bottom: none;
}

/* Ticket Header */
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.ticket-info h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 18px;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.ticket-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ticket-badges {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-danger { background: #fee; color: #c82333; }
.priority-warning { background: #fff3cd; color: #856404; }
.priority-success { background: #d4edda; color: #155724; }

.status-danger { background: #f8d7da; color: #721c24; }
.status-warning { background: #fff3cd; color: #856404; }
.status-success { background: #d4edda; color: #155724; }
.status-secondary { background: #e2e3e5; color: #383d41; }

/* Ticket Content */
.ticket-content {
  margin-bottom: 15px;
}

.ticket-content p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* Ticket Replies */
.ticket-replies {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.ticket-replies h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
}

.reply {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 6px;
}

.reply:last-child {
  margin-bottom: 0;
}

.admin-reply {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.user-reply {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
}

.reply-content p {
  margin: 0 0 5px 0;
  color: #333;
}

.reply-time {
  font-size: 12px;
  color: #666;
}

/* Ticket Actions */
.ticket-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
}

/* No Tickets State */
.no-tickets {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-tickets i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #dee2e6;
}

.no-tickets p {
  margin: 0;
  font-size: 16px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.modal-body {
  padding: 20px;
}

.original-message {
  margin-bottom: 20px;
}

.original-message h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.message-content {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.message-content p {
  margin: 0 0 8px 0;
  color: #555;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.reply-form {
  margin-bottom: 20px;
}

.reply-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.reply-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-height: 120px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #eee;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-success {
  background: #28a745;
  color: white;
}

/* Loading and Error States */
.loading-state,
.error-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-state i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #007bff;
}

.error-state i {
  font-size: 24px;
  margin-bottom: 10px;
  color: #dc3545;
}

.error-state .btn {
  margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-customer-service {
    padding: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .ticket-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-badges {
    align-self: flex-end;
  }

  .ticket-actions {
    justify-content: center;
  }

  .filter-buttons {
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 24px;
  }

  .ticket-card {
    padding: 15px;
  }

  .ticket-meta {
    flex-direction: column;
    gap: 5px;
  }

  .ticket-actions .btn {
    flex: 1;
    justify-content: center;
  }
}/* Login Page Styles */
.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.login-header p {
  color: #718096;
  font-size: 1rem;
  margin: 0;
}

.login-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1rem;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
  color: #a0aec0;
}

.error-message {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border: 1px solid #feb2b2;
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.login-footer p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #718096;
  font-weight: 600;
}

.login-footer p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-container {
    padding: 16px;
  }

  .login-card {
    padding: 24px;
    margin: 0;
  }

  .login-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }

  .login-header p {
    font-size: 0.9rem;
  }

  .input-group input {
    padding: 14px 14px 14px 44px;
    font-size: 0.95rem;
  }

  .input-group i {
    left: 14px;
    font-size: 0.9rem;
  }

  .login-btn {
    padding: 14px;
    font-size: 0.95rem;
  }

  .login-footer {
    padding: 16px;
  }

  .login-footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .login-card {
    padding: 20px;
  }

  .login-header {
    margin-bottom: 24px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .input-group input {
    padding: 12px 12px 12px 40px;
    font-size: 0.9rem;
  }

  .input-group i {
    left: 12px;
    font-size: 0.85rem;
  }

  .login-btn {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* Loading animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}
