﻿html, body {
    height: 100%;
}

/* Global Admin Theme */
.admin-body {
    background: #08111e;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
}

/* =========================
   LOGIN LAYOUT (unchanged)
   ========================= */

.admin-login-container {
    width: 100%;
    height: 100vh; /* full height */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: #08111e; /* kiosk dark blue background */
}

/* Card Component */
.admin-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 14px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    text-align: center; /* headings centered */
}

/* Titles */
.admin-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #FFEA00;
}

/* --- Fix: left align form fields --- */
.admin-card form {
    text-align: left;
}

.admin-subtitle {
    font-size: 0.95rem;
}

/* Labels */
.login-label {
    font-weight: 600;
    color: #FFEA00;
    text-align: left;
}

/* Inputs */
.login-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 10px;
    transition: 0.25s ease;
    width: 100%;
}

    .login-input:focus {
        border-color: #FFEA00;
        box-shadow: 0 0 0 2px rgba(255,234,0,0.3);
        background: rgba(255,255,255,0.12);
        color: #fff;
    }

/* Primary Button (Yellow) */
.btn-admin-primary {
    background-color: #FFEA00;
    border: none;
    color: #08111e !important;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.25s ease;
    width: 100%;
    display: block;
}

    .btn-admin-primary:hover {
        background-color: #f8db00;
    }

/* Outline Button (Blue) */
.btn-admin-outline {
    border: 2px solid #016EB3;
    color: #016EB3 !important;
    background: transparent;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.25s ease;
    width: 100%;
    display: block;
}

    .btn-admin-outline:hover {
        background: #016EB3;
        color: #ffffff !important;
    }

/* Password wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-wrapper .login-input {
        padding-right: 3rem; /* space for eye button */
    }

/* Toggle button (no default button styles) */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG icons */
.eye-svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Hidden state for "off" icon */
.eye-hidden {
    display: none;
}

.toggle-password:hover .eye-svg {
    transform: scale(1.05);
}

/* Optional: focus ring for accessibility */
.toggle-password:focus-visible {
    outline: 2px solid #FFEA00;
    outline-offset: 2px;
}

/* =========================
   ADMIN SHELL + SIDEBAR
   ========================= */

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top, #0d1c33, #050914 55%);
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: #050914;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    padding: 16px 14px 14px;
    transition: width 0.25s ease;
    z-index: 1040;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

/* Logo */
.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFEA00, #ffd300);
    color: #08111e;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.admin-logo-text {
    display: flex;
    flex-direction: column;
}

.admin-logo-title {
    font-size: 1rem;
    font-weight: 700;
}

.admin-logo-subtitle {
    font-size: 0.75rem;
    color: #9dafc8;
}

/* Icon button (hamburger → X) */
.admin-icon-button {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-icon-button:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 10px rgba(255,234,0,0.35);
 }

/* 3 bars inside the button */
.admin-icon-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #FFEA00;
    display: block;
    margin: 3px 0;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.admin-icon-button.is-open .admin-icon-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.admin-icon-button.is-open .admin-icon-bar:nth-child(2) {
    opacity: 0;
}

.admin-icon-button.is-open .admin-icon-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* When sidebar is collapsed on desktop, tidy the header */
/*body.admin-sidebar-collapsed .admin-sidebar-header {
    justify-content: center;
}*/

/* Center the logo mark when collapsed */
body.admin-sidebar-collapsed .admin-logo {
    justify-content: center;
}

/* We already hide the text, but keep it for clarity */
body.admin-sidebar-collapsed .admin-logo-text {
    display: none;
}

/* Hide the sidebar's own toggle button when collapsed (desktop),
   so it doesn't overlap the logo mark */
body.admin-sidebar-collapsed .admin-sidebar-header .admin-icon-button.d-none.d-lg-flex {
    display: none !important;
}

/* Nav */
.admin-nav {
    margin-top: 10px;
    flex: 1 1 auto;
}

