@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html, body {
    width: 100%;
    overflow-x: hidden;
}
html.admin-html,
body.admin-body {
    overflow-x: visible;
}

:root {
    --admin-bg: #f3f6fb;
    --admin-surface: #ffffff;
    --admin-muted: #64748b;
    --admin-border: #e2e8f0;
    --admin-primary-a: #4f46e5;
    --admin-primary-b: #7c3aed;
}
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top right, #dbeafe 0%, transparent 35%),
        radial-gradient(circle at bottom left, #ede9fe 0%, transparent 40%),
        var(--admin-bg);
}

.auth-page {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}
.auth-hero {
    border-radius: 18px;
    padding: 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2) 0%, transparent 35%),
        linear-gradient(140deg, #4338ca 0%, #7c3aed 55%, #0f172a 100%);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.2);
}
.auth-hero h2 {
    margin: 14px 0 10px;
    font-size: 30px;
    line-height: 1.15;
}
.auth-hero p {
    margin: 0 0 16px;
    color: #e2e8f0;
    font-size: 14px;
}
.auth-hero ul {
    margin: 0;
    padding: 0 0 0 18px;
}
.auth-hero ul.auth-hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.45;
}
.auth-hero-feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.auth-hero-feature-icon svg {
    width: 16px;
    height: 16px;
}
.auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 24px;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.14);
}
.auth-card h1 { margin: 0 0 8px; font-size: 24px; }
.auth-card p { margin: 0 0 18px; color: var(--admin-muted); font-size: 14px; }
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.auth-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.auth-brand strong {
    display: block;
    font-size: 15px;
    line-height: 1.15;
    color: #0f172a;
}
.auth-brand small {
    color: var(--admin-muted);
    font-size: 12px;
}
.auth-brand.auth-brand-light strong,
.auth-brand.auth-brand-light small {
    color: #fff;
}
.auth-alert {
    margin-bottom: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}
