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

:root {
    --bg: #0b1019;
    --card: #141d2a;
    --gold: #d9ae55;
    --gold-light: #f2d18c;
    --white: #f5f5f2;
    --muted: #929baa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 20%,
            rgba(217,174,85,.10), transparent 40%),
        radial-gradient(ellipse at 85% 80%,
            rgba(42,85,130,.12), transparent 40%);
}

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        circle,
        rgba(217,174,85,.075),
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: left .12s ease-out, top .12s ease-out;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 55px 48px 35px;
    background: rgba(20,29,42,.88);
    border: 1px solid rgba(217,174,85,.18);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0,0,0,.35);
    animation: appear .9s cubic-bezier(.2,.8,.2,1) both;
}

.brand-mark {
    font-family: 'Playfair Display', serif;
    font-size: 58px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--gold);
    text-align: center;
}

.brand-subtitle {
    color: var(--muted);
    text-align: center;
    font-size: 9px;
    letter-spacing: 3px;
    margin-top: 8px;
}

.login-divider {
    height: 1px;
    background: linear-gradient(
        90deg, transparent, var(--gold), transparent
    );
    margin: 35px 0;
    opacity: .5;
}

.login-heading {
    margin-bottom: 32px;
}

.eyebrow {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 2.5px;
    font-weight: 700;
}

.login-heading h1,
.success-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin: 12px 0;
    font-weight: 600;
}

.login-heading p,
.success-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.google-button {
    width: 100%;
    height: 55px;
    border: 1px solid rgba(217,174,85,.35);
    border-radius: 10px;
    background: var(--white);
    color: #20242c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease;
}

.google-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(217,174,85,.16);
    background: #fff;
}

.google-button:disabled {
    opacity: .6;
    cursor: wait;
}

.login-message {
    color: var(--gold-light);
    font-size: 12px;
    text-align: center;
    margin-top: 18px;
    min-height: 18px;
}

.login-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 38px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #687386;
    font-size: 8px;
    letter-spacing: 1px;
}

.success-card {
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 28px;
    margin: 30px auto;
}

.user-email {
    color: var(--gold-light);
    font-size: 13px;
    overflow-wrap: anywhere;
    margin: 15px 0;
}

.logout-button {
    margin-top: 30px;
    padding: 13px 35px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}

.logout-button:hover {
    background: var(--gold);
    color: var(--bg);
}

.success-card .login-footer {
    justify-content: center;
}

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

@media (max-width: 520px) {
    .login-card {
        padding: 40px 25px 28px;
    }

    .brand-mark {
        font-size: 48px;
    }

    .login-heading h1 {
        font-size: 30px;
    }

    .login-footer {
        font-size: 7px;
    }
}

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

/* ==============================
   GCA DASHBOARD
================================ */

.dashboard-layout {
    min-height: 100vh;
    display: flex;
    background: #0b1019;
    color: #f3f1ec;
    font-family: 'DM Sans', sans-serif;
}

.sidebar {
    width: 255px;
    min-width: 255px;
    background: #101722;
    border-right: 1px solid rgba(255,255,255,.07);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

/* =================================
   MOBILE SIDEBAR CONTROLS
================================= */

.mobile-menu-toggle,
.mobile-sidebar-close,
.sidebar-overlay {
    display: none;
}

.mobile-menu-toggle {
    border: 1px solid rgba(217,174,85,.25);
    background: #141d2a;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    background: #d9ae55;
    border-radius: 2px;
    transition: .3s ease;
}

.mobile-menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-sidebar-close {
    border: none;
    background: transparent;
    color: #d9ae55;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 0 8px 35px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-credit {
    color: #788294;
    font-size: 8px;
    letter-spacing: 1px;
    font-weight: normal;
}

.sidebar-logo {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    color: #d9ae55;
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand strong {
    font-size: 11px;
    letter-spacing: 1.5px;
}

.sidebar-brand span {
    color: #788294;
    font-size: 8px;
    letter-spacing: 1px;
    margin-top: 4px;
}

.sidebar-label {
    color: #778296;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 32px 10px 13px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-item {
    text-decoration: none;
    color: #a8b0be;
    padding: 13px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    position: relative;
}

.nav-item > span {
    color: #d9ae55;
    font-size: 17px;
}

.nav-item.active {
    color: #f2d18c;
    background: rgba(217,174,85,.11);
    border: 1px solid rgba(217,174,85,.15);
}

.nav-item.disabled {
    opacity: .55;
    cursor: default;
}

.nav-item small {
    margin-left: auto;
    font-size: 8px;
    color: #7c8798;
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d9ae55;
    color: #101722;
    font-weight: 700;
}

.user-details strong,
.user-details span {
    display: block;
}

.user-details strong {
    font-size: 11px;
}

.user-details span {
    color: #d9ae55;
    font-size: 9px;
    margin-top: 4px;
}

.dashboard-logout {
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.1);
    background: transparent;
    color: #a8b0be;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 11px;
}

.dashboard-logout:hover {
    border-color: #d9ae55;
    color: #f2d18c;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 35px 42px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-eyebrow {
    display: block;
    color: #d9ae55;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
}

.dashboard-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    margin: 8px 0;
}

.dashboard-header p {
    color: #929cab;
    font-size: 12px;
    margin: 0;
}

.header-account {
    text-align: right;
    font-size: 10px;
    color: #a8b0be;
}

.role-badge {
    display: table;
    margin: 8px 0 0 auto;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(217,174,85,.12);
    color: #f2d18c;
    font-size: 9px;
    letter-spacing: 1px;
}

.dashboard-welcome {
    min-height: 180px;
    padding: 32px;
    border: 1px solid rgba(217,174,85,.2);
    border-radius: 12px;
    background:
        radial-gradient(circle at 90% 20%, rgba(217,174,85,.12), transparent 35%),
        #141d2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 38px;
}

.dashboard-welcome h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 12px 0;
}

.dashboard-welcome p {
    max-width: 520px;
    color: #a8b0be;
    font-size: 12px;
    line-height: 1.8;
}

.welcome-decoration {
    font-family: 'Playfair Display', serif;
    font-size: 100px;
    color: rgba(217,174,85,.12);
}

.section-heading,
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.section-heading h2,
.panel-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    margin: 7px 0 0;
}

