/* ==========================================================================
   Jharkhand United Taekwondo - Sober & Clean Admin Dashboard Styles
   Clean, Professional, Corporate Layout (No Emojis, No Flashy Glows)
   ========================================================================== */

:root {
  --admin-bg: #f8fafc;
  --admin-sidebar-bg: #0f172a;
  --admin-sidebar-hover: #1e293b;
  --admin-sidebar-active: #334155;
  --admin-card-bg: #ffffff;
  --admin-card-border: #e2e8f0;
  --admin-text-main: #0f172a;
  --admin-text-body: #334155;
  --admin-text-muted: #64748b;
  --admin-primary: #0f172a;
  --admin-primary-hover: #1e293b;
  --admin-accent: #2563eb;
  --admin-accent-hover: #1d4ed8;
  --admin-radius: 8px;
  --admin-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.admin-body {
  background-color: var(--admin-bg);
  color: var(--admin-text-body);
  min-height: 100vh;
  display: flex;
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   Layout: Sidebar + Main Area
   ========================================================================== */

.admin-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background-color: var(--admin-sidebar-bg);
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.sidebar-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sidebar-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand-text h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.sidebar-brand-text span {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.8px;
  padding: 12px 10px 4px 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-link-content i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: #64748b;
}

.sidebar-link:hover {
  background: var(--admin-sidebar-hover);
  color: #ffffff;
}

.sidebar-link:hover i {
  color: #ffffff;
}

.sidebar-link.active {
  background: var(--admin-sidebar-active);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-link.active i {
  color: #38bdf8;
}

.sidebar-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
}

.sidebar-badge.blue {
  background: #2563eb;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-meta h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.user-meta p {
  font-size: 0.72rem;
  color: #94a3b8;
}

.sidebar-logout-btn {
  color: #94a3b8;
  font-size: 1rem;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.sidebar-logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   Admin Main Content
   ========================================================================== */

.admin-main {
  flex: 1;
  margin-left: 250px;
  padding: 24px 32px;
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--admin-card-border);
}

.topbar-title h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--admin-text-main);
  letter-spacing: -0.2px;
}

.topbar-title p {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Buttons (Sober, Clean)
   ========================================================================== */

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-gold, .btn-admin-primary {
  background: var(--admin-primary);
  color: #ffffff !important;
}

.btn-admin-gold:hover, .btn-admin-primary:hover {
  background: var(--admin-primary-hover);
}

.btn-admin-outline {
  background: #ffffff;
  color: var(--admin-text-body);
  border: 1px solid #cbd5e1;
}

.btn-admin-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-admin-red {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-admin-red:hover {
  background: #fef2f2;
}

/* ==========================================================================
   Stat Cards (Simple, Sober)
   ========================================================================== */

.stats-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--admin-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--admin-shadow);
}

.stat-info span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--admin-text-muted);
}

.stat-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin-top: 3px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   Admin Cards & Tables (Clean White Cards)
   ========================================================================== */

.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: var(--admin-radius);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--admin-shadow);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-card-border);
}

.admin-card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-header h2 i {
  color: #475569;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--admin-card-border);
}