.auth-field { margin-bottom: 12px; }
.auth-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.auth-field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--admin-primary-a);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.auth-check label {
    font-size: 13px;
    color: #475569;
}
.auth-btn {
    margin-top: 8px;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--admin-primary-a), var(--admin-primary-b));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.auth-btn:hover {
    transform: translateY(-1px);
}
.auth-back-link {
    margin-top: 12px;
    display: inline-flex;
    color: var(--admin-primary-a);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.auth-back-link:hover {
    text-decoration: underline;
}

.admin-layout {
    --admin-sidebar-w: 270px;
    --admin-sidebar-w-collapsed: 90px;
    --admin-sidebar-offset: var(--admin-sidebar-w);
    min-height: 100vh;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    gap: 0;
    padding: 0;
    border-radius: 0;
    overflow-x: visible;
    overflow-y: visible;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.72);
}
.admin-layout:has(.admin-sidebar--collapsed) {
    --admin-sidebar-offset: var(--admin-sidebar-w-collapsed);
}
.admin-sidebar {
    width: var(--admin-sidebar-w);
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    z-index: 40;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    transition:
        width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.36s ease;
    will-change: width;
}
.admin-sidebar--collapsed {
    width: var(--admin-sidebar-w-collapsed);
    overflow-x: visible;
    z-index: 200;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow:
        1px 0 0 rgba(255, 255, 255, 0.04) inset,
        16px 0 48px rgba(15, 23, 42, 0.22);
}
.admin-brand-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px 16px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
    margin-bottom: 10px;
    position: relative;
}
.admin-brand-text {
    flex: 1;
    min-width: 0;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-sidebar--collapsed .admin-brand-text {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.admin-sidebar-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}
.admin-sidebar-toggle:hover {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 20px rgba(15, 23, 42, 0.35);
}
.admin-sidebar-toggle:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}
.admin-sidebar-toggle__icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: block;
}
.admin-sidebar-toggle__chev {
    position: absolute;
    inset: 0;
    width: 22px;
    height: 22px;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-sidebar-toggle__chev--expand {
    opacity: 0;
    transform: scale(0.88);
}
.admin-sidebar--collapsed .admin-sidebar-toggle__chev--collapse {
    opacity: 0;
    transform: scale(0.88);
}
.admin-sidebar--collapsed .admin-sidebar-toggle__chev--expand {
    opacity: 1;
    transform: scale(1);
}
.admin-sidebar--collapsed .admin-brand {
    flex-direction: column;
    gap: 12px;
    padding: 14px 10px 16px;
    margin-bottom: 8px;
    border-bottom-color: rgba(148, 163, 184, 0.12);
}
.admin-sidebar--collapsed .admin-brand-logo-wrap {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 6px 16px rgba(15, 23, 42, 0.35);
}
.admin-sidebar--collapsed .admin-brand-logo {
    width: 30px;
    height: 30px;
    margin: 0;
    object-fit: contain;
    object-position: center;
}
.admin-sidebar--collapsed .admin-sidebar-toggle {
    margin: 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 11px;
}
.admin-brand strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
}
.admin-brand small {
    color: #94a3b8;
    font-size: 12px;
}
.admin-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.admin-menu {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
.admin-sidebar--collapsed .admin-menu {
    overflow-x: visible;
}
.admin-menu a {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    margin: 0 10px 6px;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}
.menu-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}
.menu-section-title {
    margin: 10px 14px 8px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    overflow: hidden;
}
.menu-section-title__text {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-sidebar--collapsed .menu-section-title {
    margin: 6px 0 4px;
    height: 0;
    margin-top: 4px;
    margin-bottom: 4px;
    opacity: 0;
    pointer-events: none;
}
.menu-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    flex-shrink: 0;
    transition: margin 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-sidebar--collapsed .menu-icon {
    margin-right: 0;
    width: 22px;
    height: 22px;
}
.admin-sidebar--collapsed .menu-icon svg {
    width: 20px;
    height: 20px;
}
.admin-sidebar--collapsed .sidebar-actions .menu-icon svg {
    width: 18px;
    height: 18px;
}
.admin-sidebar--collapsed .admin-menu > a {
    justify-content: center;
    align-items: center;
    padding: 11px 0;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 7px;
    min-height: 44px;
    border-radius: 14px;
    position: relative;
    box-sizing: border-box;
}
.admin-sidebar--collapsed .admin-menu > a:hover,
.admin-sidebar--collapsed .admin-menu > a.active {
    transform: none;
}
.admin-sidebar--collapsed .admin-menu > a:hover {
    background: rgba(148, 163, 184, 0.14);
    box-shadow: none;
}
.admin-sidebar--collapsed .admin-menu > a.active {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
    box-shadow:
        inset 0 0 0 1px rgba(52, 211, 153, 0.28),
        0 6px 18px rgba(15, 23, 42, 0.35);
}
.admin-sidebar--collapsed .admin-menu > a.active:hover {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
    box-shadow:
        inset 0 0 0 1px rgba(52, 211, 153, 0.32),
        0 6px 18px rgba(15, 23, 42, 0.35);
}
.admin-sidebar--collapsed .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}
.menu-icon svg {
    width: 16px;
    height: 16px;
}
.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(148, 163, 184, 0.2);
    color: #34d399;
    transform: translateX(2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.22);
}
.admin-menu-group {
    margin: 0 10px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.12);
}
.admin-menu-group__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    border-radius: 12px;
    user-select: none;
}
.admin-menu-group__summary::-webkit-details-marker {
    display: none;
}
.admin-menu-group__summary::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.85;
}
.admin-menu-group[open] .admin-menu-group__summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.admin-sidebar--collapsed .admin-menu-group__summary::after {
    display: none;
}
.admin-sidebar--collapsed .admin-menu-group__summary {
    justify-content: center;
    align-items: center;
    padding: 11px 0;
    margin: 0 10px;
    min-height: 44px;
    border-radius: 14px;
    box-sizing: border-box;
}
.admin-sidebar--collapsed .admin-menu-group {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 6px;
    position: relative;
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    overflow: visible;
}
.admin-sidebar--collapsed .admin-menu-group__items {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 212px;
    padding: 8px;
    margin: 0;
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    box-shadow:
        0 22px 50px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.admin-sidebar--collapsed .admin-menu-group:hover .admin-menu-group__items,
.admin-sidebar--collapsed .admin-menu-group[open] .admin-menu-group__items,
.admin-sidebar--collapsed .admin-menu-group:focus-within .admin-menu-group__items {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}
.admin-menu-group__items {
    padding: 4px 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-menu-group__items a {
    margin: 0;
    padding-left: 38px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}
.admin-sidebar--collapsed .admin-menu-group__items a {
    padding: 9px 12px;
    border-radius: 10px;
    margin: 0;
}
.admin-menu-group__items a:hover,
.admin-menu-group__items a.active {
    color: #34d399;
}
.sidebar-actions {
    margin-top: auto;
    padding: 12px 10px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 4px;
}
.admin-sidebar--collapsed .sidebar-actions {
    gap: 7px;
    padding: 14px 10px 18px;
    border-top-color: rgba(148, 163, 184, 0.12);
}
.sidebar-actions form {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
}
.sidebar-action-link {
    width: 100%;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0 10px;
    position: relative;
    transition: background 0.15s ease;
    box-sizing: border-box;
}
button.sidebar-action-link {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}
.sidebar-actions .menu-label {
    flex: 0 1 auto;
}
.admin-sidebar--collapsed .sidebar-action-link {
    justify-content: center;
    align-items: center;
    padding: 0 8px;
    min-height: 40px;
    height: auto;
    border-radius: 12px;
}
.admin-sidebar--collapsed .sidebar-actions .menu-icon {
    margin-right: 0;
    width: 20px;
    height: 20px;
}
.admin-sidebar--collapsed .sidebar-actions .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}
.sidebar-action-link:hover {
    background: rgba(148, 163, 184, 0.15);
}
.sidebar-action-link.danger {
    color: #f87171;
}
.sidebar-action-link.danger:hover {
    background: rgba(248, 113, 113, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .admin-sidebar,
    .admin-main,
    .admin-brand-text,
    .menu-section-title__text,
    .menu-label,
    .menu-icon,
    .admin-sidebar-toggle__chev,
    .admin-menu-group__items {
        transition: none !important;
    }
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: var(--admin-sidebar-offset);
    width: calc(100% - var(--admin-sidebar-offset));
    max-width: calc(100% - var(--admin-sidebar-offset));
    box-sizing: border-box;
    background: transparent;
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition:
        margin-left 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.07) 0%, transparent 45%),
        rgba(255, 255, 255, 0.95);
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.admin-topbar:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.admin-topbar-left h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-weight: 800;
}
.admin-page-title-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 10px;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 6px 14px rgba(67, 56, 202, 0.12);
    flex-shrink: 0;
}
.admin-page-title-icon svg {
    width: 18px;
    height: 18px;
}
.admin-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    vertical-align: middle;
}
.admin-title-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
    flex-shrink: 0;
}
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-mini-status {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #64748b;
    font-size: 12px;
}
.admin-mini-status .mini-pill {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    padding: 6px 11px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.admin-mini-status .mini-pill:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}
.admin-mini-status strong {
    color: #059669;
}
.admin-mini-status .mini-pill-status {
    background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}
