.admin-login-body { min-height: 100vh; background: linear-gradient(135deg,#12203f,#0b1530); }

.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar-backdrop { display: none; }
.admin-mobile-toggle { display: none; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: #12203f; color: #fff; min-height: 100vh;
  position: sticky; top: 0; align-self: flex-start; transition: transform .2s ease;
}
.admin-sidebar .brand { padding: 1.2rem 1.2rem .8rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar nav { padding: .8rem; }
.admin-sidebar a {
  display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.75); text-decoration: none;
  padding: .6rem .8rem; border-radius: 8px; font-size: .9rem; font-weight: 500; margin-bottom: 2px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-sidebar .section-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin: 1rem .8rem .3rem; }
.admin-main { flex: 1; background: #f5f6fa; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e7e9f0; padding: .9rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 1.5rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.2rem; box-shadow: 0 4px 14px rgba(18,32,63,.06); }
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: #12203f; }
.admin-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #8a8fa3; border-bottom-width: 1px; }
.badge-new { background:#e8f0fe; color:#1a56c4; }

@media (max-width: 991px) {
  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.admin-menu-open { overflow-y: auto; }
  .admin-wrap { flex-direction: column; min-height: 100%; }
  .admin-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 8px;
    background: #f3f4f8;
    color: #12203f;
    margin-right: .75rem;
  }
  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1040;
  }
  .admin-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .admin-sidebar {
    width: min(82vw, 300px);
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transform: translateX(-100%);
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: .75rem;
  }
  .admin-sidebar a {
    margin-bottom: 0;
    white-space: normal;
    align-items: flex-start;
  }
  .admin-main { min-height: auto; }
  .admin-topbar {
    align-items: center;
    gap: .5rem;
    padding: .9rem 1rem;
  }
  .admin-topbar .small { font-size: .8rem; }
  .admin-content { padding: 1rem; }
}

@media (max-width: 575px) {
  .admin-sidebar nav { grid-template-columns: 1fr; }
  .admin-content { padding: .8rem; }
  .stat-card { padding: 1rem; }
  .admin-topbar .small { font-size: .8rem; }
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