.data-label {
    color: #818b9c;
    font-size: 9px;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.stat-card {
    background: #141d2a;
    border: 1px solid rgba(255,255,255,.07);
    padding: 21px;
    border-radius: 10px;
}

.stat-card > span {
    display: block;
    color: #a8b0be;
    font-size: 11px;
}

.stat-card strong {
    display: block;
    color: #f2d18c;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin: 15px 0 8px;
}

.stat-card small {
    color: #778296;
    font-size: 9px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-top: 35px;
}

.dashboard-panel {
    background: #141d2a;
    border: 1px solid rgba(255,255,255,.07);
    padding: 23px;
    border-radius: 10px;
    min-height: 235px;
}

.empty-state {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-icon {
    font-size: 27px;
    color: #d9ae55;
    margin-bottom: 12px;
}

.empty-state strong {
    font-size: 11px;
    font-weight: 600;
}

.empty-state p {
    max-width: 260px;
    color: #818b9c;
    font-size: 10px;
    line-height: 1.7;
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: 40px;
    padding-top: 18px;
    color: #687386;
    font-size: 9px;
    letter-spacing: 1px;
}

.dashboard-footer .footer-credit {
    color: #788294;
    font-size: 8px;
    letter-spacing: 0.8px;
    font-weight: normal;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .dashboard-layout {
        flex-direction: row;
    }

    /* SIDEBAR OFF-CANVAS */

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;

        width: min(290px, 85vw);
        min-width: 0;
        height: 100vh;
        height: 100dvh;

        padding: 25px 20px;

        z-index: 1002;

        display: flex;
        flex-direction: column;

        overflow-y: auto;

        transform: translateX(-100%);
        transition: transform .35s cubic-bezier(.22, 1, .36, 1);

        box-shadow: 15px 0 40px rgba(0,0,0,.3);
    }

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

    /* SIDEBAR CLOSE BUTTON */

    .sidebar-brand {
        position: relative;
        padding: 0 35px 25px 8px;
    }

    .mobile-sidebar-close {
        display: block;

        position: absolute;
        top: -5px;
        right: 0;

        width: 32px;
        height: 32px;
    }

    /* NAVIGATION */

    .sidebar-nav {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .nav-item {
        font-size: 12px;
    }

    .sidebar-bottom {
        margin-top: auto;
        padding-top: 25px;
    }

    /* DARK OVERLAY */

    .sidebar-overlay {
        display: block;

        position: fixed;
        inset: 0;

        z-index: 1001;

        background: rgba(0,0,0,.68);
        backdrop-filter: blur(3px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity .3s ease,
            visibility .3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* HAMBURGER BUTTON */

    .mobile-menu-toggle {
        display: flex;

        position: fixed;
        top: 16px;
        left: 16px;

        width: 43px;
        height: 43px;

        z-index: 1000;

        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        border-radius: 9px;

        box-shadow: 0 5px 20px rgba(0,0,0,.25);
    }

    /* MAIN CONTENT */

    .dashboard-main {
        width: 100%;
        padding: 78px 18px 24px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-account {
        text-align: left;
    }

    .role-badge {
        margin-left: 0;
    }

    .dashboard-welcome {
        padding: 22px;
    }

    .welcome-decoration {
        display: none;
    }

    .stats-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-footer {
        gap: 10px;
        flex-wrap: wrap;
    }

    /* PREVENT BACKGROUND SCROLL */

    body.sidebar-open {
        overflow: hidden;
    }
}

/* ==============================
   ADD CONTENT FORM
================================ */

.content-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(7px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content-form-modal {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #141d2a;
    border: 1px solid rgba(217,174,85,.25);
    border-radius: 14px;
    padding: 30px;
    animation: appear .3s ease both;
}

.content-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.content-form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    margin-top: 8px;
}

.content-form-header p {
    color: #929baa;
    font-size: 11px;
    margin-top: 7px;
}

.content-form-close {
    background: transparent;
    border: none;
    color: #929baa;
    font-size: 25px;
    cursor: pointer;
}

.content-form-close:hover {
    color: #f2d18c;
}

.content-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.content-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-form-group.full-width {
    grid-column: 1 / -1;
}

.content-form-group label {
    color: #c5cbd4;
    font-size: 11px;
    font-weight: 600;
}

.content-form-group input,
.content-form-group select,
.content-form-group textarea {
    width: 100%;
    padding: 12px 13px;
    background: #0b1019;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    color: #f5f5f2;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.content-form-group input:focus,
.content-form-group select:focus,
.content-form-group textarea:focus {
    border-color: #d9ae55;
}

.content-form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.content-form-group select option {
    background: #141d2a;
}

.content-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.btn-primary {
    background: #d9ae55;
    border: 1px solid #d9ae55;
    color: #101722;
}

.btn-primary:hover {
    background: #f2d18c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: #a8b0be;
}

.btn-secondary:hover {
    border-color: #d9ae55;
    color: #f2d18c;
}

@media (max-width: 600px) {
    .content-form-modal {
        padding: 22px;
    }

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

    .content-form-group.full-width {
        grid-column: auto;
    }
}

/* CONTENT MANAGEMENT LIST */

.content-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .25s ease;
}

.content-list-item:hover {
    background: rgba(217,174,85,.04);
}

.content-list-item strong {
    display: block;
    color: #f5f5f2;
    font-size: 13px;
    margin-bottom: 7px;
}

.content-list-item p {
    color: #929baa;
    font-size: 10px;
}

.content-date-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.content-date-info span {
    color: #aeb7c5;
    font-size: 10px;
}

.content-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.content-status,
.content-priority {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .4px;
}

/* STATUS COLORS */

.content-status {
    background: rgba(148,163,184,.12);
    color: #aeb7c5;
}

.content-status:where(*) {
    border: 1px solid rgba(148,163,184,.15);
}

/* PRIORITY COLORS */

.content-priority {
    background: rgba(217,174,85,.10);
    color: #d9ae55;
}

/* MOBILE */

@media (max-width: 600px) {
    .content-list-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .content-list-meta {
        flex-direction: row;
        align-items: center;
    }
}

/* CONTENT STATUS COLORS */

.status-planned {
    background: rgba(148,163,184,.12);
    color: #aeb7c5;
    border: 1px solid rgba(148,163,184,.2);
}

.status-in_progress {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.2);
}

.status-review {
    background: rgba(168,85,247,.12);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,.2);
}

.status-revision {
    background: rgba(249,115,22,.12);
    color: #fb923c;
    border: 1px solid rgba(249,115,22,.2);
}

.status-approved {
    background: rgba(34,197,94,.12);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,.2);
}

.status-published {
    background: rgba(22,163,74,.16);
    color: #86efac;
    border: 1px solid rgba(22,163,74,.25);
}

/* CONTENT PRIORITY COLORS */

.priority-low {
    background: rgba(148,163,184,.12);
    color: #aeb7c5;
    border: 1px solid rgba(148,163,184,.2);
}

.priority-normal {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.2);
}

.priority-high {
    background: rgba(249,115,22,.12);
    color: #fb923c;
    border: 1px solid rgba(249,115,22,.2);
}

.priority-urgent {
    background: rgba(239,68,68,.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.2);
}

/* DEADLINE MONITORING */

.deadline-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
}