.admin-nav-link {
    /* display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    color: #d4e0f7;
    font-size: 0.93rem;
    text-decoration: none;
    margin-bottom: 4px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease;*/
    position: relative; /* needed for indicator + tooltip */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 16px; /* extra left space for indicator */
    border-radius: 12px;
    color: #d4e0f7;
    font-size: 0.93rem;
    text-decoration: none;
    margin-bottom: 4px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease;
    overflow: visible; /* allow tooltip to escape */
}

    .admin-nav-link:hover {
        background: rgba(255,234,0,0.12);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .admin-nav-link.active {
        background: linear-gradient(90deg, rgba(255,234,0,0.18), rgba(1,110,179,0.35));
        color: #ffffff;
    }
    /* LEFT ACTIVE INDICATOR BAR (modern style) */
    .admin-nav-link::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        border-radius: 999px;
        background: transparent;
        opacity: 0;
        transition: height 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    }

    /* Show indicator when active */
    .admin-nav-link.active::before {
        height: 60%;
        opacity: 1;
        background: linear-gradient(to bottom, #FFEA00, #ffd300);
    }

    /* Slight bump on hover even if not active */
    .admin-nav-link:hover:not(.active)::before {
        height: 40%;
        opacity: 0.6;
        background: rgba(255,234,0,0.75);
    }

/* =========================
   TOOLTIP WHEN SIDEBAR COLLAPSED
   ========================= */

body.admin-sidebar-collapsed .admin-sidebar {
    width: 74px;
}

/* You already hide labels in collapsed mode */
body.admin-sidebar-collapsed .admin-logo-text {
    display: none;
}

body.admin-sidebar-collapsed .admin-nav-label {
    display: none;
}

/* Center icon when labels hidden */
body.admin-sidebar-collapsed .admin-nav-link {
    justify-content: center;
}

    /* Tooltip bubble – uses data-tooltip */
    body.admin-sidebar-collapsed .admin-nav-link::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 72px; /* just to the right of collapsed sidebar */
        top: 50%;
        transform: translateY(-50%) translateX(4px);
        background: #050914;
        color: #f9fafb;
        font-size: 0.78rem;
        padding: 5px 10px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: 0 10px 30px rgba(0,0,0,0.65);
        opacity: 0;
        pointer-events: none;
        white-space: nowrap;
        z-index: 2000;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    /* Show tooltip on hover */
    body.admin-sidebar-collapsed .admin-nav-link:hover::after {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }


.admin-nav-link-secondary {
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

/* Nav icon */
.admin-nav-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .admin-nav-icon svg {
        width: 20px;
        height: 20px;
    }

.admin-nav-label {
    white-space: nowrap;
}

/* Sidebar footer */
.admin-sidebar-footer {
    margin-top: 10px;
    padding-top: 8px;
}

/* Main area */
.admin-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.admin-topbar {
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(5,9,20,0.96);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.admin-topbar-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.admin-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
}
.admin-topbar-logout-form {
    margin: 0;
}

.admin-topbar-user {
    color: #9dafc8;
}

.admin-topbar-logout {
    /*  color: #FFEA00;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    background:none; */
    background: transparent;
    border: none;
    color: #FFEA00;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    background: none;
}

    .admin-topbar-logout:hover {
        text-decoration: underline;
    }

/* Content */
.admin-content {
    padding: 12px 18px 24px;
}

/* Sidebar overlay (mobile) */
.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1035;
}

/* =========================
   COLLAPSE / RESPONSIVE
   ========================= */

/* Collapsed sidebar (desktop) */
body.admin-sidebar-collapsed .admin-sidebar {
    width: 74px;
}

body.admin-sidebar-collapsed .admin-logo-text {
    display: none;
}

body.admin-sidebar-collapsed .admin-nav-label {
    display: none;
}

/* Mobile drawer behavior */
@media (max-width: 991.98px) {
    .admin-shell {
        position: relative;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -260px;
        height: 100vh;
        box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    }

    body.admin-sidebar-open .admin-sidebar {
        left: 0;
    }

    body.admin-sidebar-open .admin-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* =========================
   DASHBOARD STYLES
   ========================= */

.admin-dashboard-root {
    color: #ffffff;
}

/* Top stat cards grid */
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-stat-card {
    background: radial-gradient(circle at top left, rgba(255,234,0,0.12), rgba(1,110,179,0.15));
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.admin-stat-card-highlight {
    background: radial-gradient(circle at top right, rgba(255,234,0,0.22), rgba(1,110,179,0.15));
}

.admin-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9dafc8;
    margin-bottom: 6px;
}

.admin-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFEA00;
    margin-bottom: 4px;
}

.admin-stat-sub {
    font-size: 0.85rem;
    color: #b5c2dd;
}

/* Panel / card containers */
.admin-panel-card {
    background: rgba(5, 9, 20, 0.96);
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.admin-panel-side {
    background: radial-gradient(circle at top, rgba(1,110,179,0.35), rgba(5,9,20,0.98));
}

.admin-panel-header {
    margin-bottom: 6px;
}

.admin-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-panel-subtitle {
    font-size: 0.85rem;
    color: #9dafc8;
}

/* Empty state */
.admin-empty-state {
    padding: 16px 10px 8px;
    text-align: left;
}

    .admin-empty-state p {
        font-size: 0.9rem;
    }

/* Table styling */
.admin-table {
    color: #e3ecff;
    border-color: rgba(255,255,255,0.08);
    font-size: 0.9rem;
}

    .admin-table thead tr {
        background: rgba(255,255,255,0.02);
    }

    .admin-table thead th {
        border-bottom-color: rgba(255,255,255,0.12);
        color: #9dafc8;
        font-weight: 600;
    }

    .admin-table tbody tr:nth-child(even) {
        background: rgba(255,255,255,0.02);
    }

    .admin-table tbody tr:hover {
        background: rgba(255,234,0,0.07);
    }

/* Small outline button for actions */
.btn-admin-outline-soft {
    border-radius: 999px;
    border: 1px solid rgba(255,234,0,0.45);
    background: transparent;
    color: #FFEA00;
    padding: 3px 9px;
    font-size: 0.78rem;
    font-weight: 600;
}

    .btn-admin-outline-soft:disabled {
        opacity: 0.6;
    }

/* Summary list (right panel) */
.admin-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .admin-summary-list li {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 6px 0;
        border-bottom: 1px dashed rgba(255,255,255,0.12);
        font-size: 0.9rem;
    }

        .admin-summary-list li:last-child {
            border-bottom: none;
        }

    .admin-summary-list .label {
        color: #d4e0f7;
    }

    .admin-summary-list .value {
        font-weight: 600;
        color: #FFEA00;
    }

        .admin-summary-list .value.accent {
            color: #FFEA00;
        }

/* Small helper color */
.text-muted-soft {
    color: #9dafc8 !important;
}

/* ===== SweetAlert – SewSocial Admin Theme ===== */

.swal2-sewsocial-popup {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
    padding: 24px 24px 20px;
    font-family: 'Inter', system-ui, sans-serif;
}

.swal2-sewsocial-title {
    color: #FFEA00;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.swal2-sewsocial-text {
    font-size: 0.95rem;
    color: #e5e7eb;
}

/* Center buttons with some gap */
.swal2-actions {
    margin-top: 18px !important;
    gap: 10px;
}

/* Icons in our palette */
.swal2-icon.swal2-warning,
.swal2-icon.swal2-question,
.swal2-icon.swal2-error,
.swal2-icon.swal2-success,
.swal2-icon.swal2-info {
    border-width: 2px;
}

.swal2-icon.swal2-warning {
    border-color: #FFEA00;
    color: #FFEA00;
}

.swal2-icon.swal2-question {
    border-color: #016EB3;
    color: #016EB3;
}

.swal2-icon.swal2-error {
    border-color: #ff4b4b;
    color: #ff4b4b;
}

.swal2-icon.swal2-success {
    border-color: #22c55e;
    color: #22c55e;
}

/* Optional: tweak the confirm + cancel size a bit */
.swal2-sewsocial-confirm,
.swal2-sewsocial-cancel {
    min-width: 130px;
    justify-content: center;
}

/* Dashboard header */
.admin-page-header {
    margin-bottom: 1.5rem;
}

/* Title + subtitle */
.admin-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFEA00;
}

.admin-page-subtitle {
    font-size: 0.95rem;
    color: #cbd5f5;
}

/* Refresh / Requery button */
.admin-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    padding-inline: 18px;
    white-space: nowrap;
   /*border: 1px solid #FFEA00 ;*/
}

