* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.admin-container {
    display: flex;
}
/* =========================
   Dashboard
========================= */

/* =========================
   Dashboard
========================= */

.page-header {
  margin-bottom: 28px;
}

.page-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.muted{
  color:#64748b;
  font-size:14px;
  margin-top:4px;
}

.dash-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  margin-top:20px;
}

.dash-card{
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.dash-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border-color: #d4d7e1;
}

.dash-card:nth-child(1)::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.dash-card:nth-child(2)::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.dash-card:nth-child(3)::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.dash-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.dash-card:nth-child(1) .dash-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.dash-card:nth-child(2) .dash-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.dash-card:nth-child(3) .dash-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.dash-number{
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.dash-label{
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.dash-actions{
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-outline {
  background: white;
  color: #667eea;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

/* responsive */
@media (max-width: 900px){
  .dash-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .dash-card { padding: 16px; gap: 12px; }
  .page-header h2 { font-size: 24px; }
}

/* Sidebar */

.sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: fixed;
    transition: all 0.3s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.15);
    z-index: 1000;
}

.sidebar .logo {
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .logo h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar .menu {
    list-style: none;
    padding: 12px 0;
}

.sidebar .menu li {
    padding: 0;
    margin: 4px 8px;
}

.sidebar .menu li a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .menu li a i {
    width: 20px;
    text-align: center;
}

.sidebar .menu li a:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #fff;
    padding-left: 20px;
}

.sidebar .menu li a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Main */

.main-content {
    margin-left: 260px;
    width: 100%;
    transition: margin-left 0.3s ease;
}

/* Topbar */

.topbar {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar .toggle-btn {
    font-size: 22px;
    cursor: pointer;
    color: #333;
    display: none;
    transition: all 0.3s ease;
}

.topbar .toggle-btn:hover {
    color: #667eea;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.admin-user a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-user a:hover {
    text-decoration: underline;
}

.content {
    padding: 28px;
    min-height: 100vh;
}

/* Mobile Responsive */

@media (max-width: 768px) {
    .sidebar {
        left: -260px;
        width: 260px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar .toggle-btn {
        display: block;
    }

    .content {
        padding: 16px;
    }
}/* =========================
   Form UI (Admin)
========================= */

.content h1, .content h2 {
  margin-bottom: 20px;
  font-weight: 700;
  color: #0f172a;
  font-size: 28px;
}

.content form {
  max-width: 550px;
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  border: 1px solid #e5e7eb;
}

.content form label {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.content form input[type="text"],
.content form input[type="number"],
.content form input[type="date"],
.content form input[type="email"],
.content form input[type="tel"],
.content form select,
.content form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-size: 14px;
  margin-bottom: 12px;
}

.content form textarea {
  min-height: 100px;
  resize: vertical;
  font-family: 'Segoe UI', sans-serif;
}

.content form input:focus,
.content form select:focus,
.content form textarea:focus {
  background: #ffffff;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.content form select {
  cursor: pointer;
}

/* Submit Button */
.content form button[type="submit"],
.content form input[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.content form button[type="submit"]:hover,
.content form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Back link */
.content form a {
  display: inline-block;
  margin-top: 12px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.content form a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Small helper text (if you use <small>) */
.content form small {
  display: block;
  color: #64748b;
  margin-top: -2px;
  margin-bottom: 10px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .content {
    padding: 16px;
  }
  .content form {
    max-width: 100%;
    padding: 20px;
    border-radius: 12px;
  }
}
/* =========================
   Tables (Admin)
========================= */

.table-wrap{
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* if you didn't add wrapper, still style table */
.content table{
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.content table th{
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.content table td{
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: #334155;
}

.content table tr:nth-child(even) td{
  background: #f8fafc;
}

.content table tr:hover td{
  background: #f0f4ff;
  transition: background 0.2s ease;
}

/* Actions link -> button look */
.content table td a{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #667eea;
  transition: all 0.3s ease;
  margin-right: 4px;
}

.content table td a:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive table scroll */
@media (max-width: 900px){
  .content table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================
   Modern Admin Alerts
========================= */

.alert{
  position: relative;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  animation: fadeSlide 0.3s ease-in-out;
}

/* Success */
.alert-success{
  background: #f0fdf4;
  color: #166534;
  border-color: #22c55e;
}

/* Error */
.alert-error{
  background: #fef2f2;
  color: #991b1b;
  border-color: #ef4444;
}

/* Info */
.alert-info{
  background: #eff6ff;
  color: #1e3a8a;
  border-color: #3b82f6;
}

/* Warning */
.alert-warning{
  background: #fffbeb;
  color: #92400e;
  border-color: #f59e0b;
}

/* Close button */
.alert .close-btn{
  margin-left: auto;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.6;
  transition: 0.2s;
}

.alert .close-btn:hover{
  opacity: 1;
}

/* Animation */
@keyframes fadeSlide{
  from{
    opacity:0;
    transform: translateY(-8px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}
/* Sidebar + overlay fix */
.sidebar{
  top:0;
  left:0;
  z-index:1100;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
}

.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index:1050;
}

.overlay.active{
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px){
  .sidebar{
    left:-260px;
    width:260px;
  }
  .sidebar.active{
    left:0;
  }
  body.sidebar-open{
    overflow:hidden;
  }
}
/* =========================
   Footer
========================= */

.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
html, body {
  height: 100%;
}

.admin-container {
  min-height: 100vh;
  display: flex;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}/* ============================= */
/*        FORM CARD STYLE        */
/* ============================= */

.content {
    padding: 30px;
}

.form-card {
    background: #ffffff;
    max-width: 600px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.form-card h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #1e40af;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    text-decoration: none;
    color: #6b7280;
}

.back-link:hover {
    color: #111827;
}

/* =========================
   Additional Modern Styles
========================= */

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Text Selection */
::selection {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Focus outline for keyboard navigation */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Page Header Styling */
.page-header {
  background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #fef08a;
  color: #713f12;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #e5e7eb;
  border-radius: 50%;
  border-top-color: #667eea;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Transition utilities */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover lift effect */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Responsive improvements */
@media (max-width: 640px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  
  .dash-card {
    padding: 16px;
  }
  
  .content {
    padding: 16px;
  }
  
  .page-header {
    padding: 16px;
  }
  
  .dash-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}