.deadline-overdue {
    color: #f87171;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
}

.deadline-soon {
    color: #fbbf24;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.25);
}

.deadline-on-track {
    color: #4ade80;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.25);
}

.deadline-completed {
    color: #86efac;
    background: rgba(22,163,74,.16);
    border: 1px solid rgba(22,163,74,.25);
}

.deadline-none {
    color: #aeb7c5;
    background: rgba(148,163,184,.12);
    border: 1px solid rgba(148,163,184,.2);
}
/* CONTENT DETAIL MODAL */
.content-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(5px);
}

.content-detail-modal {
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    background: #202722;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 30px;
    color: #f4f1e9;

    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #a58a63 transparent;
}

/* Chrome, Edge, Safari */
.content-detail-modal::-webkit-scrollbar {
    width: 6px;
}

.content-detail-modal::-webkit-scrollbar-track {
    background: transparent;
    margin: 18px 0;
}

.content-detail-modal::-webkit-scrollbar-thumb {
    background: rgba(165, 138, 99, 0.65);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.content-detail-modal::-webkit-scrollbar-thumb:hover {
    background: #d5ad61;
}

.content-detail-modal::-webkit-scrollbar-thumb:active {
    background: #e6bd6b;
}

.content-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.content-detail-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-top: 10px;
}

.close-detail-button {
    background: transparent;
    border: none;
    color: #f4f1e9;
    font-size: 28px;
    cursor: pointer;
}

