/* ============================================
   KEN — Kathanika Editorial Network
   Premium Gold + Beige Design System
   ============================================ */

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

/* ── Tokens ── */
:root {
    --gold:        #d4af37;
    --gold-light:  #f0d060;
    --gold-dark:   #b8972e;
    --gold-glow:   rgba(212, 175, 55, 0.35);
    --beige:       #f5f0e6;
    --beige-mid:   #ede4d2;
    --beige-dark:  #ddd0b8;
    --ink:         #1a1408;
    --ink-soft:    #4a3f2f;
    --surface:     #fffdf7;
    --white:       #ffffff;
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:   0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg:   0 20px 50px rgba(0,0,0,0.16);
    --shadow-gold: 0 8px 30px rgba(212,175,55,0.4);
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-xl:   32px;
    --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--beige);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Animated background mesh ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212,175,55,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(212,175,55,0.08) 0%, transparent 60%),
        linear-gradient(160deg, #f5f0e6 0%, #ede4d2 50%, #e8d9c0 100%);
    pointer-events: none;
    z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: var(--surface);
    padding: 56px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,175,55,0.15);
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardEntry 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes cardEntry {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.company-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--beige-dark);
    box-shadow: var(--shadow-gold);
    margin: 0 auto 20px;
    display: block;
    animation: logoFloat 0.8s cubic-bezier(0.34,1.3,0.64,1) 0.2s both;
    transition: var(--transition-bounce);
}
.company-logo:hover { transform: scale(1.08) rotate(-2deg); box-shadow: 0 12px 40px rgba(212,175,55,0.5); }

@keyframes logoFloat {
    from { opacity: 0; transform: translateY(-20px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--gold-dark);
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 6px;
    animation: fadeUp 0.6s ease 0.3s both;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    animation: fadeUp 0.6s ease 0.4s both;
}

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

/* ── Form inputs ── */
.form-control, .form-select {
    background: var(--beige);
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--ink);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control::placeholder { color: #a09070; }

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--gold-glow);
    transform: translateY(-1px);
}

/* ── Buttons ── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 24px;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-gold);
    color: var(--ink);
}
.btn-gold:hover::after { opacity: 1; }
.btn-gold:active { transform: translateY(0) scale(0.98); }

/* Login specific button */
.login-card .btn-gold {
    padding: 16px;
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.btn-link {
    color: var(--gold-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}
.btn-link:hover { color: var(--gold); letter-spacing: 0.3px; }

.btn-secondary {
    background: var(--beige-mid);
    color: var(--ink-soft);
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 22px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-secondary:hover { background: var(--beige-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.6);
    color: white;
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white; border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    transition: var(--transition-bounce);
    cursor: pointer;
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40,167,69,0.35); }

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: var(--ink); border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    transition: var(--transition-bounce);
    cursor: pointer;
}
.btn-warning:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,193,7,0.4); }

.btn, button { font-family: 'Inter', sans-serif; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */

.navbar {
    background: linear-gradient(90deg, #1a1408 0%, #2c2010 40%, #1a1408 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 1px 0 rgba(212,175,55,0.3);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold) !important;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.navbar-brand:hover { color: var(--gold-light) !important; }

.navbar-brand img {
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,0.5);
    background: #ffffff;
    padding: 3px;
    transition: var(--transition-bounce);
}
.navbar-brand:hover img { transform: rotate(-5deg) scale(1.1); border-color: var(--gold); box-shadow: 0 0 16px rgba(212,175,55,0.5); }

#role-header {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

#role-header .badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════
   CARDS (general)
══════════════════════════════════════════ */

.card {
    background: var(--surface);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14), 0 0 0 1px rgba(212,175,55,0.15);
}
.card-body { padding: 24px; }

/* ══════════════════════════════════════════
   KANBAN BOARD
══════════════════════════════════════════ */

.kanban-column {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px;
    min-height: 520px;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--beige-dark);
    transition: var(--transition);
    position: relative;
}