.admin-topbar-search {
    position: relative;
}
.admin-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.admin-search-icon svg {
    width: 16px;
    height: 16px;
}
.admin-topbar-search input {
    width: 250px;
    height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    padding: 0 12px 0 34px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.admin-topbar-search input:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}
.admin-topbar-search input:focus {
    outline: none;
    border-color: var(--admin-primary-a);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.admin-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 6px 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}
.admin-profile-btn:hover .admin-profile {
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.admin-profile-wrap {
    position: relative;
}
.admin-profile-btn {
    border: 0;
    cursor: pointer;
}
.admin-profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    box-shadow: 0 16px 24px rgba(15, 23, 42, 0.12);
    padding: 6px;
    display: none;
    z-index: 30;
    animation: profileDropdownIn 0.16s ease;
}
.admin-profile-dropdown.open {
    display: block;
}
.admin-profile-dropdown a,
.admin-profile-dropdown button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 10px;
    display: block;
    cursor: pointer;
}
.admin-profile-dropdown a,
.admin-profile-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-menu-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.profile-menu-icon svg {
    width: 16px;
    height: 16px;
}
.admin-profile-dropdown a:hover,
.admin-profile-dropdown button:hover {
    background: #f1f5f9;
}
.admin-profile-dropdown .profile-menu-danger {
    color: #dc2626;
}
.admin-profile-dropdown .profile-menu-danger:hover {
    color: #b91c1c;
    background: #fef2f2;
}
@keyframes profileDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.admin-profile-avatar {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    overflow: hidden;
}
.admin-profile-avatar img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.admin-profile strong {
    display: block;
    font-size: 12px;
    line-height: 1.1;
}
.admin-profile small {
    color: #64748b;
    font-size: 11px;
}
.admin-main h1 { margin: 0 0 6px; font-size: 28px; }
.admin-main p { margin: 0 0 18px; color: var(--admin-muted); }
.admin-main-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.admin-main-head p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e2e8f0;
    border-left: 3px solid #22c55e;
    border-radius: 12px;
    padding: 10px 14px;
}
.admin-btn-primary {
    text-decoration: none;
    border: 0;
    border-radius: 12px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--admin-primary-a), var(--admin-primary-b));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.24);
    transition: transform 0.15s ease;
}
.admin-btn-primary:hover {
    transform: translateY(-1px);
}
.admin-btn-secondary {
    text-decoration: none;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}