.content-detail-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.detail-item,
.detail-description {
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.detail-item span,
.detail-description span {
    display: block;
    color: #a58a63;
    font-size: 12px;
    margin-bottom: 8px;
}

.detail-item strong {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.detail-description {
    grid-column: 1 / -1;
}

.detail-description p {
    color: #d2d0c8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

/* MOBILE - CONTENT DETAIL MODAL */
@media (max-width: 700px) {
    .content-detail-overlay {
        padding: 12px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .content-detail-modal {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: 85vh;
        max-height: 85dvh;
        padding: 18px;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .content-detail-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        min-width: 0;
    }

    .content-detail-header > div:first-child {
        min-width: 0;
        width: 100%;
    }

    .content-detail-header h2 {
        font-size: 23px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .content-detail-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .content-detail-actions .edit-content-button {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: calc(100% - 48px);
        min-height: 40px;
        padding: 0 10px;
        box-sizing: border-box;
        justify-content: center;
        font-size: 10px;
    }

    .content-detail-actions .close-detail-button {
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
    }

    .content-detail-body {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .detail-item,
    .detail-description {
        min-width: 0;
        box-sizing: border-box;
    }

    .detail-description {
        grid-column: auto;
    }
}

.content-detail-body {
    grid-template-columns: 1fr;
}

.detail-description {
    grid-column: auto;
}



/* =================================
   TASK MANAGEMENT BUTTONS
================================= */

.task-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: .25s ease;
}

.task-item:hover {
    border-color: rgba(217, 174, 85, 0.25);
    background: rgba(217, 174, 85, 0.04);
}

.task-item-info {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-item-info strong {
    color: #f5f5f2;
    font-size: 12px;
    font-weight: 600;
}

.task-item-info span {
    color: #929baa;
    font-size: 10px;
}

.task-status-select {
    min-width: 115px;
    padding: 9px 11px;
    background: #0b1019;
    color: #f2d18c;
    border: 1px solid rgba(217, 174, 85, .25);
    border-radius: 7px;
    font-family: inherit;
    font-size: 10px;
    outline: none;
    cursor: pointer;
}

.task-status-select:focus {
    border-color: #d9ae55;
}

/* EDIT BUTTON */

.task-edit-button,
.task-delete-button,
.add-task-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.task-edit-button {
    color: #f2d18c;
    background: rgba(217, 174, 85, .10);
    border: 1px solid rgba(217, 174, 85, .35);
}

.task-edit-button:hover {
    background: #d9ae55;
    color: #101722;
    transform: translateY(-2px);
}

/* DELETE BUTTON */

.task-delete-button {
    color: #f87171;
    background: rgba(239, 68, 68, .09);
    border: 1px solid rgba(239, 68, 68, .3);
}

.task-delete-button:hover {
    color: #fff;
    background: #dc4545;
    border-color: #dc4545;
    transform: translateY(-2px);
}

/* ADD TASK BUTTON */

.add-task-button {
    padding: 11px 18px;
    color: #101722;
    background: #d9ae55;
    border: 1px solid #d9ae55;
    font-size: 11px;
    box-shadow: 0 4px 14px rgba(217, 174, 85, .12);
}

.add-task-button:hover {
    background: #f2d18c;
    border-color: #f2d18c;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(217, 174, 85, .2);
}

/* BUTTON DISABLED */

.task-edit-button:disabled,
.task-delete-button:disabled,
.add-task-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* MOBILE */

@media (max-width: 600px) {
    .task-item {
        gap: 9px;
        padding: 13px;
    }

    .task-item-info {
        flex-basis: 100%;
    }

    .task-status-select {
        flex: 1;
        min-width: 100px;
    }

    .task-edit-button,
    .task-delete-button {
        padding: 9px 12px;
    }
}

.production-status-select {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: #202722;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.production-status-select:focus {
    border-color: #a58a63;
}

.production-status-select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.production-status-select option {
    background: #202722;
    color: #ffffff;
}


.publication-status-select {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: #202722;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.publication-status-select:focus {
    border-color: #a58a63;
}

.publication-status-select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.publication-status-select option {
    background: #202722;
    color: #ffffff;
}


/* USER MANAGEMENT */

.users-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.users-table th,
.users-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(165, 138, 99, 0.18);
    font-size: 13px;
}

.users-table th {
    color: #a58a63;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.users-table td {
    color: #e8e5dc;
}

.users-table tbody tr:hover {
    background: rgba(165, 138, 99, 0.06);
}

.user-status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.user-status.active {
    background: rgba(70, 150, 100, 0.15);
    color: #82c99b;
}

.user-status.inactive {
    background: rgba(180, 80, 80, 0.15);
    color: #e58b8b;
}

.users-table .btn-secondary {
    margin: 3px;
    font-size: 11px;
    padding: 7px 12px;
}

[hidden] {
    display: none !important;
}

/* ==============================
   CONTENT CALENDAR
================================ */

.calendar-wrapper {
    background: #141d2a;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.calendar-month {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #f2d18c;
}

.calendar-navigation {
    display: flex;
    gap: 8px;
}

.calendar-nav-button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(217,174,85,.3);
    border-radius: 7px;
    background: transparent;
    color: #d9ae55;
    font-size: 17px;
    cursor: pointer;
    transition: .2s ease;
}

.calendar-nav-button:hover {
    background: #d9ae55;
    color: #101722;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.08);
    border-left: 1px solid rgba(255,255,255,.08);
}

.calendar-day {
    min-height: 110px;
    padding: 10px;
    border-right: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.calendar-day-name {
    min-height: auto;
    color: #d9ae55;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.calendar-date {
    color: #f5f5f2;
    font-size: 11px;
}

.calendar-day.today {
    background: rgba(217,174,85,.06);
}

.calendar-day.other-month .calendar-date {
    color: #596477;
}

/* MOBILE - CONTENT CALENDAR */
@media (max-width: 700px) {
    #calendar-section {
        min-width: 0;
        width: 100%;
        overflow-x: hidden;
    }

    #calendar-container,
    .calendar-wrapper {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .calendar-wrapper {
        padding: 10px;
        margin-top: 18px;
        border-radius: 10px;
    }

    .calendar-toolbar {
        gap: 8px;
        margin-bottom: 16px;
    }

    .calendar-month {
        font-size: 17px;
        line-height: 1.3;
    }

    .calendar-navigation {
        gap: 6px;
        flex-shrink: 0;
    }

    .calendar-nav-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .calendar-grid {
        width: 100%;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .calendar-day {
        min-width: 0;
        min-height: 62px;
        padding: 5px 3px;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    .calendar-day-name {
        min-height: 28px;
        padding: 7px 0;
        font-size: 8px;
        letter-spacing: 0;
    }

    .calendar-date {
        font-size: 10px;
    }
}
/* ==============================
   CALENDAR EVENTS
================================ */

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.calendar-event {
    padding: 5px 6px;
    background: rgba(217, 174, 85, 0.12);
    border-left: 2px solid #d9ae55;
    border-radius: 4px;
    color: #f2d18c;
    font-size: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.calendar-event {
    position: relative;
}

.calendar-event-details {
    position: absolute;
    top: 0;
    left: calc(100% + 10px);
    right: auto;

    width: 260px;
    max-height: 350px;
    overflow-y: auto;

    padding: 12px;
    background: #202d3e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 100;
}

.calendar-event.popup-left .calendar-event-details {
    left: auto;
    right: calc(100% + 10px);
    transform: translateX(6px);
}

.calendar-event:hover .calendar-event-details {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Warna teks detail */
.calendar-detail-item span {
    color: #d9ae55;
}

.calendar-detail-item strong,
.calendar-detail-item p {
    color: #dce2eb;
}

.calendar-event:hover .calendar-event-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-event:hover {
    z-index: 100;
    background: #202d3e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.calendar-day:hover {
    z-index: 20;
}
/* POPUP CONTENT HEADER */
.calendar-popup-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.calendar-popup-title {
    color: #f2d18c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.calendar-popup-type {
    color: #dce2eb;
    font-size: 10px;
    font-weight: 600;
}

.calendar-popup-status {
    display: inline-block;
    width: fit-content;
    padding: 4px 8px;
    margin-top: 3px;

    background: rgba(55, 145, 220, 0.18);
    border: 1px solid rgba(55, 145, 220, 0.3);
    border-radius: 4px;

    color: #76baff;
    font-size: 9px;
    font-weight: 700;
}

/* DETAIL POPUP */
.calendar-event-details {
    padding: 12px;
    background: #202d3e;
    border-left: 3px solid #d9ae55;
    border-radius: 6px;
    box-sizing: border-box;
}

.calendar-detail-item {
    margin-bottom: 10px;
}

.calendar-detail-item span {
    color: #d9ae55;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.calendar-detail-item strong,
.calendar-detail-item p {
    color: #dce2eb;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}



/* ==============================
   PRODUCTION REPORT
================================ */

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.report-summary-card {
    position: relative;
    overflow: hidden;
    padding: 23px 20px;
    background: #141d2a;
    border: 1px solid rgba(217,174,85,.13);
    border-radius: 11px;
    transition: transform .3s ease, border-color .3s ease;
}

.report-summary-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217,174,85,.5);
}

.report-card-label {
    display: block;
    color: #a8b0be;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
}

.report-summary-card h2 {
    color: #f2d18c;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    margin: 17px 0 9px;
}

.report-card-description {
    display: block;
    color: #778296;
    font-size: 9px;
    line-height: 1.6;
}

/* OVERDUE ACCENT */

#report-overdue-content {
    color: #f87171;
}

/* RESPONSIVE SUMMARY CARDS */

@media (max-width: 1200px) {
    .report-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .report-summary-grid {
        grid-template-columns: 1fr;
    }
}


/* PRODUCTION REPORT CHARTS */

.report-chart-card {
    margin-top: 22px;
    padding: 25px;
    background: #141d2a;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
}

.report-chart-header {
    margin-bottom: 22px;
}

.report-chart-header h2 {
    color: #f5f5f2;
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    margin: 9px 0;
}

.report-chart-header p {
    color: #929baa;
    font-size: 11px;
    line-height: 1.7;
}

.report-chart-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
}

.report-doughnut-wrapper {
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
}

/* RESPONSIVE CHARTS */

@media (max-width: 700px) {
    .report-chart-card {
        padding: 18px;
    }

    .report-chart-wrapper {
        height: 260px;
    }

    .report-doughnut-wrapper {
        height: 280px;
    }
}


/* PUBLICATION CHART FILTERS */

.report-chart-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.report-chart-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-chart-filters select {
    min-width: 115px;
    padding: 10px 13px;
    color: #f5f5f2;
    background: #202c3c;
    border: 1px solid rgba(217, 174, 85, 0.25);
    border-radius: 7px;
    outline: none;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.report-chart-filters select:focus {
    border-color: #d9ae55;
}

.report-chart-filters select option {
    color: #f5f5f2;
    background: #202c3c;
}

@media (max-width: 700px) {
    .report-chart-header-flex {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-chart-filters {
        width: 100%;
    }

    .report-chart-filters select {
        flex: 1;
    }
}


/* PRODUCTION REPORT EXPORT BUTTON */

.report-actions {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0 5px;
}

#export-production-report {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    color: #10141D;
    background: #d9ae55;
    border: 1px solid #d9ae55;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

#export-production-report:hover {
    background: #f2d18c;
    border-color: #f2d18c;
    transform: translateY(-2px);
}

#export-production-report span {
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 700px) {
    .report-actions {
        justify-content: stretch;
    }

    #export-production-report {
        justify-content: center;
        width: 100%;
    }
}


/* PLATFORM PUBLICATION SELECTION */
.platform-selection {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.platform-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 12px;
    background: var(--card-background, #fff);
}

.platform-item > label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    cursor: pointer;
}

.platform-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary-color, #333);
}

.platform-item select,
.platform-item input[type="date"] {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    font: inherit;
}

.platform-item select:disabled,
.platform-item input[type="date"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f3f3f3;
}

@media (max-width: 700px) {
    .platform-selection {
        grid-template-columns: 1fr;
    }
}

.content-delete-button {
    padding: 7px 12px;
    border: 1px solid rgba(220, 90, 90, 0.35);
    border-radius: 7px;
    background: rgba(220, 90, 90, 0.08);
    color: #e58b8b;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-delete-button:hover {
    background: rgba(220, 90, 90, 0.18);
    border-color: rgba(220, 90, 90, 0.6);
}

.content-delete-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* =================================
   GLOBAL CUSTOM SCROLLBAR - GCA
================================= */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(165, 138, 99, 0.7) transparent;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 20px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(165, 138, 99, 0.65);
    border-radius: 20px;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: #d5ad61;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
    background: #e6bd6b;
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}
#upcoming-deadlines-list {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

/* =====================================
   UPCOMING DEADLINES — PREMIUM DESIGN
===================================== */

#upcoming-deadlines-list {
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 8px 4px 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-deadline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(165, 138, 99, 0.15);
    border-radius: 13px;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.upcoming-deadline-item:hover {
    background: rgba(165, 138, 99, 0.08);
    border-color: rgba(165, 138, 99, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.upcoming-deadline-item > div:first-child {
    min-width: 0;
    flex: 1;
}

.upcoming-deadline-item strong {
    display: block;
    color: var(--text-primary, #f4f1e9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.upcoming-deadline-item p {
    color: var(--text-secondary, #a7a79f);
    font-size: 11px;
    margin: 0 0 12px;
}

.upcoming-deadline-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upcoming-deadline-dates span {
    color: var(--text-secondary, #aaa99f);
    font-size: 11px;
    line-height: 1.5;
}

.upcoming-deadline-item .deadline-badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

#upcoming-deadlines-list::-webkit-scrollbar {
    width: 5px;
}

#upcoming-deadlines-list::-webkit-scrollbar-thumb {
    background: rgba(165, 138, 99, 0.55);
    border-radius: 20px;
}

#upcoming-deadlines-list::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 600px) {
    .upcoming-deadline-item {
        padding: 14px;
        gap: 9px;
    }

    .upcoming-deadline-item .deadline-badge {
        font-size: 8px;
        padding: 5px 7px;
    }
}
/* =====================================
   PRODUCTION ASSIGNMENT — REFINED
===================================== */

.production-section .production-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.production-section .production-info > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(165, 138, 99, 0.16);
    border-radius: 12px;
}

.production-section .production-info small {
    color: #b99565;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.production-section .production-info strong {
    color: #f4f1e9;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.production-section .production-status-select {
    width: 100%;
}

.production-section .claim-content-button {
    margin-top: 16px;
}

.production-section .production-note {
    margin-top: 16px;
    padding: 12px 14px;
    color: #c4b08f;
    background: rgba(165, 138, 99, 0.07);
    border-left: 3px solid #a58a63;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .production-section .production-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* =====================================
   CONTENT DETAIL HEADER ACTIONS
===================================== */

.content-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.content-detail-actions .edit-content-button {
    margin-right: 4px;
}

.content-detail-actions .close-detail-button {
    margin-left: 4px;
}



/* =====================================
   GCA CONTENT MANAGEMENT — FINAL CARD
===================================== */

#content-management-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, 280px);
    justify-content: start;
    justify-items: start;
    align-content: start;
    align-items: start;
    gap: 16px;
}

#content-management-list .content-list-item {
    width: 280px;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 16px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;

    background: #202b3c;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;

    cursor: pointer;
    transition: transform .25s ease,
                border-color .25s ease,
                box-shadow .25s ease;
}

#content-management-list .content-list-item:hover {
    transform: translateY(-4px);
    border-color: #c5a46d;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

/* INFORMASI UTAMA */
#content-management-list .content-management-card-main {
    width: 100%;
    min-width: 0;
    text-align: center;
}

#content-management-list .content-management-card-main strong {
    display: block;
    margin: 0 0 7px;
    color: #f5f5f2;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

#content-management-list .content-management-card-main > p {
    margin: 0;
    color: #b9c0ca;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

/* PLATFORM */
#content-management-list .content-management-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
    justify-content: center;
}

#content-management-list .content-management-platforms span {
    padding: 5px 9px;
    border-radius: 20px;
    background: rgba(197,164,109,.14);
    color: #d9bd8e;
    font-size: 10px;
}

/* TANGGAL */
#content-management-list .content-date-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 9px;
    align-items: center;
}