.admin-refresh-icon {
    font-size: 1.1rem;
    display: inline-block;
    transform-origin: center;
}

/* Optional subtle spin on hover */
.admin-refresh-btn:hover .admin-refresh-icon {
    animation: admin-refresh-spin 0.6s linear;
}

@keyframes admin-refresh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.dashboard-updated {
    font-size: 0.85rem;
    color: rgba(255, 234, 0, 0.65); /* soft yellow */
    margin-top: -6px;
    margin-bottom: 18px;
    text-align: left;
    letter-spacing: 0.3px;
}


/* ===== Dashboard Filters Bar ===== */

.admin-filter-bar {
    background: rgba(12, 18, 32, 0.9);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
}

.admin-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a7b4c6;
    margin-bottom: 6px;
}

.admin-filter-input,
.admin-filter-select {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffffff;
}

    .admin-filter-input:focus,
    .admin-filter-select:focus {
        border-color: #FFEA00;
        box-shadow: 0 0 0 2px rgba(255,234,0,0.2);
    }

.admin-filter-control {
    background: rgba(5, 9, 20, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    min-height: 44px; /* match button height */
    line-height: 1.3;
}

    /* Focus glow in our yellow */
    .admin-filter-control:focus {
        border-color: #FFEA00 !important;
        box-shadow: 0 0 0 2px rgba(255, 234, 0, 0.3);
        outline: none;
    }

    /* Placeholder / text color inside */
    .admin-filter-control::placeholder {
        color: #8c9ab6;
    }



/* === Improved Filters Bar UI (matches admin theme) === */

.admin-filter-bar {
    background: rgba(12, 18, 32, 0.85);
    border-radius: 16px;
    padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 22px;
}

.admin-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a7b4c6;
    margin-bottom: 6px;
}