.admin-table td {
  padding: 12px 14px;
  font-size: 0.84rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

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

/* ==========================================================================
   Badges (Clean, Minimal)
   ========================================================================== */

.badge-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-unread, .badge-pending {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-read, .badge-contacted {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-replied, .badge-approved {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Form Controls (Sober Clean White Inputs)
   ========================================================================== */

.form-group-admin {
  margin-bottom: 16px;
}

.form-group-admin label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-control-admin {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 9px 12px;
  border-radius: 6px;
  color: #0f172a;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control-admin:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-input-wrap { position: relative; }
.password-input-wrap .form-control-admin { padding-right: 44px; }
.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 6px;
  cursor: pointer;
}
.password-visibility-toggle:hover, .password-visibility-toggle:focus-visible { color: #0f172a; }
.recovery-note { margin: 4px 0 18px; padding: 11px 12px; border: 1px solid #dbeafe; border-radius: 6px; background: #f8fbff; color: #475569; font-size: .76rem; line-height: 1.55; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ==========================================================================
   Gallery & Media Cards (Clean White Grid)
   ========================================================================== */

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.admin-media-card {
  background: #ffffff;
  border: 1px solid var(--admin-card-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--admin-shadow);
}

.admin-media-thumb {
  position: relative;
  height: 160px;
  background: #f1f5f9;
  overflow: hidden;
}

.admin-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-category {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.admin-media-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-media-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--admin-text-main);
  margin-bottom: 5px;
  line-height: 1.3;
}

.admin-media-body p {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  flex: 1;
  line-height: 1.4;
}

.admin-media-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.admin-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 500;
}

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

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

/* ==========================================================================
   Login Page (Simple & Sober)
   ========================================================================== */

.login-page-body {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.login-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.login-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* ==========================================================================
   Admin 2-Column Responsive Grid & Mobile Header Defaults
   ========================================================================== */

.admin-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-mobile-header {
  display: none;
}

/* ==========================================================================
   Mobile Responsive Styles (<= 992px)
   ========================================================================== */

@media (max-width: 992px) {
  /* Prevent horizontal screen overflowing */
  html, body.admin-body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  body.admin-sidebar-open {
    overflow: hidden !important;
    touch-action: none !important;
    height: 100vh !important;
  }

  .admin-layout {
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  /* Dedicated Mobile Top Navigation Bar */
  .admin-mobile-header {
    display: flex;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    z-index: 950;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
  }

  .admin-mobile-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .admin-mobile-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .admin-mobile-menu-btn:hover,
  .admin-mobile-menu-btn:active {
    background: #334155;
    color: #38bdf8;
  }

  .admin-mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    min-width: 0;
  }

  .admin-mobile-logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }

  .admin-mobile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
  }

  .admin-mobile-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
  }

  .admin-mobile-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-mobile-subtitle {
    font-size: 0.63rem;
    font-weight: 600;
    color: #fbbf24;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .admin-mobile-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .admin-mobile-action-btn:hover {
    background: #334155;
    color: #38bdf8;
  }

  .admin-mobile-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  }

  /* Off-canvas Sidebar Drawer */
  .admin-sidebar {
    width: 280px;
    max-width: 85vw;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
    box-shadow: none;
  }

  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5);
  }

  .sidebar-close-btn {
    display: flex !important;
  }

  /* Backdrop Overlay */
  .admin-sidebar-backdrop {
    display: none;
  }

  .admin-sidebar-backdrop.visible {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    border: none;
    cursor: pointer;
  }

  /* Main Area Adjustments */
  .admin-main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 18px 16px;
    box-sizing: border-box;
  }

  .mobile-admin-toggle {
    display: none !important;
  }

  .admin-grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .admin-main {
    padding: 14px 12px;
    min-width: 0;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }

  .topbar-title h1 {
    font-size: 1.22rem;
  }

  .topbar-title p {
    font-size: 0.78rem;
  }

  .topbar-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .topbar-actions .btn-admin {
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .admin-card {
    padding: 15px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
  }

  .admin-card-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-card-header h2 {
    font-size: 0.98rem;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-admin-card {
    padding: 14px 12px;
  }

  .stat-info h2 {
    font-size: 1.35rem;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .admin-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 12px;
  }

  .admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Modern Mobile Cards for Dashboard Tables */
  .admin-table.admin-table-mobile-cards {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-table.admin-table-mobile-cards thead {
    display: none !important;
  }

  .admin-table.admin-table-mobile-cards tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .admin-table.admin-table-mobile-cards tbody tr {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas: 
      "name status"
      "info status"
      "action action" !important;
    gap: 6px 12px !important;
    padding: 13px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
  }

  .admin-table.admin-table-mobile-cards tbody tr:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .admin-table.admin-table-mobile-cards tbody td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .admin-table.admin-table-mobile-cards tbody td:nth-child(1) {
    grid-area: name !important;
  }

  .admin-table.admin-table-mobile-cards tbody td:nth-child(2) {
    grid-area: info !important;
  }

  .admin-table.admin-table-mobile-cards tbody td:nth-child(3) {
    grid-area: status !important;
    align-self: start !important;
    justify-self: end !important;
  }

  .admin-table.admin-table-mobile-cards tbody td:nth-child(4) {
    grid-area: action !important;
    border-top: 1px dashed #e2e8f0 !important;
    padding-top: 9px !important;
    margin-top: 4px !important;
    width: 100% !important;
  }

  .admin-table.admin-table-mobile-cards tbody td:nth-child(4) .btn-admin {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-radius: 6px !important;
  }

  .admin-table.admin-table-mobile-cards tbody td:nth-child(4) .btn-admin:hover,
  .admin-table.admin-table-mobile-cards tbody td:nth-child(4) .btn-admin:active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
  }

  /* Medal Holder Table on Mobile Cards */
  .admin-table.admin-table-medals tbody tr {
    grid-template-areas: 
      "name medal"
      "info year" !important;
  }

  .admin-table.admin-table-medals tbody td:nth-child(3) {
    grid-area: medal !important;
  }

  .admin-table.admin-table-medals tbody td:nth-child(4) {
    grid-area: year !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    text-align: right !important;
    align-self: center !important;
    justify-self: end !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
  }

  /* Regular data tables (without mobile-cards class) */
  .admin-table:not(.admin-table-mobile-cards) {
    min-width: 460px;
    border: 1px solid var(--admin-card-border);
    border-radius: 6px;
  }
}

@media (max-width: 420px) {
  .admin-mobile-title {
    font-size: 0.8rem;
  }

  .admin-mobile-subtitle {
    display: none;
  }

  .stats-admin-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 24px 16px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}