.admin-btn-icon {
    gap: 8px;
}
.btn-inline-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-inline-icon svg {
    width: 16px;
    height: 16px;
}
.admin-btn-success {
    border: 0;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25);
}
.admin-btn-success:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(22, 163, 74, 0.32);
}
.admin-btn-pdf {
    border: 0;
    background: linear-gradient(135deg, #be123c 0%, #e11d48 45%, #fb7185 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(190, 18, 60, 0.28);
}
.admin-btn-pdf:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(190, 18, 60, 0.36);
}
.admin-btn-reset {
    border: 0;
    background: linear-gradient(135deg, #334155 0%, #475569 50%, #64748b 100%);
    color: #f8fafc;
    box-shadow: 0 10px 22px rgba(51, 65, 85, 0.22);
}
.admin-btn-reset:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(51, 65, 85, 0.3);
}
.admin-alert-success,
.admin-alert-error {
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}
.admin-alert-success { background: #dcfce7; color: #166534; }
.admin-alert-error { background: #fee2e2; color: #991b1b; }
.admin-table-wrap {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}
.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}
.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: var(--admin-muted);
    background: #f8fafc;
}
.admin-table th:last-child,
.admin-table td:last-child {
    width: 1%;
    white-space: nowrap;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}
.status-scheduled { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.status-ongoing { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.status-done { background: #e2e8f0; color: #334155; border-color: #cbd5e1; }
.status-cancelled { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.admin-empty {
    text-align: center !important;
    color: var(--admin-muted);
}
.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.admin-table-actions form {
    margin: 0;
}
.table-action-btn {
    height: 32px;
    padding: 0 11px;
    width: 90px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.table-action-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}
.table-action-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.table-action-icon svg {
    width: 14px;
    height: 14px;
}
.table-action-btn-archive {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: #a5f3fc;
    color: #0f766e;
}
.table-action-btn-restore {
    background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #166534;
}
.table-action-btn-danger {
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    color: #b91c1c;
}
/* Meetings — share link & edit: aksen warna halus */
.table-action-btn-share {
    width: auto;
    min-width: 112px;
    padding: 0 12px;
    background: linear-gradient(165deg, #faf5ff 0%, #ede9fe 45%, #e9d5ff 100%);
    border-color: #c4b5fd;
    color: #6d28d9;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 6px 16px rgba(109, 40, 217, 0.14);
}
.table-action-btn-share:hover {
    border-color: #a78bfa;
    color: #5b21b6;
    box-shadow:
        0 8px 22px rgba(91, 33, 182, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.95);
}
.table-action-btn-edit {
    background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 40%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 6px 16px rgba(29, 78, 216, 0.11);
}
.table-action-btn-edit:hover {
    border-color: #60a5fa;
    color: #1e40af;
    box-shadow:
        0 8px 22px rgba(29, 78, 216, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.95);
}
.admin-pagination {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.admin-pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-pagination .page-link:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}
.admin-pagination .page-link.active {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-color: #635bff;
    color: #ffffff;
}
.admin-pagination .page-link.disabled {
    pointer-events: none;
    opacity: 0.45;
}
.meeting-form {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}
.meeting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.meeting-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.meeting-field.full {
    grid-column: 1 / -1;
}
.meeting-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.meeting-field input,
.meeting-field select,
.meeting-field textarea {
    width: 100%;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}
.meeting-field input:focus,
.meeting-field select:focus,
.meeting-field textarea:focus {
    outline: none;
    border-color: var(--admin-primary-a);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}
.meeting-share-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}
.meeting-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}
.admin-filter-form {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
    margin-bottom: 12px;
}
.admin-segmented-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 10px;
    background: #eef2ff;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    padding: 4px;
}
.segmented-tab {
    min-width: 140px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.segmented-tab.active {
    background: #ffffff;
    color: #312e81;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.settings-main-head p {
    border-left: 3px solid #6366f1;
    background:
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
    color: #e2e8f0;
}
.settings-page .settings-primary-btn {
    background: linear-gradient(90deg, #4338ca, #6366f1);
    box-shadow: 0 12px 24px rgba(67, 56, 202, 0.3);
}
.settings-page .settings-primary-btn:hover {
    box-shadow: 0 14px 28px rgba(67, 56, 202, 0.36);
}
.settings-card {
    padding: 16px;
    border: 1px solid #e6edf6;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.settings-card.settings-card-accent {
    border-color: rgba(99, 102, 241, 0.2);
    background:
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.16) 0%, transparent 52%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #312e81 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}
.settings-card.settings-card-accent .card-head h3 {
    color: #e2e8f0;
}
.settings-card.settings-card-accent .settings-label {
    color: #93c5fd;
}
.settings-card.settings-card-accent .settings-value {
    color: #ffffff;
}
.settings-card.settings-card-accent .settings-desc {
    color: #cbd5e1;
}
.settings-card.settings-card-accent .settings-item {
    border-bottom-color: rgba(148, 163, 184, 0.24);
}
.settings-card.settings-card-accent .settings-badge {
    background: rgba(129, 140, 248, 0.2);
    border-color: rgba(129, 140, 248, 0.36);
    color: #c7d2fe;
}
.settings-card-full {
    margin-top: 2px;
}
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}
.settings-item:last-child {
    border-bottom: 0;
}
.settings-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.settings-card .settings-value {
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}
.settings-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.24);
    font-size: 12px;
    font-weight: 700;
}
.settings-desc {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}
.settings-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 6px;
}
.settings-kpi {
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(3px);
}
.settings-kpi-label {
    display: block;
    font-size: 11px;
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    margin-bottom: 4px;
}
.settings-kpi-value {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
}
.settings-logout-btn {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}
.settings-logout-btn:hover {
    color: #b91c1c;
    border-color: #fca5a5;
}
.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.admin-cards.admin-cards-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.card-head-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.admin-recap-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.admin-recap-filter label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.admin-recap-filter select {
    height: 32px;
    border: 1px solid #cfd8e3;
    border-radius: 11px;
    padding: 0 34px 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 14px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(15, 23, 42, 0.06);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.admin-recap-filter select:hover {
    border-color: #b8c4d6;
}
.admin-recap-filter select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.admin-recap-summary {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.recap-kpi {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}
.recap-kpi-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 4px;
}
.recap-kpi-value {
    display: block;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 800;
}
.stat-card {
    border-width: 1px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
}
.stat-card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.18;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.45) 0%, rgba(129, 140, 248, 0) 72%);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 40px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.stat-card.stat-card-neutral {
    background:
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.2) 0%, transparent 54%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 58%, #312e81 100%);
    border-color: rgba(129, 140, 248, 0.28);
}
.stat-card.stat-card-warm {
    background:
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.2) 0%, transparent 54%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 58%, #312e81 100%);
    border-color: rgba(129, 140, 248, 0.28);
}
.stat-card.stat-card-cool {
    background:
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.2) 0%, transparent 54%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 58%, #312e81 100%);
    border-color: rgba(129, 140, 248, 0.28);
}
.stat-card.stat-card-info {
    background:
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.2) 0%, transparent 54%),
        linear-gradient(145deg, #0f172a 0%, #1e293b 58%, #312e81 100%);
    border-color: rgba(129, 140, 248, 0.28);
}
.stat-card.stat-card-warm::before {
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
}
.stat-card.stat-card-cool::before {
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
}
.stat-card.stat-card-info::before {
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
}
.stat-card .card-head h3 {
    color: #cbd5e1;
    letter-spacing: 0.055em;
}
.stat-card strong {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
}
.stat-card .icon-participants {
    background: rgba(129, 140, 248, 0.13);
    color: #bcc8ff;
}
.stat-card .icon-meetings {
    background: rgba(96, 165, 250, 0.13);
    color: #b8d4ff;
}
.stat-card .icon-attendance {
    background: rgba(74, 222, 128, 0.12);
    color: #b6ecc7;
}
.stat-card .icon-today-total {
    background: rgba(251, 191, 36, 0.12);
    color: #f3d98f;
}
.stat-card .icon-today-check {
    background: rgba(45, 212, 191, 0.12);
    color: #9ae5d8;
}
.stat-card .icon-monthly {
    background: rgba(167, 139, 250, 0.13);
    color: #d4cbf6;
}
.stat-card .card-icon {
    border-color: rgba(129, 140, 248, 0.24);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}