.admin-filter-control {
    
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #fff !important;
    padding: 8px 10px;
    border-radius: 10px;
}

    .admin-filter-control:focus {
        border-color: #FFEA00 !important;
        box-shadow: 0 0 0 2px rgba(255,234,0,0.25);
    }

    .admin-filter-control option {
        background: #0e1322;
        color: white;
    }

/* Ensures consistency between Apply Filters & Refresh button */
.btn-admin-outline.admin-refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 8px 16px;
}
/* Make the closed dropdown match the theme */
/**select.admin-filter-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #FFEA00 50%), linear-gradient(135deg, #FFEA00 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 32px; /* space for arrow 
}
*/
/* === Custom Select Arrow (SewSocial Theme) === */
select.admin-filter-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px !important; /* room for icon */

    background-color: rgba(5, 9, 20, 0.95) !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23FFEA00' stroke-width='3' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M6 9l6 6 6-6'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    border-radius: 10px;
}


    /* Options inside the dropdown list – some browsers respect this, some don't */
    select.admin-filter-control option {
        background: #050914;
        color: #ffffff;
    }
input[type="date"].admin-filter-control::-webkit-calendar-picker-indicator, input[type="select"].admin-filter-control::-webkit-calendar-picker-indicator {
    filter: invert(1) hue-rotate(10deg);
    opacity: 0.85;
}

/* === Filter Shell / Panel (Dashboard) === */

.admin-filter-shell {
    background: rgba(5, 9, 20, 0.9);
    border-radius: 16px;
    padding: 10px 14px 12px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.5);
}

/* Toggle button inherits admin-refresh-btn styles */
.admin-filter-toggle-btn {
    font-size: 0.85rem;
    padding-inline: 12px;
}

    .admin-filter-toggle-btn .admin-refresh-icon {
        font-size: 1rem;
        transition: transform 0.22s ease;
    }

    /* Rotate chevron when open */
    .admin-filter-toggle-btn.is-open .admin-refresh-icon {
        transform: rotate(180deg);
    }

/* Sliding panel */
.admin-filter-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

    /* Open state */
    .admin-filter-panel.is-open {
        max-height: 260px; /* enough for your 2-row form */
        opacity: 1;
        transform: translateY(0);
        margin-top: 8px;
    }


/* Filter label */
.filter-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9dafc8;
    margin-bottom: 4px;
}

/* Base filter control style */
.admin-filter-control {
    background: rgba(5,9,20,0.95);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    color: #ffffff;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    /* Glow on hover/focus */
    .admin-filter-control:hover,
    .admin-filter-control:focus {
        border-color: #FFEA00;
        box-shadow: 0 0 0 1px rgba(255,234,0,0.7), 0 0 12px rgba(255,234,0,0.45);
        outline: none;
        background: rgba(5,9,20,0.98);
    }

/* Match button height visually */
.admin-filter-apply-btn {
    height: 38px;
    align-items: center;
    display: inline-flex;
}

/* Slight tweak: make both buttons look same size */
.admin-refresh-btn {
    height: 38px;
}


/* Date input calendar icon */
input[type="date"].admin-filter-control.admin-filter-date {
    background-color: rgba(5, 9, 20, 0.95);
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23FFEA00' stroke-width='1.8' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><rect x='3' y='4' width='18' height='17' rx='2'/><path d='M8 3v4M16 3v4M3 9h18'/></svg>");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
    padding-left: 36px; /* room for icon */
}

    /* Keep native picker visible but themed */
    input[type="date"].admin-filter-control.admin-filter-date::-webkit-calendar-picker-indicator {
        filter: invert(1);
        opacity: 0.9;
    }


/* Plan select icon + chevron */
select.admin-filter-control.admin-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 38px !important;
    padding-right: 40px !important;
    background-color: rgba(5, 9, 20, 0.95) !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23FFEA00' stroke-width='1.7' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M4 10l8-4 8 4-8 4-8-4z'/><path d='M4 14l8 4 8-4'/></svg>"), url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23FFEA00' stroke-width='2.3' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat, no-repeat;
    background-position: 10px center, right 14px center;
    background-size: 16px, 16px;
    color: #ffffff !important;
}

