:root {
    /* Brand core (same palette as the public site) */
    --primary-blue: #002266;
    --dark-blue: #001133;
    --navy-blue: #0a1931;
    --primary-gold: #D4AF37;
    --bright-gold: #FFD700;
    --accent-gold: #FFE066;

    /* Glass / surface language, ported from style.css */
    --glass-bg: rgba(10, 25, 49, 0.55);
    --glass-bg-strong: rgba(6, 16, 33, 0.78);
    --glass-border: rgba(212, 175, 55, 0.22);
    --glass-border-hover: rgba(212, 175, 55, 0.45);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

    /* Text on the dark chrome (sidebar, main content, cards) */
    --text-light: #f8fafc;
    --muted-onnavy: #9fb0c9;
    --muted-onnavy-strong: #cbd5e1;

    /* Text on the few remaining light surfaces (login card, modals-on-white if any) */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Form controls on dark glass */
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-bg-focus: rgba(255, 255, 255, 0.09);
    --input-border: rgba(255, 255, 255, 0.18);

    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --sidebar-width: 260px;

    /* Event category colors — single source of truth, mirrored in style.css with identical hex */
    --cat-encontro: #0284c7;
    --cat-encontro-rgb: 2, 132, 199;
    --cat-festa: #e11d48;
    --cat-festa-rgb: 225, 29, 72;
    --cat-ensaio: #0d9488;
    --cat-ensaio-rgb: 13, 148, 136;
    --cat-desfile: #b45309;
    --cat-desfile-rgb: 180, 83, 9;
    --cat-nacional: #475569;
    --cat-nacional-rgb: 71, 85, 105;
    --cat-reuniao: #7e22ce;
    --cat-reuniao-rgb: 126, 34, 206;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--dark-blue);
    color: var(--text-light);
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ==================== TYPE SCALE ====================
   Replaces the ~15 ad-hoc inline font-size declarations that used to live
   in admin.html. Six steps cover every size the admin actually needs. */
.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.8rem; }
.text-base { font-size: 0.9rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.4rem; }
.text-display { font-size: 1.8rem; }

.text-muted { color: var(--muted-onnavy); }

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    z-index: 500;
    box-shadow: 4px 0 15px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.sidebar-brand h2 {
    font-size: 1.15rem;
    color: var(--bright-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.sidebar-close-btn {
    display: none;
    margin-left: auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.navbar {
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    flex: 1;
    overflow-y: auto;
}

.navbar a {
    background: none;
    border: none;
    color: #e2e8f0;
    padding: 14px 24px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 4px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bright-gold);
}

.navbar a.active {
    border-left-color: var(--primary-gold);
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--bright-gold);
    font-weight: 700;
}

.sidebar-footer {
    padding: 15px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-public-site {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-public-site:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
}

/* MOBILE TOPBAR (hidden on desktop) */
.mobile-topbar {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--bright-gold);
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 60;
}

.hamburger-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--bright-gold);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-topbar strong {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 8, 20, 0.65);
    z-index: 400;
}

/* MAIN CONTENT — same navy backdrop as the public site */
.main-content {
    flex: 1;
    padding: 35px 40px;
    overflow-y: auto;
    height: 100vh;
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(212, 175, 55, 0.07), transparent 60%),
        linear-gradient(160deg, var(--dark-blue) 0%, var(--primary-blue) 55%, #001a4d 100%);
    background-attachment: fixed;
}

.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--muted-onnavy);
    font-size: 0.95rem;
}

/* DASHBOARD STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: border-color 0.25s ease;
}

.stat-card:hover {
    border-color: var(--glass-border-hover);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--bright-gold);
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bright-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--muted-onnavy);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* COUNTDOWN CARD (dashboard) */
.countdown-card {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    border: 2px solid var(--primary-gold);
    color: var(--text-light);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 17, 51, 0.4);
}

.countdown-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.countdown-eyebrow {
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-gold);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.countdown-title {
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
}

.countdown-sub {
    color: var(--muted-onnavy-strong);
    margin: 0;
}

.countdown-clock {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,0.08);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(212,175,55,0.3);
    flex-wrap: wrap;
}

