/* =============================================================
   Admin shell layout
   ============================================================= */

html, body {
    height: 100%;
    margin: 0;
}

.admin-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- Sidebar ------------------------------------------------- */

.sidebar {
    width: 220px;
    min-width: 220px;
    background: #1e2a3b;
    color: #c9d3e0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a8fa6;
}

.sidebar-nav {
    list-style: none;
    padding: .5rem 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav a {
    display: block;
    padding: .6rem 1.25rem;
    color: #c9d3e0;
    text-decoration: none;
    font-size: .9rem;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-left-color: #4a9eff;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.btn-logout {
    background: none;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #c9d3e0;
    padding: .35rem .75rem;
    font-size: .85rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* --- Main area ----------------------------------------------- */

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f4f6f9;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e0e4ea;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.topbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e2a3b;
}

.topbar-user {
    font-size: .85rem;
    color: #6b7a8d;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem;
}

/* =============================================================
   Login / Verify pages
   ============================================================= */

.login-body {
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e2a3b;
    letter-spacing: -.02em;
}

.login-subtitle {
    color: #6b7a8d;
    font-size: .9rem;
    margin: .25rem 0 0;
}

/* =============================================================
   Utilities
   ============================================================= */

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, .25);
    border-color: #4a9eff;
}