/* ===== Recent Activity feed ===== */

.admin-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-activity-item {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
    font-size: 0.9rem;
}

    .admin-activity-item:last-child {
        border-bottom: none;
    }

.admin-activity-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.admin-activity-text {
    color: #d4e0f7;
}

.admin-activity-meta {
    font-size: 0.78rem;
    color: #9dafc8;
    margin-top: 2px;
}

/* ===== Member summary table highlighting ===== */

.admin-member-summary-table tbody tr.admin-row-overage {
    background: rgba(255, 75, 75, 0.06);
}

    .admin-member-summary-table tbody tr.admin-row-overage:hover {
        background: rgba(255, 75, 75, 0.10);
    }


/* ===== Filters shell ===== */
.admin-filter-shell .filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFEA00;
    margin-bottom: 6px;
}

/* toggle button */
.admin-filter-toggle-btn {
    white-space: nowrap;
}

/* slide open/close */
.admin-filter-panel {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
}

    .admin-filter-panel.is-open {
        max-height: 300px; /* enough for 1 row of controls */
        opacity: 1;
        transform: translateY(0);
    }




    /* IMPORTANT: dropdown options should not be white */
    .admin-filter-select option {
        background: #050914;
        color: #ffffff;
    }

/* glow outline on hover */
.admin-filter-control:hover {
    border-color: rgba(255,234,0,0.55);
    box-shadow: 0 0 0 2px rgba(255,234,0,0.14);
}

/* Apply button should NOT be full width */
.admin-filter-apply-btn {
    width: auto !important;
    min-width: 90px;
    padding-inline: 14px;
}


/* Recent Activity card: scroll area */
.admin-recent-card .admin-panel-header {
    margin-bottom: 6px;
}

.admin-recent-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-recent-select {
    width: 88px;
    min-height: 40px; /* match button height */
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Scroll wrapper inside Recent Activity */
.admin-recent-scroll {
    max-height: 470px; /* tuned to feel similar to the usage card height */
    overflow: auto;
    padding-right: 6px;
}

/* Activity list styling (if you don’t already have these) */
.admin-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-activity-item {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .admin-activity-item:last-child {
        border-bottom: none;
    }

.admin-activity-main {
    font-size: 0.92rem;
    color: #e3ecff;
}

.admin-activity-text {
    color: #b5c2dd;
}

.admin-activity-meta {
    font-size: 0.78rem;
    color: #9dafc8;
    margin-top: 2px;
}

/* Themed scrollbar */
.admin-recent-scroll::-webkit-scrollbar {
    width: 10px;
}

.admin-recent-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}

.admin-recent-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,234,0,0.35);
    border-radius: 999px;
    border: 2px solid rgba(5,9,20,0.9);
}

    .admin-recent-scroll::-webkit-scrollbar-thumb:hover {
        background: rgba(255,234,0,0.55);
    }

/* Firefox */
.admin-recent-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,234,0,0.45) rgba(255,255,255,0.06);
}

/* Highlight rows with overage (if not already) */
.admin-row-overage {
    background: rgba(255,234,0,0.06) !important;
}


.admin-row-overage {
    background: rgba(255, 234, 0, 0.06) !important;
}

.admin-note-cell {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-activity-item {
    padding: 10px 10px;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}

    .admin-activity-item:last-child {
        border-bottom: none;
    }

.admin-activity-meta {
    font-size: 0.78rem;
    color: #9dafc8;
    margin-top: 3px;
}

.admin-recent-scroll {
    max-height: 470px; /* feels close to chart card height */
    overflow: auto;
    padding-right: 4px;
}

.admin-panel-card canvas {
    transition: filter .2s ease;
}

.admin-panel-card:hover canvas {
    filter: drop-shadow(0 0 10px rgba(255,234,0,0.12));
}