.countdown-unit {
    text-align: center;
    min-width: 50px;
}

.countdown-unit strong {
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}

.countdown-unit strong.gold-num {
    color: var(--primary-gold);
}

.countdown-unit span {
    text-transform: uppercase;
    color: var(--muted-onnavy);
    font-weight: 600;
}

.countdown-sep {
    color: var(--primary-gold);
    font-weight: bold;
    margin-bottom: 10px;
}

/* CARDS & FORMS */
.admin-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--glass-shadow);
    transition: border-color 0.25s ease;
}

.admin-card:hover {
    border-color: var(--glass-border-hover);
}

.admin-card h3 {
    color: var(--bright-gold);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.form-row-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-row-inline .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.form-row-inline .form-group.grow-2 {
    flex: 2;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted-onnavy-strong);
}

.form-group input,
.form-group select,
.form-group textarea,
.select-compact {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--input-bg);
    color: var(--text-light);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(248, 250, 252, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.select-compact:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-group select option {
    background: var(--dark-blue);
    color: var(--text-light);
}

.form-group input[type="checkbox"] {
    width: auto;
}

.select-compact {
    width: auto;
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ====================
   Single system: .btn is the base; .btn-gold / .btn-secondary / .btn-danger /
   .btn-success are color variants; .btn-sm is the size variant. Nothing else
   should define its own button look. */
.btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--bright-gold), var(--primary-gold));
    color: var(--dark-blue);
    border-color: transparent;
}
.btn-gold:hover {
    background: var(--primary-gold);
    color: var(--dark-blue);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.16);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-secondary.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    color: var(--bright-gold);
}