#content-management-list .content-date-info span {
    color: #aeb7c4;
    font-size: 11px;
    line-height: 1.5;
    align-items: center;
}

/* DEADLINE + STATUS + PRIORITAS */
#content-management-list .content-list-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin-top: 5px;
}

#content-management-list .content-list-meta .deadline-badge,
#content-management-list .content-list-meta .content-status,
#content-management-list .content-list-meta .content-priority {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
}

#content-management-list .content-status,
#content-management-list .content-priority {
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
}

/* HAPUS */
#content-management-list .content-delete-button {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 3px 0 0;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 11px;
    cursor: pointer;
    transition: background .25s ease,
                transform .25s ease;
}

#content-management-list .content-delete-button:hover {
    transform: translateY(-2px);
}

/* ANIMASI */
#content-management-list .content-list-item {
    animation: gcaCardEnter .5s ease both;
}

#content-management-list .content-list-item:nth-child(2) {
    animation-delay: .07s;
}

#content-management-list .content-list-item:nth-child(3) {
    animation-delay: .14s;
}

#content-management-list .content-list-item:nth-child(4) {
    animation-delay: .21s;
}

#content-management-list .content-list-item:nth-child(5) {
    animation-delay: .28s;
}

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

/* RESPONSIVE */
@media (max-width: 600px) {
    #content-management-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #content-management-list .content-list-item {
        width: 100%;
        padding: 13px 11px;
    }

    #content-management-list .content-management-card-main strong {
        font-size: 15px;
    }

    #content-management-list .content-list-meta {
        gap: 5px;
    }
}