.admin-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e6edf6;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
}
.admin-card-single strong {
    font-size: 18px;
    line-height: 1.35;
}
.admin-card h3 {
    margin: 0;
    font-size: 12px;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    line-height: 1.35;
}
.admin-card strong {
    font-size: 34px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.admin-card.stat-card strong {
    color: #ffffff;
}
.card-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 12px rgba(15, 23, 42, 0.08);
}
.card-icon svg {
    width: 17px;
    height: 17px;
}
.card-icon.icon-participants {
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.28);
}
.card-icon.icon-meetings {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.28);
}
.card-icon.icon-attendance {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.28);
}
.card-icon.icon-today-total {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.28);
}
.card-icon.icon-today-check {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0f766e;
    border-color: rgba(20, 184, 166, 0.28);
}
.card-icon.icon-monthly {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    color: #6d28d9;
    border-color: rgba(139, 92, 246, 0.28);
}
.card-icon.icon-chart {
    background: #e0f2fe;
    color: #0369a1;
}
.card-icon.icon-latest {
    background: #e2e8f0;
    color: #334155;
}
.admin-inline-footer {
    margin-top: auto;
    padding-top: 14px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.full-width-card {
    width: 100%;
}
.line-chart {
    margin-top: 16px;
    height: 250px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}
.line-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.line-chart-value {
    font-size: 11px;
    color: #334155;
    font-weight: 700;
}
.line-chart-bar {
    width: 18px;
    height: 170px;
    border-radius: 999px;
    background: #e2e8f0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.line-chart-bar i {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #14b8a6, #0ea5e9);
}
.line-chart-col span {
    font-size: 10px;
    color: #64748b;
    text-align: center;
}
.mini-chart {
    margin-top: 8px;
}
.mini-chart-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.mini-chart-row span,
.mini-chart-row em {
    font-size: 12px;
    color: #64748b;
    font-style: normal;
}
.mini-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.mini-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}
.latest-card {
    margin-top: 16px;
}
.admin-cards .stat-card:nth-child(-n+3) {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.admin-cards .stat-card:nth-child(n+4) {
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.045);
}