.btn-danger {
    background: #ef4444;
    border-color: transparent;
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #16a34a;
    border-color: transparent;
    color: white;
}
.btn-success:hover {
    background: #15803d;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

/* TABLES */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: var(--text-light);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-onnavy-strong);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--glass-border);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* BADGES */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-public { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.badge-internal { background: rgba(239, 68, 68, 0.18); color: #f87171; }

/* Category badges reference the same --cat-* variables used on the public
   site's grid, list and mobile-dot views (defined in :root above and mirrored
   with identical hex values in style.css). */
.badge-encontro { background: rgba(var(--cat-encontro-rgb), 0.18); color: #38bdf8; }
.badge-festa { background: rgba(var(--cat-festa-rgb), 0.18); color: #fb7185; }
.badge-ensaio { background: rgba(var(--cat-ensaio-rgb), 0.18); color: #2dd4bf; }
.badge-desfile { background: rgba(var(--cat-desfile-rgb), 0.22); color: #fbbf24; }
.badge-nacional { background: rgba(var(--cat-nacional-rgb), 0.25); color: #cbd5e1; }
.badge-reuniao { background: rgba(var(--cat-reuniao-rgb), 0.18); color: #c084fc; }

/* TOAST NOTIFICATION */
#toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--dark-blue);
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 100001;
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary-gold);
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* LOGIN OVERLAY */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 17, 51, 0.95), rgba(0, 34, 102, 0.95)), url('../image_d0e8af.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#login-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    text-align: center;
    border: 2px solid var(--primary-gold);
}

.login-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    margin-bottom: 15px;
    object-fit: cover;
}

/* O card de login é a única superfície clara fora dos modais — os inputs
   precisam de texto/fundo próprios em vez de herdar o input escuro padrão. */
.login-card .form-group input {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}
.login-card .form-group input::placeholder {
    color: var(--text-muted);
}
.login-card .form-group input:focus {
    background: #ffffff;
    border-color: var(--primary-gold);
}

.login-card h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* QUILL EDITOR CUSTOM */
.ql-toolbar {
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.9);
}
.ql-container {
    border-radius: 0 0 8px 8px;
    min-height: 280px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
}

/* ==================== KANBAN WORKFLOW ==================== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 15px;
    align-items: start;
}

.kanban-col {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--glass-border);
}

.kanban-header h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bright-gold);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kanban-count {
    background: rgba(212, 175, 55, 0.18);
    color: var(--bright-gold);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.kanban-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.kanban-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    border-color: var(--glass-border-hover);
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.kanban-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
}

.kanban-card-desc {
    font-size: 0.8rem;
    color: var(--muted-onnavy);
    line-height: 1.35;
}

.kanban-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.kanban-assignee {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bright-gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kanban-due {
    font-size: 0.74rem;
    color: var(--muted-onnavy);
    font-weight: 600;
}

.kanban-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 4px;
}

.stage-btn-group {
    display: flex;
    gap: 4px;
}

/* Compact contextual control inside a kanban card — same radius/family as
   .btn, just smaller so several fit on one row. */
.stage-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.stage-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-blue);
    border-color: var(--primary-gold);
}

/* Task category tags — intentionally a separate palette from the event
   --cat-* variables (task area is a different concept from event category),
   but internally consistent with itself. */
.cat-tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cat-producao { background: #e0f2fe; color: #0369a1; }
.cat-musical { background: #f3e8ff; color: #7e22ce; }
.cat-comunicacao { background: #fef3c7; color: #b45309; }
.cat-financeiro { background: #dcfce7; color: #15803d; }
.cat-oficinas { background: #ffe4e6; color: #be123c; }
.cat-geral { background: #f1f5f9; color: #475569; }

.priority-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}
.priority-alta { background: #fee2e2; color: #991b1b; }
.priority-media { background: #fef3c7; color: #92400e; }
.priority-baixa { background: #f0fdf4; color: #166534; }

/* ==================== DECISIONS & VOTING ==================== */
.decision-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.decision-card.status-open {
    border-left: 6px solid #f59e0b;
}
.decision-card.status-approved {
    border-left: 6px solid #16a34a;
}
.decision-card.status-rejected {
    border-left: 6px solid #dc2626;
}
.decision-card.status-implemented {
    border-left: 6px solid #8b5cf6;
}

.decision-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.decision-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-light);
}

.progress-vote-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0;
    display: flex;
}
.progress-vote-approve { background: #16a34a; }
.progress-vote-reject { background: #dc2626; }
.progress-vote-abstain { background: #f59e0b; }

.vote-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-light);
}
.vote-chip.approve { border-color: #16a34a; background: rgba(22, 163, 74, 0.15); color: #4ade80; }
.vote-chip.reject { border-color: #dc2626; background: rgba(220, 38, 38, 0.15); color: #f87171; }
.vote-chip.abstain { border-color: #f59e0b; background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.votes-list-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 8px;
}

/* ==================== ATTENDEES MODAL (light card on dark overlay) ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.modal-header-row h3 {
    color: var(--bright-gold);
    margin-bottom: 4px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-onnavy);
}
.modal-close-btn:hover {
    color: var(--text-light);
}

/* ==================== RESPONSIVE / MOBILE ==================== */
@media (max-width: 1100px) {
    .kanban-board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { flex-direction: column; overflow: hidden; }

    .mobile-topbar { display: flex; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        height: 100dvh;
        width: min(280px, 82vw);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close-btn { display: flex; }

    .sidebar-overlay.open {
        display: block;
    }

    .main-content {
        padding: 18px;
        height: auto;
        min-height: 0;
    }

    .page-header h1 { font-size: 1.4rem; }

    .countdown-inner { flex-direction: column; align-items: flex-start; }
    .countdown-clock { width: 100%; justify-content: space-between; padding: 12px; }
    .countdown-unit { min-width: 44px; }

    .form-grid { grid-template-columns: 1fr; }

    .kanban-board {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        gap: 12px;
    }
    .kanban-col {
        scroll-snap-align: start;
        min-height: 0;
        max-height: 65vh;
    }

    /* Horizontal-scroll tables: fade the right edge so it reads as
       scrollable instead of just "cut off". */
    .table-responsive {
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    }
    .admin-table {
        min-width: 640px;
        font-size: 0.85rem;
    }
    .admin-table th, .admin-table td {
        padding: 10px 12px;
    }

    .form-row-inline .form-group {
        min-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .main-content { padding: 24px; }
}