/* CONTENT MANAGEMENT TOOLBAR */
.content-management-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.content-management-toolbar input,
.content-management-toolbar select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    outline: none;
    background: #202b3c;
    color: #ffffff;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-management-toolbar input {
    flex: 1;
    min-width: 220px;
}

.content-management-toolbar select {
    min-width: 160px;
    cursor: pointer;
}

.content-management-toolbar input::placeholder {
    color: #929cab;
}

.content-management-toolbar input:focus,
.content-management-toolbar select:focus {
    border-color: #c5a46d;
    box-shadow: 0 0 0 3px rgba(197, 164, 109, 0.12);
}

.content-management-toolbar select option {
    background: #202b3c;
    color: #ffffff;
}

/* MOBILE - CONTENT MANAGEMENT FILTER */
@media (max-width: 700px) {
    .content-management-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }

    .content-management-toolbar input,
    .content-management-toolbar select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        box-sizing: border-box;
        font-size: 12px;
        border-radius: 10px;
    }

    .content-management-toolbar input {
        grid-column: 1 / -1;
        flex: none;
    }

    .content-management-toolbar select {
        padding-left: 10px;
        padding-right: 7px;
    }
}


/* =========================
   GCA CUSTOM ALERT
========================= */

.gca-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 10, 18, 0.72);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gca-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gca-alert-modal {
    width: 100%;
    max-width: 390px;
    padding: 32px 28px 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: #202b3c;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    text-align: center;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gca-alert-overlay.active .gca-alert-modal {
    transform: translateY(0) scale(1);
}

.gca-alert-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 600;
}

.gca-alert-modal.success .gca-alert-icon {
    color: #65d6a5;
    background: rgba(65, 190, 130, 0.13);
}

.gca-alert-modal.error .gca-alert-icon {
    color: #f08080;
    background: rgba(220, 80, 80, 0.13);
}

.gca-alert-modal.warning .gca-alert-icon {
    color: #e5b95c;
    background: rgba(220, 170, 60, 0.13);
}

.gca-alert-modal.info .gca-alert-icon {
    color: #75b9f5;
    background: rgba(70, 150, 230, 0.13);
}

.gca-alert-title {
    margin: 0 0 10px;
    color: #f1f4f9;
    font-size: 19px;
    font-weight: 600;
}

.gca-alert-message {
    margin: 0;
    color: #aab6c7;
    font-size: 13px;
    line-height: 1.7;
}

.gca-alert-button {
    width: 100%;
    margin-top: 25px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #d9ae55;
    color: #17202c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gca-alert-button:hover {
    background: #e7bf6b;
    transform: translateY(-2px);
}

.gca-alert-button:active {
    transform: translateY(0);
}


.gca-confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.gca-confirm-actions button {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.gca-confirm-cancel {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #dbe3ed;
}

.gca-confirm-cancel:hover {
    background: rgba(255,255,255,.12);
}

.gca-confirm-accept {
    border: none;
    background: #d9ae55;
    color: #18202b;
}

.gca-confirm-accept:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}


/* EMPTY CONTENT — CENTER WINDOW */

#content-management-list.is-empty:not(:has(.content-list-item)) {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 340px);
    align-items: center;
    justify-content: center;
}

#content-management-list .content-empty-state {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
}

#content-management-list .content-empty-state .empty-icon {
    display: block;
    font-size: 42px;
    color: #a58a63;
    margin-bottom: 16px;
}

#content-management-list .content-empty-state strong {
    display: block;
    color: #f4f1e9;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 9px;
}

#content-management-list .content-empty-state p {
    color: #9da8b8;
    font-size: 14px;
    margin: 0;
}

/* EMPTY USERS — MATCH CONTENT MANAGEMENT */

#users-list .content-empty-state {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
}

#users-list .content-empty-state .empty-icon {
    display: block;
    font-size: 42px;
    color: #a58a63;
    margin-bottom: 16px;
}

#users-list .content-empty-state strong {
    display: block;
    color: #f4f1e9;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 9px;
}

#users-list .content-empty-state p {
    color: #9da8b8;
    font-size: 14px;
    margin: 0;
}

/* =====================================
   GCA PREMIUM AUTHENTICATION LOADING
===================================== */

.gca-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(217, 174, 85, 0.09),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #151a22,
            #0b1019 65%,
            #101827
        );
}

