/* Layout for the /admin area. Assumes ../hotel/style.css is loaded first
   and provides --border, --ink-soft, --qb-green-dark, .qb-card, .qb-btn,
   .flash, .badge. Fallback values below only kick in if those vars are
   missing, so this still looks reasonable standalone. */

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg, #f7f7f5);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border, #e4e4e0);
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
}

.admin-brand {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 28px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.admin-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink-soft, #5c5c56);
    font-size: 14px;
    font-weight: 500;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: var(--bg, #f0f0ec);
    color: #111;
}

.nav-badge {
    background: #b3261e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 4px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border, #e4e4e0);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-stat-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.admin-stat-label {
    font-size: 13px;
    color: var(--ink-soft, #5c5c56);
}

.admin-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-quick-actions a {
    display: block;
    padding: 12px 14px;
    background: var(--bg, #f4f4f0);
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 14px;
}

.admin-quick-actions a:hover {
    background: var(--border, #e4e4e0);
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

@media (max-width: 720px) {
    .admin-two-col { grid-template-columns: 1fr; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: auto; }
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft, #5c5c56);
    border-top: 1px solid var(--border, #e4e4e0);
    padding-top: 14px;
}

.admin-sidebar-footer a {
    color: var(--qb-green-dark, #1f7a1f);
}

.admin-main {
    flex-grow: 1;
    padding: 32px 40px;
    max-width: 900px;
}

.admin-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg, #f7f7f5);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
}

.admin-auth-card {
    background: #fff;
    border: 1px solid var(--border, #e4e4e0);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
}

.admin-auth-subtitle {
    color: var(--ink-soft, #5c5c56);
    font-size: 13.5px;
    margin: -8px 0 18px;
}

.admin-jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-jobs-table th,
.admin-jobs-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border, #e4e4e0);
    vertical-align: top;
}

.admin-jobs-table .job-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.admin-jobs-table .job-actions form {
    display: inline;
}

.admin-jobs-table .job-actions button,
.admin-jobs-table .job-actions a {
    background: none;
    border: none;
    padding: 0;
    color: var(--qb-green-dark, #1f7a1f);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.admin-jobs-table .job-actions button.danger {
    color: #b3261e;
}