.kanban-column::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kanban-column:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(212,175,55,0.2), var(--shadow-md);
    border-color: rgba(212,175,55,0.4);
}
.kanban-column:hover::before { opacity: 1; }

.kanban-column h5 {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--ink);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

/* Project cards inside kanban */
.kanban-column .card {
    border-left: 4px solid var(--gold);
    margin-bottom: 14px;
    animation: cardSlideIn 0.4s ease both;
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════
   TABLES
══════════════════════════════════════════ */

.table {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    font-size: 0.9rem;
}

.table th {
    background: linear-gradient(135deg, #2c2010, #1a1408);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 14px 18px;
    border: none;
    white-space: nowrap;
}

.table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--beige-mid);
    border-right: none;
    border-left: none;
    vertical-align: middle;
    color: var(--ink);
    transition: background 0.2s ease;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover td {
    background: rgba(212,175,55,0.06);
}

.table tbody tr:last-child td { border-bottom: none; }

.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════
   MODALS (premium overlay)
══════════════════════════════════════════ */

/* Overlay backdrop */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 3, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1070;
    animation: backdropIn 0.25s ease;
}
@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal panels */
[id$="-modal"]:not(.d-none) {
    animation: modalIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes modalIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.93); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

[id$="-modal"] {
    background: var(--surface) !important;
    border: 1.5px solid rgba(212,175,55,0.25) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(212,175,55,0.1) !important;
    padding: 36px !important;
}

[id$="-modal"] h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--beige-mid);
}

[id$="-modal"] .form-control,
[id$="-modal"] .form-select {
    margin-bottom: 14px;
}

/* ══════════════════════════════════════════
   TOASTS
══════════════════════════════════════════ */

.toast {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--ink);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-gold), var(--shadow-lg);
    margin-bottom: 10px;
    min-width: 300px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: toastIn 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) both;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.4);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════
   HEADINGS
══════════════════════════════════════════ */

h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--ink);
}

/* Section header bar */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--beige-mid);
}

.section-header h2 {
    font-size: 1.75rem;
    position: relative;
}

/* ══════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════ */

.badge-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-pending    { background: rgba(255,193,7,0.15); color: #856404; border: 1px solid rgba(255,193,7,0.3); }
.status-inprogress { background: rgba(13,110,253,0.1); color: #0a4ebd; border: 1px solid rgba(13,110,253,0.2); }
.status-completed  { background: rgba(25,135,84,0.1); color: #0d6040; border: 1px solid rgba(25,135,84,0.2); }
.status-review     { background: rgba(212,175,55,0.15); color: var(--gold-dark); border: 1px solid rgba(212,175,55,0.3); }

/* ══════════════════════════════════════════
   EDITOR NOTE TOOLTIP (Client → Editor remarks)
══════════════════════════════════════════ */

.editor-note-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.editor-note-name.has-note {
    border-bottom: 1px dashed var(--gold-dark);
    cursor: default;
}

.editor-note-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    color: var(--ink-soft);
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}
.editor-note-btn:hover {
    color: var(--gold-dark);
    background: rgba(212,175,55,0.12);
}

.editor-note-wrap .editor-note-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 0;
    z-index: 40;
    width: 220px;
    background: var(--ink);
    color: #fdf6e3;
    font-size: 0.76rem;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: opacity 0.15s ease;
    pointer-events: none;
    white-space: normal;
}
.editor-note-wrap .editor-note-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 16px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--ink) transparent transparent transparent;
}
.editor-note-wrap:hover .editor-note-tooltip {
    visibility: visible;
    opacity: 1;
}

.posted-select {
    min-width: 130px;
}

.badge-posted {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(25,135,84,0.12);
    color: #0d6040;
    border: 1px solid rgba(25,135,84,0.25);
}
.badge-not-posted {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(108,117,125,0.12);
    color: #555;
    border: 1px solid rgba(108,117,125,0.25);
}