.gca-loading-card {
    width: 100%;
    max-width: 430px;

    padding: 48px 38px 30px;

    text-align: center;

    background: rgba(20, 29, 42, 0.78);
    border: 1px solid rgba(217, 174, 85, 0.17);
    border-radius: 22px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35),
        0 0 45px rgba(217, 174, 85, 0.035);

    backdrop-filter: blur(18px);

    animation: gcaLoadingAppear .8s ease both;
}

.gca-loading-brand {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 9px;
    line-height: 1.2;

    color: var(--gold);

    text-shadow: 0 0 35px rgba(217, 174, 85, 0.16);
}

.gca-loading-subtitle {
    margin-top: 8px;

    color: #929baa;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
}

.gca-loading-divider {
    width: 100%;
    height: 1px;
    margin: 30px 0;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(217, 174, 85, 0.55),
        transparent
    );
}

.gca-loading-spinner {
    width: 52px;
    height: 52px;

    margin: 0 auto 24px;

    display: grid;
    place-items: center;

    border: 2px solid rgba(217, 174, 85, 0.13);
    border-top-color: var(--gold);

    border-radius: 50%;

    animation: gcaLoadingSpin 1s linear infinite;
}

.gca-loading-spinner span {
    width: 32px;
    height: 32px;

    border: 2px solid transparent;
    border-bottom-color: var(--gold-light);
    border-radius: 50%;

    animation: gcaLoadingSpin 1.5s linear infinite reverse;
}

.gca-loading-card h2 {
    margin-bottom: 10px;

    color: #f5f5f2;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
}

.gca-loading-description {
    max-width: 290px;

    margin: 0 auto;

    color: #929baa;
    font-size: 12px;
    line-height: 1.8;
}

.gca-loading-progress {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 3px;

    margin: 30px 0 18px;

    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.gca-loading-progress span {
    position: absolute;
    top: 0;
    left: -35%;

    width: 35%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        var(--gold-light)
    );

    border-radius: 10px;

    animation: gcaLoadingProgress 1.8s ease-in-out infinite;
}

.gca-loading-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #aeb7c4;
    font-size: 11px;
}

.gca-loading-dot {
    width: 7px;
    height: 7px;

    background: #65d6a5;
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(101, 214, 165, 0.6);

    animation: gcaLoadingPulse 1.5s ease infinite;
}

.gca-loading-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    margin-top: 35px;
    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    color: #687386;
    font-size: 8px;
    letter-spacing: 1px;
}

@keyframes gcaLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gcaLoadingProgress {
    0% {
        left: -35%;
    }

    100% {
        left: 100%;
    }
}

@keyframes gcaLoadingPulse {
    0%, 100% {
        opacity: .45;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes gcaLoadingAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .gca-loading-card {
        padding: 38px 24px 25px;
    }

    .gca-loading-brand {
        font-size: 54px;
    }

    .gca-loading-card h2 {
        font-size: 19px;
    }

    .gca-loading-footer {
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gca-loading-screen *,
    .gca-loading-screen *::before,
    .gca-loading-screen *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =================================
   GCA PAGE TRANSITION ANIMATION
================================= */

@keyframes gcaPageEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-enter-animation {
    animation: gcaPageEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}


/* =========================================
   GCA MOBILE DASHBOARD REFINEMENT
========================================= */

@media (max-width: 700px) {

    /* MAIN CONTENT */
    .dashboard-main {
        padding: 76px 14px 25px;
    }

    /* HEADER: lebih ringkas dan seimbang */
    .dashboard-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 12px 8px;
        margin-bottom: 24px;
    }

    .dashboard-header > div:first-child {
        grid-column: 1 / -1;
    }

    .dashboard-header h1 {
        font-size: 27px;
        line-height: 1.2;
        margin: 9px 0 7px;
    }

    .dashboard-header p {
        font-size: 11px;
    }

    .header-account {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
        text-align: left;
    }

    .header-account > span:first-child {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
    }

    .role-badge {
        margin: 0;
        flex-shrink: 0;
        font-size: 8px;
        padding: 5px 8px;
    }

    #add-content-button {
        grid-column: 2;
        grid-row: 2;
        padding: 11px 12px;
        font-size: 9px;
        white-space: nowrap;
    }

    /* WELCOME CARD */
    .dashboard-welcome {
        min-height: auto;
        padding: 22px 19px;
        margin-bottom: 27px;
        border-radius: 13px;
    }

    .dashboard-welcome h2 {
        font-size: 23px;
        line-height: 1.3;
        margin: 10px 0;
    }

    .dashboard-welcome p {
        font-size: 11px;
        line-height: 1.7;
    }

    /* SECTION HEADING */
    .section-heading {
        align-items: flex-end;
        gap: 8px;
        margin-bottom: 13px;
    }

    .section-heading h2 {
        font-size: 19px;
    }

    .data-label {
        font-size: 7px;
        text-align: right;
    }

    /* STATISTICS: two columns */
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        min-width: 0;
        padding: 15px 13px;
        border-radius: 11px;
    }

    .stat-card > span {
        font-size: 10px;
    }

    .stat-card strong {
        font-size: 27px;
        margin: 12px 0 6px;
    }

    .stat-card small {
        font-size: 8px;
        line-height: 1.5;
    }

    /* OTHER DASHBOARD SECTIONS */
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 25px;
    }

    .dashboard-panel {
        padding: 17px;
        min-height: auto;
    }

    .dashboard-footer {
        margin-top: 27px;
    }
}

/* EXTRA SMALL SCREEN */
@media (max-width: 360px) {

    .dashboard-header h1 {
        font-size: 24px;
    }

    .header-account > span:first-child {
        max-width: 105px;
    }

    #add-content-button {
        padding: 10px 8px;
        font-size: 8px;
    }

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


/* =========================================
   ALIGN CONTENT STATUS BADGES
========================================= */

.content-list-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.content-list-meta .deadline-badge,
.content-list-meta .content-status,
.content-list-meta .content-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 25px;
    min-height: 25px;
    box-sizing: border-box;

    margin: 0;
    padding: 0 10px;

    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}


/* =========================================
   MOBILE MENU BUTTON POSITION
========================================= */

@media (max-width: 700px) {

    .mobile-menu-toggle {
        position: fixed !important;

        top: 56px;
        left: auto;
        right: 16px;

        width: 43px;
        height: 43px;

        z-index: 1000;
    }
}