/* --- Elegant file upload (admin) --- */
.meeting-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 8px;
    display: block;
}
.admin-file-drop {
    position: relative;
    border-radius: 14px;
}
.admin-file-drop__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.admin-file-drop:focus-within .admin-file-drop__zone {
    border-color: var(--admin-primary-a);
    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.14),
        0 12px 28px rgba(79, 70, 229, 0.12);
}
.admin-file-drop__zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 148px;
    padding: 22px 20px;
    border-radius: 14px;
    cursor: pointer;
    border: 2px dashed #c7d2fe;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.85) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 22px rgba(15, 23, 42, 0.06);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease;
}
.admin-file-drop__zone:hover {
    border-color: #a5b4fc;
    background:
        linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 12px 28px rgba(79, 70, 229, 0.1);
}
.admin-file-drop--drag .admin-file-drop__zone {
    border-color: var(--admin-primary-a);
    border-style: solid;
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.18),
        0 16px 36px rgba(79, 70, 229, 0.15);
    transform: scale(1.01);
}
.admin-file-drop--has-file .admin-file-drop__zone {
    border-style: solid;
    border-color: #86efac;
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 24px rgba(16, 185, 129, 0.12);
}
.admin-file-drop__icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(124, 58, 237, 0.1) 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}
.admin-file-drop__icon svg {
    width: 36px;
    height: 36px;
}
.admin-file-drop--has-file .admin-file-drop__icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.12) 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}
.admin-file-drop--has-file .admin-file-drop__icon path {
    stroke: #059669;
}
.admin-file-drop__title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
    max-width: 28rem;
    line-height: 1.35;
}
.admin-file-drop__hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--admin-muted);
    letter-spacing: 0.02em;
}
.admin-file-drop__filename {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    word-break: break-all;
    max-width: 100%;
}
.admin-file-drop--has-file .admin-file-drop__filename {
    color: #047857;
}
.admin-file-drop--disabled .admin-file-drop__zone {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.52;
    filter: saturate(0.65);
    border-style: solid;
    border-color: #e2e8f0;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: none;
}
.admin-import-lock-hint {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}
.admin-import-lock-hint strong {
    color: #475569;
    font-weight: 700;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        padding: 22px;
    }
    .auth-hero h2 {
        font-size: 24px;
    }
    .admin-layout { flex-direction: column; }
    .admin-layout {
        border-radius: 0;
        --admin-sidebar-offset: 0px;
        overflow-x: visible;
    }
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
        overflow: visible;
        transition: none;
        box-shadow: none;
    }
    .admin-sidebar.admin-sidebar--collapsed {
        width: 100% !important;
    }
    .admin-sidebar-toggle {
        display: none;
    }
    .admin-sidebar--collapsed .admin-brand {
        flex-direction: row;
        align-items: center;
        padding: 14px 12px 16px 14px;
    }
    .admin-sidebar--collapsed .admin-brand-text {
        opacity: 1;
        pointer-events: auto;
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
    .admin-sidebar--collapsed .admin-brand-logo-wrap {
        width: auto;
        height: auto;
        margin: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .admin-sidebar--collapsed .admin-brand-logo {
        margin: 0;
        width: 40px;
        height: 40px;
    }
    .admin-sidebar--collapsed .menu-section-title {
        margin: 10px 14px 8px;
        height: auto;
        opacity: 1;
        pointer-events: auto;
    }
    .admin-sidebar--collapsed .menu-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        opacity: 1;
    }
    .admin-sidebar--collapsed .admin-menu > a {
        justify-content: flex-start;
        padding: 10px 12px;
        margin: 0 10px 6px;
    }
    .admin-sidebar--collapsed .menu-icon {
        margin-right: 8px;
    }
    .admin-sidebar--collapsed .admin-menu-group__summary::after {
        display: block;
    }
    .admin-sidebar--collapsed .admin-menu-group__summary {
        justify-content: flex-start;
        padding: 10px 12px;
    }
    .admin-sidebar--collapsed .admin-menu-group {
        margin: 0 10px 8px;
    }
    .admin-sidebar--collapsed .admin-menu-group__items {
        position: static;
        left: auto;
        top: auto;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: rgba(15, 23, 42, 0.2);
        pointer-events: auto;
        padding: 4px 6px 10px;
    }
    .admin-sidebar--collapsed .admin-menu-group__items a {
        padding-left: 38px;
    }
    .admin-sidebar--collapsed .sidebar-action-link {
        justify-content: flex-start;
        padding: 0 10px;
    }
    .admin-sidebar--collapsed .sidebar-actions .menu-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        opacity: 1;
    }
    .admin-main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        transition: none;
    }
    .admin-main-head { flex-direction: column; }
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-topbar-left h2 {
        font-size: 25px;
    }
    .admin-page-title-icon {
        width: 26px;
        height: 26px;
        margin-right: 7px;
        border-radius: 8px;
    }
    .admin-page-title-icon svg {
        width: 16px;
        height: 16px;
    }
    .admin-title-badge {
        margin-left: 8px;
        padding: 3px 9px;
        font-size: 10px;
    }
    .admin-topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .admin-recap-summary {
        grid-template-columns: 1fr;
    }
    .admin-topbar-search input {
        width: 100%;
        max-width: 240px;
    }
    .meeting-grid { grid-template-columns: 1fr; }
    .admin-filter-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-kpi-row { grid-template-columns: 1fr; }
    .admin-dashboard-grid { grid-template-columns: 1fr; }
    .admin-cards.admin-cards-six { grid-template-columns: 1fr; }
    .admin-card {
        padding: 18px;
    }
    .admin-card strong {
        font-size: 31px;
    }
    .line-chart {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        height: auto;
    }
    .line-chart-bar {
        height: 120px;
    }
    .mini-chart-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Toast — salin link absensi (share agenda) */