/* ══════════════════════════════════════════
   PROJECT TIMELINE MODAL
══════════════════════════════════════════ */

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--beige-dark);
}
.timeline-list li {
    position: relative;
    padding: 4px 0 16px 20px;
}
.timeline-list li:last-child {
    padding-bottom: 0;
}
.timeline-list li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--gold-dark);
}
.timeline-icon {
    margin-right: 4px;
}

/* ══════════════════════════════════════════
   SORT DROPDOWN
══════════════════════════════════════════ */

.sort-select {
    border: 1px solid var(--beige-dark);
    background: var(--surface);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.8rem;
}

/* ══════════════════════════════════════════
   FILTER BUTTONS
══════════════════════════════════════════ */

.btn-outline-secondary {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
}
.btn-outline-secondary:hover {
    background: var(--beige-mid);
    border-color: var(--gold);
    color: var(--ink);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   EDITOR RATES / PAYMENT CARDS
══════════════════════════════════════════ */

.rate-card, .payment-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--beige-dark);
    transition: var(--transition-bounce);
}
.rate-card:hover, .payment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(212,175,55,0.2);
}

/* ══════════════════════════════════════════
   DASHBOARD SECTION SPACING
══════════════════════════════════════════ */

.container-fluid { padding: 0 24px 48px; }

#admin-view h5,
#client-view h2,
#editor-view h2 {
    animation: fadeUp 0.5s ease both;
}

/* ══════════════════════════════════════════
   CHECKBOX STYLING
══════════════════════════════════════════ */

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

/* ══════════════════════════════════════════
   INPUT GROUP FOCUS RING
══════════════════════════════════════════ */

input[type="number"]::-webkit-inner-spin-button { opacity: 0.5; }

/* ══════════════════════════════════════════
   SCROLLBAR (subtle gold)
══════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--beige-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ══════════════════════════════════════════
   REDUCED MOTION RESPECT
══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

@media (max-width: 768px) {
    .login-card { padding: 40px 28px; }
    .title { font-size: 2.4rem; }
    [id$="-modal"] { width: 90vw !important; }
    .container-fluid { padding: 0 12px 32px; }
}

/* ══════════════════════════════════════════
   LIVE CLOCK
══════════════════════════════════════════ */

.live-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    border-right: 1px solid rgba(212,175,55,0.3);
    padding-right: 16px;
    margin-right: 4px;
}

#clock-date {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(212,175,55,0.75);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#clock-time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

@media (max-width: 576px) {
    .live-clock { display: none; }
}

/* ══════════════════════════════════════════
   ADMIN SIDEBAR LAYOUT
══════════════════════════════════════════ */

.admin-shell {
    display: flex;
    height: calc(100vh - 66px); /* full height minus navbar */
    overflow: hidden;
}

/* ── Sidebar ── */
.admin-sidebar {
    width: 220px;
    min-width: 220px;
    background: linear-gradient(180deg, #1a1408 0%, #2c2010 100%);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 10;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.sidebar-icon { font-size: 1.1rem; }

/* ── Sidebar Nav Buttons ── */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.sidebar-btn:hover {
    background: rgba(212,175,55,0.12);
    color: var(--gold-light);
    transform: translateX(3px);
}

.sidebar-btn.active {
    background: linear-gradient(90deg, rgba(212,175,55,0.25), rgba(212,175,55,0.08));
    color: var(--gold);
    font-weight: 600;
    border-left: 3px solid var(--gold);
    padding-left: 11px;
}

.sidebar-btn-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Main content area ── */
.admin-main {
    flex: 1;
    overflow-y: auto;
    background: var(--beige);
    padding: 36px 40px;
}

/* ── Tab Panels ── */
.admin-tab-panel {
    display: none;
    animation: panelFadeIn 0.35s ease both;
}

.admin-tab-panel.active { display: block; }

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Panel header ── */
.admin-panel-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--beige-mid);
}

.admin-panel-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.admin-panel-sub {
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin: 0;
}

/* ── Add User form card ── */
.add-user-form {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 700px;
}