/* MOBILE HAMBURGER - HEADER POSITION */
@media (max-width: 700px) {
    .dashboard-header {
        position: relative;
    }

    .mobile-menu-toggle {
        position: absolute !important;
        top: 64px !important;
        right: 14px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 1000;
        width: 43px;
        height: 43px;
    }
}

/* MOBILE - CONTENT MANAGEMENT HEADER */
@media (max-width: 700px) {
    #content-management-section .section-heading {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }

    #content-management-section .section-heading > div {
        min-width: 0;
    }

    #content-management-section .section-heading h2 {
        font-size: 23px;
        line-height: 1.3;
        margin: 9px 0 7px;
    }

    #content-management-section .section-heading p {
        font-size: 11px;
        line-height: 1.7;
        margin: 0;
    }

    #content-management-add-button {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        justify-content: center;
        font-size: 12px;
    }
}

/* MOBILE - CONTENT MANAGEMENT CARDS */
@media (max-width: 700px) {
    .content-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
        padding: 17px 14px;
    }

    .content-list-item > div:first-child {
        min-width: 0;
        width: 100%;
    }

    .content-list-item strong {
        font-size: 13px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .content-list-item p {
        font-size: 10px;
        line-height: 1.6;
    }

    .content-date-info {
        gap: 8px 12px;
        margin-top: 10px;
    }

    .content-date-info span {
        font-size: 9px;
    }

    .content-list-meta {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 7px;
        width: 100%;
    }

    .content-status,
    .content-priority {
        font-size: 9px;
        padding: 6px 9px;
    }
}

/* MOBILE - CONTENT DELETE BUTTON */
@media (max-width: 700px) {
    .content-list-meta .content-delete-button {
        min-height: 32px;
        padding: 0 13px;
        border-radius: 7px;
        font-size: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* MOBILE - CONTENT DETAIL ACTIONS */
/* MOBILE - CONTENT DETAIL ACTIONS */
@media (max-width: 700px) {
    .content-detail-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .content-detail-actions .edit-content-button {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 51px);
        min-height: 40px;
        padding: 0 10px;
        box-sizing: border-box;
        justify-content: center;
        font-size: 10px;
    }

    .content-detail-actions .close-detail-button {
        flex: 0 0 40px;
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 23px;
    }
}

/* MOBILE - CALENDAR EVENTS */
@media (max-width: 700px) {
    .calendar-events {
        gap: 4px;
        margin-top: 7px;
    }

    .calendar-event {
        padding: 4px;
        font-size: 8px;
        line-height: 1.35;

        /* Batasi teks agar tidak memenuhi sel */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;

        overflow-wrap: normal;
        word-break: normal;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    .calendar-event-details {
        width: min(220px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        max-height: 55vh;
        box-sizing: border-box;
        overflow-y: auto;
        z-index: 200;
    }

    .calendar-event.popup-left .calendar-event-details {
        right: 0;
        left: auto;
    }

    .calendar-popup-title {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .calendar-popup-type {
        font-size: 9px;
    }
}

/* MOBILE - CALENDAR POPUP INTERACTION */
@media (max-width: 700px) {
    .calendar-event {
        cursor: pointer;
    }

    .calendar-event-details {
        display: none;
    }

    .calendar-event.mobile-popup-open {
        z-index: 300;
    }

    /* MOBILE - ANIMATED CALENDAR POPUP */
    @media (max-width: 700px) {
        .calendar-event.mobile-popup-open {
            z-index: 300;
        }

        .calendar-event.mobile-popup-open .calendar-event-details {
            display: block;
            position: fixed;
            top: 50%;
            left: 50%;
            right: auto;

            width: calc(100vw - 40px);
            max-width: 360px;
            max-height: 70vh;

            transform: translate(-50%, -50%) scale(1);
            transform-origin: center;

            opacity: 1;
            visibility: visible;
            z-index: 10000;

            animation: calendarPopupEnter 0.28s ease-out both;

            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
        }
    }

    @keyframes calendarPopupEnter {
        from {
            opacity: 0;
            transform: translate(-50%, -46%) scale(0.94);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
}

/* MOBILE - PRODUCTION REPORT SUMMARY */
@media (max-width: 700px) {
    #production-report-section {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    #production-report-container {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .report-summary-card {
        min-width: 0;
        padding: 16px 12px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .report-summary-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }

    .report-card-label {
        font-size: 9px;
        line-height: 1.5;
        letter-spacing: 0.2px;
    }

    .report-summary-card h2 {
        font-size: 27px;
        margin: 12px 0 7px;
    }

    .report-card-description {
        font-size: 8px;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .report-summary-grid {
        gap: 8px;
    }

    .report-summary-card {
        padding: 13px 9px;
    }

    .report-summary-card h2 {
        font-size: 24px;
    }
}


/* MOBILE - USER MANAGEMENT */
@media (max-width: 700px) {
    #users-section {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    #users-section .section-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    #users-section .section-heading .btn-primary {
        width: 100%;
        justify-content: center;
    }

    #users-list,
    .users-table-wrapper {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .users-table-wrapper {
        margin-top: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* USER MANAGEMENT - MOBILE CARDS */
.users-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .users-table-wrapper {
        display: none;
    }

    .users-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
        width: 100%;
        min-width: 0;
    }

    .user-mobile-card {
        width: 100%;
        min-width: 0;
        padding: 17px;
        box-sizing: border-box;
        background: #141d2a;
        border: 1px solid rgba(165, 138, 99, 0.18);
        border-radius: 11px;
    }

    .user-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
    }

    .user-mobile-identity {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .user-mobile-identity strong {
        color: #f4f1e9;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .user-mobile-identity span {
        color: #9da8b8;
        font-size: 11px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .user-mobile-header .user-status {
        flex-shrink: 0;
        font-size: 9px;
        padding: 5px 8px;
    }

    .user-mobile-role {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid rgba(165, 138, 99, 0.15);
    }

    .user-mobile-role span {
        color: #8994a5;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .user-mobile-role strong {
        color: #d9ae55;
        font-size: 11px;
    }

    .user-mobile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 15px;
    }

    .user-mobile-actions button {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        margin: 0 !important;
        padding: 8px 5px !important;
        font-size: 10px !important;
        box-sizing: border-box;
    }
}