.admin-share-toast-root {
    position: fixed;
    z-index: 10050;
    bottom: 28px;
    right: 28px;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}
.admin-share-toast {
    pointer-events: auto;
    width: min(400px, calc(100vw - 32px));
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-share-toast.admin-share-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.admin-share-toast__surface {
    position: relative;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(99, 102, 241, 0.75), rgba(124, 58, 237, 0.85));
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.08),
        0 22px 48px -12px rgba(79, 70, 229, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.admin-share-toast__inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px 16px 16px;
    border-radius: 15px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.97) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.admin-share-toast__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #7c3aed 0%, #4f46e5 55%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.admin-share-toast__icon svg {
    width: 22px;
    height: 22px;
}
.admin-share-toast__body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.admin-share-toast__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.25;
}
.admin-share-toast__desc {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}
.admin-share-toast__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: -4px -6px 0 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color 0.15s ease, background 0.15s ease;
}
.admin-share-toast__close:hover {
    color: #475569;
    background: rgba(148, 163, 184, 0.15);
}
.admin-share-toast__close svg {
    width: 18px;
    height: 18px;
}

body.admin-modal-open {
    overflow: hidden;
}
.admin-delete-modal[hidden] {
    display: none;
}
.admin-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 10070;
    display: grid;
    place-items: center;
}
.admin-delete-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}
.admin-delete-modal__dialog {
    position: relative;
    width: min(520px, calc(100vw - 28px));
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ef;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
    padding: 20px;
}
.admin-delete-modal__dialog h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0f172a;
}
.admin-delete-modal__desc {
    margin: 0;
    color: #475569;
    font-size: 14px;
}
.admin-delete-modal__target {
    margin: 10px 0 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}
.admin-delete-modal__actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.admin-delete-modal__confirm {
    width: auto;
    min-width: 160px;
}
@media (max-width: 640px) {
    .admin-share-toast-root {
        right: 16px;
        bottom: 20px;
        left: 16px;
        align-items: stretch;
    }
    .admin-share-toast {
        width: 100%;
    }
    .admin-delete-modal__actions {
        flex-direction: column-reverse;
    }
    .admin-delete-modal__actions .admin-btn-secondary,
    .admin-delete-modal__actions .admin-delete-modal__confirm {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .admin-share-toast {
        transition: opacity 0.2s ease;
    }
    .admin-share-toast.admin-share-toast--visible {
        transform: none;
    }
}