.add-user-form .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* ── Responsive: collapse sidebar on mobile ── */
@media (max-width: 768px) {
    .admin-shell { flex-direction: column; height: auto; }
    .admin-sidebar { width: 100%; min-width: unset; flex-direction: row; padding: 12px; overflow-x: auto; }
    .sidebar-brand { display: none; }
    .sidebar-nav { flex-direction: row; gap: 6px; padding: 0; }
    .sidebar-btn { padding: 9px 12px; font-size: 0.78rem; white-space: nowrap; }
    .sidebar-btn.active { border-left: none; border-bottom: 3px solid var(--gold); padding-left: 12px; }
    .admin-main { padding: 20px 16px; }
}

/* ── Forgot Password Modal icon ── */
.forgot-modal-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
    text-align: center;
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes iconPop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════
   KANBAN — 4-BIN SPECIFIC STYLES
══════════════════════════════════════════ */

/* Under Review bin — amber tint */
.kanban-review {
    border-color: rgba(255, 193, 7, 0.45) !important;
    background: linear-gradient(180deg, #fffdf7 0%, #fffbee 100%) !important;
}
.kanban-review::before {
    background: linear-gradient(90deg, #ffc107, #ffdb70) !important;
}
.kanban-review h5 {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #1a1408 !important;
}
.kanban-review .card {
    border-left: 4px solid #ffc107 !important;
}

/* Approved bin — green tint */
.kanban-approved {
    border-color: rgba(25, 135, 84, 0.35) !important;
    background: linear-gradient(180deg, #fffdf7 0%, #f0fff6 100%) !important;
}
.kanban-approved::before {
    background: linear-gradient(90deg, #28a745, #5dd97a) !important;
}
.kanban-approved h5 {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: #ffffff !important;
}
.kanban-approved .card {
    border-left: 4px solid #28a745 !important;
}

/* Slab badge in kanban cards */
.kanban-column .card-body .slab-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* ══════════════════════════════════════════
   PROJECT ID BADGE
══════════════════════════════════════════ */

.project-id-badge {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1408, #2c2010);
    color: var(--gold);
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212,175,55,0.3);
    white-space: nowrap;
}

/* ══════════════════════════════════════════
   FREEZE BUTTON
══════════════════════════════════════════ */

.btn-freeze {
    background: linear-gradient(135deg, #1a1408, #3a2c10);
    color: var(--gold);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.btn-freeze:hover {
    background: linear-gradient(135deg, #2c2010, #4a3a18);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
    color: var(--gold-light);
}

/* ══════════════════════════════════════════
   FROZEN / ARCHIVED CARD
══════════════════════════════════════════ */

.frozen-card {
    opacity: 0.7;
    border-left: 4px solid #6c757d !important;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0) !important;
}
.frozen-card:hover { opacity: 0.9; }

/* ══════════════════════════════════════════
   ARCHIVE MONTH HEADER
══════════════════════════════════════════ */

.archive-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #1a1408, #2c2010);
    color: var(--gold);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

/* Search input group styling */
.input-group-text {
    background: var(--beige-mid);
    border: 1.5px solid var(--beige-dark);
    border-right: none;
    color: var(--ink-soft);
}

/* ══════════════════════════════════════════
   ACTIVITY MONTH BLOCKS
══════════════════════════════════════════ */

.activity-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #2c2010, #1a1408);
    color: rgba(255,255,255,0.85);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0;
    user-select: none;
    transition: var(--transition);
}
.activity-month-header:hover {
    background: linear-gradient(90deg, #3a2c10, #2c2010);
    color: var(--gold-light);
}
.activity-month-current {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold)) !important;
    color: var(--ink) !important;
}
.activity-month-current:hover {
    background: linear-gradient(90deg, var(--gold), var(--gold-light)) !important;
}
.activity-month-table {
    border: 1px solid var(--beige-dark);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
}
.activity-month-block {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════
   COPYRIGHT FOOTER
══════════════════════════════════════════ */

.ken-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: linear-gradient(90deg, var(--beige-mid), var(--beige), var(--beige-mid));
    border-top: 1px solid var(--beige-dark);
    letter-spacing: 0.3px;
    pointer-events: none;
}
