/* === BASE FONT SIZE: 0.85rem = 16px === */
html {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    overflow-y: visible;
    overflow-x: clip;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.no-scroll {
    overflow: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    display: none;
}

body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(180deg, #006b83 0%, #005e73 35%, #028ea7 75%, #019196 100%);
    background-repeat: repeat, repeat, no-repeat;
    background-size: 2.125rem 2.125rem, 2.125rem 2.125rem, cover;
    background-attachment: fixed;
}

header {
    background-color: transparent;
    color: #fff;
    padding: 0.7969rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2001;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.0625rem;
}

.hamburger {
    width: 1.5938rem;
    height: 1.1687rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 4000;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: 0.35s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.sidebar li {
    position: relative;
    display: block;
    width: 100%;
}

.visitor-trigger {
    display: flex;
    align-items: center;
    gap: 0.425rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    color: white;
    padding: 0.2656rem 0.5312rem;
    border-radius: 0.2656rem;
}

.visitor-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 0.425rem;
    cursor: pointer;
    font-weight: 600;
    padding-right: 0.5312rem;
    user-select: none;
}

.profile-box i {
    transition: transform .25s ease;
}

.profile-box.rotate i {
    transform: rotate(180deg);
}

.header-pp {
    width: 1.8062rem;
    height: 1.8062rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.guest-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--accent, #00eaff);
    border-radius: 20px;
    color: var(--accent, #00eaff);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
    margin-right: 8px;
}
.guest-login-btn:hover {
    background: var(--accent, #00eaff);
    color: #000;
}

.profile-dropdown {
    position: absolute;
    right: 0.7969rem;
    top: 3.0812rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.5312rem 0;
    border-radius: 0.5312rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 12.0312rem;
    display: block;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 7000;
}

.profile-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-dropdown li {
    padding: 0.5312rem 0.7438rem;
    display: flex;
    align-items: center;
    gap: 0.5312rem;
    cursor: pointer;
}

.profile-dropdown li:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -14.875rem;
    width: 14.875rem;
    height: 100vh;
    background: rgba(10, 15, 25, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4.25rem 0.7969rem 77vh 0.7969rem;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2000;
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar h3 {
    margin-bottom: 0.5312rem;
}

.sidebar.open {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    position: relative;
    margin-bottom: 0.425rem;
    border-radius: 0.6375rem;
    cursor: pointer;
    overflow: hidden;
}

.sidebar a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7438rem 0.7969rem;
    color: #d3d3d3;
    text-decoration: none;
    font-size: 0.7969rem;
    font-weight: 500;
    transition: padding-left 0.25s ease, color 0.25s ease;
    background: transparent;
}

.sidebar a i {
    width: 1.5938rem;
    font-size: 0.9562rem;
    text-align: center;
    margin-right: 0.5312rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.sidebar li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar li:hover a {
    color: #fff;
    padding-left: 1.0625rem;
}

.sidebar li:hover i,
.sidebar li:hover b {
    color: #00eaff;
    transform: scale(1.1);
}

.sidebar li.active {
    background: linear-gradient(90deg, rgba(0, 234, 255, 0.15) 10%, rgba(0, 234, 255, 0) 100%);
    border-left: 6px solid #00eaff;
    /* Garis Neon Kiri */
}

.sidebar li.active a {
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
    font-weight: 600;
}

.sidebar li.active i {
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
}

.sidebar li.sidebar-manageable {
    user-select: none;
}

.sidebar li.sidebar-manageable:active {
    cursor: grabbing;
}

.sidebar li.sidebar-dragging {
    opacity: 0.45;
    outline: 1px dashed var(--accent, #00eaff);
    background: rgba(0, 234, 255, 0.08);
}

.sidebar ul.sidebar-drop-zone {
    border-radius: 0.6375rem;
    box-shadow: inset 0 0 0 1px rgba(0, 234, 255, 0.18);
}

.sidebar li.sidebar-locked {
    opacity: 0.35;
    cursor: default;
}

.sidebar li.sidebar-locked.sidebar-manageable {
    pointer-events: auto;
    cursor: grab;
}

.sidebar-badge {
    position: absolute;
    top: 50%;
    right: 0.7969rem;
    transform: translateY(-50%);
    font-size: 0.4781rem;
    font-weight: 800;
    padding: 0.2125rem 0.425rem;
    border-radius: 0.3187rem;
    letter-spacing: 0.0265rem;
    z-index: 5;
    text-transform: uppercase;
}

.badge-hot {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, #ffd32a 0%, #fffa65 100%);
    color: rgb(255, 0, 251);
    box-shadow: 0 2px 10px rgba(255, 211, 42, 0.4);
}

.badge-upd {
    background: linear-gradient(135deg, #0be881 0%, #00d2d3 100%);
    color: rgb(255, 77, 0);
    box-shadow: 0 2px 10px rgba(11, 232, 129, 0.4);
}

.badge-soon {
    background: linear-gradient(135deg, #57606f 0%, #a4b0be 100%);
    color: white;
    opacity: 0.8;
}

.badge-info {
    background: linear-gradient(135deg, #00cfe8 0%, #1dd1ff 100%);
    color: black;
    box-shadow: 0 2px 10px rgba(0, 207, 232, 0.4);
}

.badge-beta {
    background: linear-gradient(135deg, #a55eea 0%, #d2a8ff 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(165, 94, 234, 0.4);
}

.badge-lock {
    background: linear-gradient(135deg, #57606f 0%, #a4b0be 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(87, 96, 111, 0.4);
}

.badge-fix {
    background: linear-gradient(135deg, #ff9f43 0%, #feca57 100%);
    color: black;
    box-shadow: 0 2px 10px rgba(255, 159, 67, 0.4);
}

.badge-today {
    background: linear-gradient(135deg, #feca57 0%, #ffdd59 100%);
    color: black;
    box-shadow: 0 2px 10px rgba(254, 202, 87, 0.45);
}

.badge-task {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.4);
}


@media (min-width: 1024px) {
    .sidebar {
        left: 0;
        width: 14.3438rem;
        background: transparent;
        backdrop-filter: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 4.25rem;
    }

    .main-content {
        margin-left: 14.3438rem;
    }

    .closebtn {
        display: none;
    }
}

@media (max-width: 1024px) {
    .main-content {
        height: 50%;
    }
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1500;
    display: none;
    transition: opacity .25s ease;
    opacity: 0;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.main-content {
    padding: 1.0625rem;
    max-width: 47.8125rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3.1875rem;
}

/* --- i18n ANTI-BLINK --- */
[data-i18n] {
    visibility: hidden;
}
.lang-ready [data-i18n] {
    visibility: visible;
}


.course-card {
    background: rgba(15, 20, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6375rem;
    padding: 1.0625rem;
    margin: 1.0625rem 0;
    transition: all .3s ease;
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    will-change: transform;
    /* TAMBAHKAN INI */
    max-width: 100%;
    /* Biar gak lebih dari layar */
    word-wrap: break-word;
    /* Patahkan kata panjang */
    overflow-wrap: anywhere;
    /* Pastikan teks gak maksa keluar layar */
    word-break: break-word;
    /* Support browser lebih luas */
}

.course-card.editable-mode {
    border: 2px dashed #fff;
    cursor: grab;
}

.course-card h3 {
    margin-top: 0;
    margin-bottom: 0.2656rem;
    line-height: 1.2;
    font-size: 1.275rem;
}

.course-card h4 {
    margin-top: 0;
    margin-bottom: 0.5312rem;
    font-weight: normal;
    color: #a2a0a0;
}

.course-card p {
    margin-top: 0;
    margin-bottom: 0.7969rem;
}

.course-card small {
    display: block;
    margin-top: 0;
    color: #dadada;
}

.course-card p[data-field="content"] {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.4;
}

.card-photo-container {
    width: 100%;
    position: relative;
    margin-bottom: 0.7969rem;
    border-radius: 0.425rem;
    overflow: hidden;
}

.card-photo {
    width: 100%;
    height: auto;
    max-height: 21.25rem;
    object-fit: cover;
    display: block;
    border-radius: 0.425rem;
}

.card-photo-placeholder {
    width: 100%;
    padding: 2.125rem 1.0625rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.425rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-photo-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.delete-photo-btn {
    position: absolute;
    top: 0.5312rem;
    right: 0.5312rem;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 0.425rem 0.6375rem;
    border-radius: 0.2656rem;
    cursor: pointer;
    z-index: 10;
}

.delete-photo-btn:hover {
    background: rgba(255, 0, 0, 1);
}

.btn-primary {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.5312rem 1.0625rem;
    border-radius: 0.2656rem;
    cursor: pointer;
}

.btn-success {
    background: #4CAF50;
}

.btn-danger {
    background: #f44336;
}

.delete-btn {
    margin-top: 0.6375rem;
    padding: 0.425rem;
    background: #d9534f;
    border: none;
    color: white;
    border-radius: 0.3187rem;
    cursor: pointer;
    font-size: 0.7438rem;
}

.delete-btn i {
    margin-right: 0.3187rem;
}

i {
    margin-right: 0.2656rem;
}

.visitor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.visitor-overlay.show {
    visibility: visible;
    opacity: 1;
}

.visitor-popup {
    background-color: #0b1221;
    width: 92%;
    max-width: 26rem;
    border-radius: 1.0625rem;
    padding: 1.5rem;
    border: 1px solid #1e293b;
    text-align: center;
    color: white;
    font-family: inherit;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.visitor-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.visitor-tabs::-webkit-scrollbar { display: none; }

.visitor-tab {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    font-size: 11.5px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    user-select: none;
}
.visitor-tab.active {
    background: var(--accent, #00eaff);
    color: #000;
    border-color: var(--accent, #00eaff);
    font-weight: 600;
}
.visitor-tab:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}

.visitor-overlay.show .visitor-popup {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
    width: 100%;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.close-popup {
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #ff4757;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap; /* Biar kalo kepaksa font kegedean dia turun kebawah */
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: #151e32;
    flex: 1;
    min-width: 100px; /* Guard biar gak terlalu gepeng */
    padding: 1rem 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card h4 {
    font-size: 0.6375rem;
    color: #cbd5e1;
    margin-bottom: 0.2656rem;
    font-weight: normal;
}

.stat-card p {
    font-size: 1.4875rem;
    font-weight: 900;
    color: white;
    margin: 0;
}

.list-section {
    text-align: left;
    margin-bottom: 1.0625rem;
}

.list-title {
    font-size: 0.6906rem;
    color: #cbd5e1;
    margin-bottom: 0.5312rem;
    margin-left: 0.2656rem;
}

.visitor-list-container {
    max-height: 11.6875rem;
    overflow-y: auto;
    padding-right: 0.2656rem;
}

.visitor-list-container::-webkit-scrollbar {
    width: 0.2656rem;
}

.visitor-list-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 0.2656rem;
}

.visitor-item {
    background-color: #151e32;
    margin-bottom: 0.425rem;
    padding: 0.5312rem 0.6375rem;
    border-radius: 0.5312rem;
    display: flex;
    align-items: center;
}

.visitor-pp {
    width: 2.0187rem;
    height: 2.0187rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.6375rem;
    border: 2px solid #334155;
}

.visitor-name {
    color: white;
    font-weight: 700;
    font-size: 0.7438rem;
    margin-bottom: 0.1062rem;
}

.visited-at {
    display: block;
    font-size: 0.5844rem;
    color: #94a3b8;
}

.admin-actions {
    margin-top: 0.7969rem;
    display: none;
}

.btn-reset-text {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.5844rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-reset-text:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .main-content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 1.5938rem;
        max-width: 100%;
        text-align: left;
        margin-left: 14.3438rem;
        transition: margin-left 0.3s ease;
        overflow: visible;
    }

    .left-section {
        flex: 1;
        position: sticky;
        top: 4.25rem;
        align-self: flex-start;
    }

    .right-section {
        flex: 1;
        margin-top: 3.9844rem;
    }

    .sidebar {
        left: -0.5312rem;
    }

    .sidebar.closed {
        left: -14.3438rem;
    }

    .main-content.shifted {
        margin-left: 1.0625rem;
    }

    footer {
        margin-top: 15.9375rem;
    }

    .sidebar-overlay {
        display: none;
    }
}

/* --- GLASS MODAL REFINED --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.88);
    /* backdrop-filter dihapus — paling berat, blur semua konten di belakang */
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    /* 'all' → spesifik */
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.glass-modal-box {
    width: 90%;
    max-width: 26.5625rem;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(22, 22, 26, 0.98);
    /* lebih opaque — gak perlu composite layer dalam */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    /* glow cyan dihapus, pakai shadow biasa */
    border-radius: 1.275rem;
    padding: 1.5938rem;
    display: flex;
    flex-direction: column;
    gap: 0.7969rem;
    color: white;
    transform: scale(1);
    will-change: transform, opacity;
    /* browser siapkan composite layer */
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.25s ease;
}

.modal-overlay.hidden .glass-modal-box {
    transform: scale(0.95);
    opacity: 0;
}

.glass-modal-box h3 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    gap: 0.5312rem;
}

.glass-modal-box h3 i {
    color: #00eaff;
}

.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6375rem;
    padding: 0.7438rem;
    color: white;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
    /* 'all' → spesifik */
}

.glass-input:focus {
    border-color: #00eaff;
    background: rgba(0, 0, 0, 0.5);
    /* box-shadow glow dihapus — repaint tiap keystroke */
}

textarea.glass-input {
    resize: vertical;
    min-height: 5.3125rem;
}

.drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.85rem;
    padding: 1.5938rem 1.0625rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.drop-area:hover,
.drop-area.dragover {
    border-color: #00eaff;
    background: rgba(0, 234, 255, 0.05);
}

.drop-icon {
    font-size: 1.7rem;
    color: #00eaff;
    margin-bottom: 0.5312rem;
}

.drop-text {
    font-size: 0.7438rem;
    color: #aaa;
}

.drop-text b {
    color: white;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5312rem;
    margin-top: 0.5312rem;
}

.preview-item {
    width: 3.1875rem;
    height: 3.1875rem;
    border-radius: 0.425rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-file,
.pending-file-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    background: #eef7fb;
    color: #0f7e96;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.preview-file i,
.pending-file-preview i {
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.preview-file span,
.pending-file-preview span {
    position: relative;
    z-index: 2;
}

.preview-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ff4757;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
    /* 'all' → spesifik */
    font-size: 0.9562rem;
}

.preview-item:hover .preview-remove {
    opacity: 1;
}

.action-buttons {
    display: flex;
    gap: 0.7969rem;
    margin-top: 0.5312rem;
}

.btn-glass-cancel {
    flex: 1;
    padding: 0.6375rem;
    border-radius: 0.6375rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ddd;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-glass-cancel:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-glass-save {
    flex: 2;
    padding: 0.6375rem;
    border-radius: 0.6375rem;
    border: none;
    background: #00eaff;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    /* box-shadow glow dan transform hover dihapus — layout thrash */
    transition: opacity 0.2s ease;
}

.btn-glass-save:hover {
    opacity: 0.88;
}

li.nav-locked {
    opacity: 0.5;
    cursor: not-allowed;
    transition: 0.3s;
}

li.nav-locked:hover {
    opacity: 0.3;
}

li.nav-locked a {
    pointer-events: none;
    color: #ccc;
}

li.nav-locked a::after {
    content: "\f023";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.5312rem;
    font-size: 0.85rem;
    opacity: 0.8;
    position: absolute;
    right: 20%;
}

.photo-grid {
    display: grid;
    gap: 0.1062rem;
    width: 100%;
    border-radius: 0.6375rem;
    overflow: hidden;
    margin-bottom: 0.7969rem;
    background: #000;
}

.photo-grid.has-file-items {
    background: transparent;
    justify-items: center;
    align-items: center;
}

.photo-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s;
}

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

.grid-1 .photo-item {
    height: 15.9375rem;
}

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

.grid-2 .photo-item {
    height: 13.2812rem;
}

.grid-3 {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 6.6406rem 6.6406rem;
}

.grid-3 .photo-item:nth-child(1) {
    grid-row: 1 / 3;
    height: 100%;
}

.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 7.9688rem 7.9688rem;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 0.425rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.0625rem;
    right: 1.5938rem;
    color: white;
    font-size: 2.125rem;
    cursor: pointer;
    z-index: 5001;
}

.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.glass-detail-box {
    width: 90%;
    height: 90%;
    max-width: 58.4375rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.0625rem;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.close-detail-btn {
    position: absolute;
    top: 0.7969rem;
    right: 1.0625rem;
    font-size: 2.125rem;
    color: white;
    cursor: pointer;
    z-index: 20;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transition: 0.3s;
}

.close-detail-btn:hover {
    color: #ff4757;
    transform: rotate(90deg);
}

.detail-media-section {
    flex: 1.6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MODIFIKASI: MODE TEXT ONLY (TANPA FOTO) --- */

/* 1. Global (Desktop & Mobile): Box jadi ramping & centered */
.glass-detail-box.text-only-mode {
    max-width: 31.875rem;
    width: 90%;
    height: auto;
    max-height: 85vh;
    flex-direction: column;
}

/* 2. Sembunyikan Area Foto & Header Mobile Glow */
.glass-detail-box.text-only-mode .detail-media-section,
.glass-detail-box.text-only-mode .mobile-header-overlay,
.glass-detail-box.text-only-mode .mobile-toggle-btn {
    display: none;
}

/* 3. Area Teks jadi Full */
.glass-detail-box.text-only-mode .detail-info-section {
    flex: 1;
    width: 100%;
    border-left: none;
    overflow: hidden;
}

/* 4. MOBILE SPECIFIC FIXES */
@media (max-width: 768px) {
    .glass-detail-box.text-only-mode {
        /* Bikin tampilan mobile jadi box ditengah (bukan fullscreen) */
        position: relative;
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1.0625rem;
        margin: auto;
        width: 85%;
    }

    .glass-detail-box.text-only-mode .detail-info-section {
        position: relative;
        top: auto;
        bottom: auto;
        transform: none;
        max-height: 100%;
        backdrop-filter: none;
        border-top: none;
    }

    .glass-detail-box.text-only-mode .info-content-scroll {
        padding: 1.3281rem;
    }

    /* === INI YANG PENTING === */
    /* Paksa Judul Desktop Muncul di Mobile khusus Text Mode */
    .glass-detail-box.text-only-mode .desktop-only-title {
        display: block;
    }

    /* Tombol close pindah ke dalam box biar rapi */
    .glass-detail-box.text-only-mode .close-detail-btn {
        top: 0.5312rem;
        right: 0.7969rem;
        background: transparent;
        font-size: 1.4875rem;
    }
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper.file-mode {
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.65), transparent 28%),
        linear-gradient(135deg, rgba(238, 247, 251, 0.95), rgba(211, 235, 242, 0.8));
}

.slider-wrapper img {
    max-width: 97%;
    max-height: 97%;
    border-radius: 0.85rem;
}

.slider-nav-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

/* Spinner Loading */
.slider-wrapper.loading::before {
    content: "\f110";
    /* FontAwesome Spinner */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    font-size: 1.5938rem;
    color: #00eaff;
    animation: fa-spin 1s infinite linear;
    z-index: 5;
}

#detailImg {
    transition: opacity 0.2s ease;
    opacity: 1;
}

/* Sembunyiin gambar lama pas lagi loading */
.slider-wrapper.loading #detailImg {
    opacity: 0;
}

.glass-nav-btn {
    position: absolute;
    top: auto;
    transform: none;
    bottom: 0.7969rem;
    width: 2.3906rem;
    height: 2.3906rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.0625rem;
    cursor: pointer;
    pointer-events: all;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.glass-nav-btn:hover {
    background: #00eaff;
    color: black;
    transform: scale(1.1);
    border-color: #00eaff;
}

.glass-nav-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    left: 1.3281rem;
}

.next-btn {
    right: 1.3281rem;
}

.photo-counter-tag {
    position: absolute;
    top: 1.0625rem;
    left: 1.0625rem;
    padding: 0.2656rem 0.7969rem;
    border-radius: 1.0625rem;
    font-size: 0.6375rem;
    color: white;
    letter-spacing: 0.0531rem;
    background: #0056cc;
}

/* --- PHOTO GRID OVERLAY (+X PHOTOS) --- */
.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.photo-wrapper.file-wrapper {
    width: min(12rem, 82%);
    height: auto;
    min-height: 6.5rem;
    max-height: 8rem;
    aspect-ratio: 4 / 3;
    align-self: center;
    justify-self: center;
    border-radius: 0.75rem;
    box-shadow: 0 0.45rem 1.2rem rgba(0, 0, 0, 0.18);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover effect: Zoom dikit biar keren */
.photo-wrapper:hover img {
    transform: scale(1.1);
}

.file-tile-preview {
    width: 100%;
    height: 100%;
    min-height: 6.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: #eef7fb;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.file-tile-preview i {
    color: #0f7e96;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.file-tile-preview span {
    max-width: 100%;
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #15323a;
    position: relative;
    z-index: 2;
}

.detail-file-preview {
    width: min(15rem, 72%);
    min-height: 10rem;
    padding: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #eef7fb;
    color: white;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-file-preview i {
    color: #0f7e96;
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.detail-file-preview span {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    font-weight: 700;
    color: #15323a;
    position: relative;
    z-index: 2;
}

.detail-file-preview small {
    color: #0f7e96;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
}

.preview-file::before,
.pending-file-preview::before,
.file-tile-preview::before,
.detail-file-preview::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 0.45rem;
    background:
        linear-gradient(90deg, var(--file-line, rgba(15, 126, 150, 0.55)) 0 28%, transparent 28% 100%) 0 22% / 100% 10% no-repeat,
        linear-gradient(90deg, var(--file-line, rgba(15, 126, 150, 0.55)) 0 72%, transparent 72% 100%) 0 42% / 100% 8% no-repeat,
        linear-gradient(90deg, var(--file-line, rgba(15, 126, 150, 0.55)) 0 56%, transparent 56% 100%) 0 58% / 100% 8% no-repeat,
        linear-gradient(90deg, var(--file-line, rgba(15, 126, 150, 0.55)) 0 80%, transparent 80% 100%) 0 74% / 100% 8% no-repeat,
        rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 0.45rem 1.4rem rgba(0, 0, 0, 0.15);
    filter: blur(2px);
    opacity: 0.72;
    transform: rotate(-5deg) scale(1.08);
}

.preview-file::after,
.pending-file-preview::after,
.file-tile-preview::after,
.detail-file-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.72));
    z-index: 1;
}

.file-type-pdf {
    --file-line: rgba(255, 71, 87, 0.62);
    background: #fff1f2;
}

.file-type-pdf i,
.file-type-pdf small {
    color: #ff4757;
}

.file-type-word {
    --file-line: rgba(0, 122, 255, 0.62);
    background: #eef5ff;
}

.file-type-word i,
.file-type-word small {
    color: #007aff;
}

.file-type-excel {
    --file-line: rgba(46, 213, 115, 0.68);
    background: #effcf4;
}

.file-type-excel i,
.file-type-excel small {
    color: #16a35a;
}

.file-type-document {
    --file-line: rgba(15, 126, 150, 0.58);
}

.more-overlay {
    position: absolute;
    inset: 0;
    /* Full cover container */
    background: rgba(0, 0, 0, 0.7);
    /* Hitam transparan 70% biar kelihatan blur alami */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Text Style */
    color: white;
    font-size: 1.7rem;
    /* Ukuran gede kayak WA */
    font-weight: normal;
    /* WA biasanya ga bold banget */
    letter-spacing: 0.0531rem;
}

.detail-info-section {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 1.0625rem;
}

.info-content-scroll {
    padding: 2.125rem;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.info-content-scroll h2 {
    font-size: 1.3812rem;
    margin-bottom: 0.2656rem;
    color: #fff;
}

.info-content-scroll h4 {
    font-size: 0.85rem;
    color: #00eaff;
    margin-bottom: 0.5312rem;
    font-weight: normal;
}

.detail-body-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: hsl(0, 0%, 95%);
    white-space: pre-wrap;
    flex: 1;
}

.detail-footer-text {
    padding-top: 0.2656rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.6906rem;
    margin-bottom: 0.5312rem;
}

.hide-desk {
    background: #00eaff;
    color: #000;
    font-weight: bold;
    padding: 0.6375rem 1.3281rem;
    border-radius: 1.0625rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
}

.mobile-toggle-btn {
    position: absolute;
    bottom: 0.7969rem;
    left: 50%;
    transform: translateX(-50%);
    background: #000000ad;
    color: rgb(255, 255, 255);
    font-weight: bold;
    padding: 0.6375rem 1.3281rem;
    border-radius: 1.5938rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
    z-index: 5002;
    display: none;
    align-items: center;
    gap: 0.425rem;
    font-size: 0.7438rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-toggle-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.mobile-header-overlay {
    display: none;
}

.desktop-only-title {
    display: block;
}

@media (max-width: 768px) {
    .glass-detail-box {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        position: relative;
        overflow: hidden;
        background: transparent;
    }

    .mobile-header-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1.0625rem 3.7188rem 1.0625rem 1.3281rem;
        z-index: 15;
        pointer-events: none;
    }

    .mobile-header-overlay h2 {
        margin: 0;
        font-size: 1.1687rem;
        color: white;
        text-shadow: 0 0 10px #00eaff, 0 0 25px rgba(0, 234, 255, 0.6);
        font-weight: 700;
        line-height: 1.2;
    }

    .mobile-header-overlay h4 {
        margin: 0.2656rem 0 0 0;
        font-size: 0.7438rem;
        color: #ccc;
        font-weight: 400;
    }

    .desktop-only-title {
        display: none;
    }

    .detail-media-section {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        background: transparent;
    }

    /* --- OPTIMASI TRANSISI SHEET (HARDWARE ACCELERATED) --- */
    .detail-info-section {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85vh;
        /* Tinggi pas full screen */
        background: rgba(15, 15, 15, 0.98);
        border-radius: 1.275rem 1.275rem 0 0;
        z-index: 5001;
        display: flex;
        flex-direction: column;

        /* Posisi Awal: Setengah layar (naik 45% dari bawah) */
        transform: translate3d(0, 45%, 0);

        /* Transisi Mulus (Cubic Bezier ala iOS) */
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        will-change: transform;
    }

    /* Keadaan Full Screen (Geser ke paling atas) */
    .detail-info-section.full-screen {
        transform: translate3d(0, 0, 0);
    }

    /* Keadaan Sembunyi (Turun ke bawah layar) */
    .detail-info-section.hidden-mobile {
        transform: translate3d(0, 100%, 0);
    }

    .info-content-scroll {
        padding: 1.3281rem;
    }

    .detail-info-section.hidden-mobile~.mobile-toggle-btn {
        display: flex;
        animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .detail-info-section.hidden-mobile {
        transform: translateY(100%);
    }

    .detail-info-section.full-screen {
        height: 92vh;
        max-height: 92vh;
    }

    .detail-info-section::before {
        content: '';
        position: absolute;
        top: 0.5312rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2.125rem;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 0.5312rem;
    }

    .close-detail-btn {
        top: 1.0625rem;
        right: 1.0625rem;
        left: auto;
        z-index: 20;
        background: rgba(0, 0, 0, 0.5);
        width: 2.125rem;
        height: 2.125rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@keyframes popIn {
    from {
        transform: translateX(-50%) scale(0.5);
        opacity: 0;
    }

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

/* --- FITUR BOOKMARK FLOATING (UPDATED) --- */
.bookmark-btn {
    position: absolute;
    bottom: 0.7969rem;
    /* Pindah ke bawah */
    right: 0.7969rem;
    /* Pindah ke kanan */
    top: auto;
    /* Reset top */
    z-index: 10;

    background: transparent;
    /* Hapus background */
    border: none;
    box-shadow: none;
    padding: 0.2656rem;

    /* Default: Abu-abu transparan */
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.0625rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.bookmark-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
    box-shadow: none;
}

.bookmark-btn:active {
    transform: scale(0.9);
}

/* STATE: SUDAH DITANDAI (Aktif) */
.bookmark-btn.active {
    background: transparent;
    border: none;
    color: #2196F3;
    /* Biru */
}

/* Animasi Ikon saat aktif (tetap) */
.bookmark-btn.active i {
    animation: popIcon 0.3s ease forwards;
}

@keyframes popIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Sembunyikan saat Edit Mode */
.editable-mode .bookmark-btn {
    display: none;
}

/* === UNIVERSAL POPUP SYSTEM === */
.uni-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.uni-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.uni-box {
    background: linear-gradient(135deg,
            rgba(0, 40, 60, 0.98),
            rgba(10, 20, 35, 0.98));

    border: 1px solid rgba(120, 220, 255, 0.25);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 200, 255, 0.25);

    border-radius: 0.9562rem;
    padding: 1.5938rem;
    text-align: center;
    max-width: 17rem;
    width: 90%;
    transform: translateY(24px) scale(0.94);
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
        opacity 0.25s ease;
}

.uni-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.uni-overlay.active .uni-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.uni-icon {
    font-size: 2.6562rem;
    margin-bottom: 0.7969rem;
}

.uni-icon.success {
    color: #00eaff;
    filter: drop-shadow(0 0 15px rgba(0, 234, 255, 0.5));
}

.uni-icon.error {
    color: #ff4757;
    filter: drop-shadow(0 0 15px rgba(255, 71, 87, 0.5));
}

.uni-icon.info {
    color: #ffffff;
}

.uni-msg {
    color: white;
    margin-bottom: 1.3281rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.uni-btn {
    background: #00eaff;
    color: black;
    border: none;
    padding: 0.5312rem 1.5938rem;
    border-radius: 2.6562rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.7438rem;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

.uni-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.5);
}

.admin-fab-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.fab-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 52px;
    padding: 0 1.25rem;
    border-radius: 26px;
    border: none;
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.2s ease,
        background 0.25s ease,
        padding 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.fab-main .fab-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.fab-main .fab-label {
    font-size: 0.875rem;
    white-space: nowrap;
}

.fab-main:active {
    transform: scale(0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.fab-main.state-edit {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
}

.fab-main.state-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 152, 0, 0.55);
}

.fab-main.state-done {
    background: linear-gradient(135deg, #00c853 0%, #00897b 100%);
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.45);
    animation: fabPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-main.state-done:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 200, 83, 0.55);
}

@keyframes fabPop {
    0% {
        transform: scale(0.85);
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

.fab-add {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #00eaff) 0%, #007bff 100%);
    border: none;
    color: #000;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 234, 255, 0.35);
    opacity: 0;
    transform: scale(0.5) translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.fab-add:active {
    transform: scale(0.9) !important;
}

/* Saat Edit Mode Aktif → Tombol Add Muncul */
.admin-fab-container.active .fab-add {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.admin-fab-container.active .fab-add:hover {
    transform: scale(1.08) translateY(0);
    box-shadow: 0 8px 24px rgba(0, 234, 255, 0.5);
}

/* --- FIX RESPONSIVE CLICK CARD --- */
.course-card.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* --- UNIVERSAL POPUP UPDATES --- */

/* Tipe Confirm (Warning) - Kuning */
.uni-icon.warning {
    color: #ffd700;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Layout Tombol Ganda (Untuk Confirm) */
.uni-actions {
    display: flex;
    gap: 0.7969rem;
    justify-content: center;
    margin-top: 1.3281rem;
    width: 100%;
}

/* Tombol Tidak / Batal */
.uni-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
    padding: 0.5312rem 1.3281rem;
    border-radius: 2.6562rem;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}

.uni-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Tombol Iya / Konfirmasi */
.uni-btn-confirm {
    background: #ffd700;
    /* Kuning */
    color: black;
    border: none;
    padding: 0.5312rem 1.3281rem;
    border-radius: 2.6562rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transition: 0.3s;
    flex: 1;
}

.uni-btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

/* --- UNIVERSAL FORM SYSTEM --- */
.uni-form-container {
    text-align: left;
    width: 100%;
    margin-bottom: 0.8rem;
}

.uni-title {
    color: #00eaff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.uni-form-group {
    margin-bottom: 1rem;
}

.uni-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    margin-left: 0.2rem;
    font-weight: 500;
}

.uni-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 220, 255, 0.2);
    border-radius: 0.6rem;
    padding: 0.75rem 0.9rem;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.uni-input:focus {
    border-color: #00eaff;
    background: rgba(0, 234, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.15);
}

.task-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #00bfff;
    color: #00bfff;
    padding: 0.425rem 0.85rem;
    border-radius: 1.0625rem;
    cursor: pointer;
    font-size: 0.7438rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.425rem;
}

.task-btn:hover {
    background: rgba(0, 191, 255, 0.15);
    transform: translateY(-2px);
}

.task-btn.done {
    background: #00c853;
    /* Hijau Mantap */
    border-color: #00c853;
    color: white;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.4);
}

.task-btn.done:hover {
    background: #009624;
}

/* Tombol selesai yang dikunci (is_done = true, diarsipkan) */
.task-btn.done:disabled,
.task-btn.done[disabled] {
    background: rgba(0, 200, 83, 0.18);
    border-color: rgba(0, 200, 83, 0.25);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.6);
}

.task-btn-delete:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
    transform: translateY(-1px);
}



/* Container Utama biar tengah di Desktop */
.ig-container {
    max-width: 49.6719rem;
    /* Lebar standar IG Web */
    margin: 0 auto;
    padding: 0;
    color: white;
    background: #000;
    /* Dasar Hitam */
    min-height: 100vh;
}

/* HEADER: Layout PP dan Stats */
.ig-header {
    display: flex;
    align-items: center;
    padding: 1.0625rem 1.0625rem 0 1.0625rem;
    gap: 1.0625rem;
}

/* Foto Profil */
.ig-pp-section {
    flex: 0 0 auto;
}

.ig-pp-ring {
    width: 4.25rem;
    /* Ukuran Mobile */
    height: 4.25rem;
    border-radius: 50%;
    padding: 0.1062rem;
    /* Gradient Story IG */
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.ig-pp-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
    /* Jarak antara ring dan foto */
}

/* Stats (Posts, Followers, Following) */
.ig-stats-section {
    display: flex;
    flex: 1;
    justify-content: space-around;
    text-align: center;
}

.ig-stat-num {
    display: block;
    font-size: 0.9562rem;
    font-weight: 700;
    color: #fff;
}

.ig-stat-label {
    display: block;
    font-size: 0.6906rem;
    color: #dbdbdb;
}

/* BIO Section */
.ig-bio-section {
    padding: 0 1.0625rem 1.0625rem 1.0625rem;
    font-size: 0.7438rem;
}

.ig-fullname {
    font-weight: 700;
    margin-bottom: 0.1062rem;
}

.ig-bio-text {
    line-height: 1.4;
    white-space: pre-wrap;
}

.ig-link a {
    color: #e0f1ff;
    text-decoration: none;
    font-weight: 600;
}

/* TOMBOL EDIT PROFILE */
.ig-actions {
    display: flex;
    gap: 0.425rem;
    padding: 0 1.0625rem 0.7969rem 1.0625rem;
}

.ig-btn {
    flex: 1;
    background: #363636;
    border: none;
    color: #fff;
    padding: 0.3719rem 0;
    border-radius: 0.425rem;
    font-weight: 600;
    font-size: 0.7438rem;
    cursor: pointer;
}

.ig-btn:hover {
    background: #262626;
}

.ig-btn-icon {
    background: #363636;
    border: none;
    color: #fff;
    padding: 0 0.5312rem;
    border-radius: 0.425rem;
    cursor: pointer;
}

/* HIGHLIGHTS */
.ig-highlights {
    display: flex;
    gap: 0.7969rem;
    padding: 0 1.0625rem 1.0625rem 1.0625rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.ig-highlights::-webkit-scrollbar {
    display: none;
}

.ig-hl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2656rem;
    min-width: 3.1875rem;
}

.ig-hl-ring {
    width: 3.1875rem;
    height: 3.1875rem;
    border-radius: 50%;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.275rem;
    background: #121212;
}

.ig-hl-item span {
    font-size: 0.6375rem;
}

/* TABS (Grid Icon) */
.ig-tabs {
    display: flex;
    border-top: 1px solid #262626;
    border-bottom: 1px solid #262626;
}

.ig-tab {
    flex: 1;
    text-align: center;
    padding: 0.5312rem 0;
    color: #8e8e8e;
    font-size: 1.275rem;
    cursor: pointer;
}

.ig-tab.active {
    color: #fff;
    border-bottom: 1px solid #fff;
    /* Garis putih bawah icon */
}

/* GRID FEED */
.ig-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Kolom */
    gap: 0.1062rem;
    /* Jarak tipis khas IG */
}

.ig-post {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Bikin Kotak Sempurna (Aspect Ratio 1:1) */
    background: #262626;
    overflow: hidden;
    cursor: pointer;
}

.ig-post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tampilan kalau gak ada foto (Text Post) */
.ig-text-post {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5312rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.6375rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Desktop Adjustments --- */
@media (min-width: 768px) {
    .ig-header {
        padding: 2.125rem 3.1875rem;
        gap: 4.25rem;
        margin-bottom: 1.0625rem;
    }

    .ig-pp-ring {
        width: 7.9688rem;
        height: 7.9688rem;
    }

    .ig-stats-section {
        justify-content: flex-start;
        gap: 2.125rem;
        font-size: 0.9562rem;
    }

    .ig-stat-num {
        font-size: 1.1687rem;
    }

    .ig-bio-section {
        padding-left: 15.4062rem;
        /* Geser bio ke kanan foto */
        margin-top: -4.25rem;
        /* Naik ke sebelah foto */
    }

    .ig-actions {
        padding-left: 15.4062rem;
        justify-content: flex-start;
        max-width: 31.875rem;
    }

    .ig-btn {
        flex: unset;
        width: 6.375rem;
    }
}

/* --- DAILY CARD V10 (FINAL REQUEST) --- */
/* ═══════════════════════════════════════════════════════════
   DAILY CARD — Redesign total
   Aesthetic: Newspaper meets terminal — bold type, sharp lines
   ═══════════════════════════════════════════════════════════ */

/* Warna per hari — neon accent */
:root {
    --dc-senin: #ff4d6d;
    --dc-selasa: #9b5de5;
    --dc-rabu: #00f5d4;
    --dc-kamis: #f4a261;
    --dc-jumat: #f9c74f;
    --dc-sabtu: #ff85a1;
    --dc-minggu: #48cae4;
    --dc-custom: #ffd700;
    --dc-col: var(--accent, #00eaff);
}

.daily-card-final {
    margin-top: 1.3281rem;
    position: relative;
    border-radius: 0.85rem;
    padding: 1.3rem 1.3rem 3.5rem 1.3rem;
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 50px rgba(255, 130, 52, 0.15);
    color: white;
}

/* Warna aksen hari — set via JS di card */
.daily-card-final[data-day="Senin"] {
    --dc-col: var(--dc-senin);
}

.daily-card-final[data-day="Selasa"] {
    --dc-col: var(--dc-selasa);
}

.daily-card-final[data-day="Rabu"] {
    --dc-col: var(--dc-rabu);
}

.daily-card-final[data-day="Kamis"] {
    --dc-col: var(--dc-kamis);
}

.daily-card-final[data-day="Jumat"] {
    --dc-col: var(--dc-jumat);
}

.daily-card-final[data-day="Sabtu"] {
    --dc-col: var(--dc-sabtu);
}

.daily-card-final[data-day="Minggu"] {
    --dc-col: var(--dc-minggu);
}

.daily-card-final[data-day="CUSTOM"] {
    --dc-col: var(--dc-custom);
}

/* ── HEADER AREA ── */
.final-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.2rem;
    position: relative;
}

.final-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--dc-col);
    transition: background 0.4s ease;
}

.final-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: var(--dc-col);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--dc-col);
    margin-bottom: 0.4rem;
    transition: all 0.4s ease;
}

.final-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dc-col);
    flex-shrink: 0;
}

.final-day {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
    line-height: 0.9;
    color: white;
    text-transform: uppercase;
    font-family: 'Segoe UI', sans-serif;
}

.final-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 1px;
    display: block;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

/* ── TASK SHORTCUT ── */
.task-shortcut-box {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 3px;
}

.task-shortcut-box i {
    font-size: 1.1rem;
    color: var(--dc-col);
    transition: color 0.25s;
}

.task-shortcut-box span {
    font-size: 0.45rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.task-shortcut-box:hover {
    background: var(--dc-col);
    border-color: var(--dc-col);
    transform: scale(1.06);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--dc-col) 40%, transparent);
}

.task-shortcut-box:hover i,
.task-shortcut-box:hover span {
    color: #000;
}

/* ── TOP INFO CARDS ── */
.top-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 0.6rem;
    overflow: hidden;
    margin-bottom: 1.4rem;
}

.info-card-dynamic {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 0 !important;
    transition: filter 0.2s;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.info-card-dynamic:last-child {
    border-bottom: none !important;
}

.info-card-dynamic:hover {
    filter: brightness(1.1);
}

.card-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.card-label {
    font-size: 0.5rem !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.2px;
    opacity: 0.6;
    display: block;
}

.card-val {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-val.small {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.85;
    white-space: normal;
}

/* ── SECTION HEADER ── */
.final-section {
    margin-top: 0;
}

.final-title {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.final-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.final-spacer {
    height: 1.2rem;
}

/* ── TIMELINE ── */
.final-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tl-item-final {
    display: grid;
    grid-template-columns: 6.5rem 1px 1fr;
    gap: 0 0.8rem;
    min-height: 2.4rem;
    position: relative;
    align-items: start;
    padding-bottom: 0.2rem;
}

.tl-time-final {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: var(--dc-col);
    text-align: right;
    letter-spacing: 0.5px;
    opacity: 0.8;
    padding-top: 0.5rem;
    transition: color 0.4s;
    white-space: nowrap;
    line-height: 1.4;
}

.tl-marker-final {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    align-self: stretch;
    flex-shrink: 0;
}

.tl-marker-final::after {
    content: '';
    position: absolute;
    top: 0.55rem;
    left: -3.5px;
    width: 7px;
    height: 7px;
    background: #0a0a0f;
    border: 1.5px solid var(--dc-col);
    border-radius: 50%;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.tl-item-final:hover .tl-marker-final::after {
    box-shadow: 0 0 8px var(--dc-col);
}

.tl-subject-final {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0 0.7rem 0;
    font-weight: 500;
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
}

/* ── PIKET PILLS ── */
.picket-grid-big {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.picket-pill {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: initial;
}

.picket-pill::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dc-col);
    margin-right: 6px;
    vertical-align: middle;
    transition: background 0.4s;
}

.picket-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--dc-col);
    color: #fff;
    transform: translateY(-1px);
}

/* ── WATERMARK ── */
.final-watermark {
    text-align: right;
    margin-top: 1.2rem;
    opacity: 0.15;
    font-size: 0.45rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── ANIMATIONS ── */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

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

@keyframes popUp {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(8px);
    }

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

@keyframes fadeInSimple {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slide-right {
    opacity: 0;
    animation: slideInRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-pop-up {
    opacity: 0;
    animation: popUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInSimple 0.5s ease forwards;
}

.animate-pop-in {
    animation: popUp 0.5s ease forwards;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .final-day {
        font-size: 2.2rem;
    }

    .top-cards-grid {
        gap: 0;
    }
}

/* ── FORM / CONFIG ── */
.dc-label-input {
    display: block;
    font-size: 0.6rem;
    color: #aaa;
    margin: 0.5rem 0 0.25rem;
}

.dc-toggle-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.7rem;
    border-radius: 0.5rem;
    margin-top: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.switch {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 1.125rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .3s;
    border-radius: 2rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 0.9562rem;
    width: 0.9562rem;
    left: -3px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent, #00eaff);
}

input:focus+.slider {
    box-shadow: 0 0 0 2px rgba(0, 234, 255, 0.25);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* FAB */
.daily-fab-container {
    position: fixed;
    bottom: 1rem;
    right: 4.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    z-index: 1;
}

.fab-daily {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-daily.btn-edit {
    background: #f4a261;
}

.fab-daily.btn-save {
    background: #2ed573;
}

.fab-daily.btn-cancel {
    background: #ff4757;
}

.fab-daily:hover {
    transform: scale(1.12);
}

.fab-daily:active {
    transform: scale(0.92);
}

/* EDIT MODE */
.editable-active {
    border: 1px dashed rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 4px;
    border-radius: 3px;
    min-width: 1rem;
    cursor: text;
    transition: 0.15s;
}

.editable-active:focus {
    background: rgba(0, 234, 255, 0.08);
    border-color: var(--accent, #00eaff);
    outline: none;
}

.btn-add-inline {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.3);
    width: 100%;
    padding: 0.4rem;
    border-radius: 0.4rem;
    margin-top: 0.4rem;
    cursor: pointer;
    font-size: 0.6rem;
    transition: 0.2s;
}

.btn-add-inline:hover {
    background: rgba(0, 234, 255, 0.07);
    color: var(--accent, #00eaff);
    border-color: var(--accent, #00eaff);
}

.btn-del-inline {
    display: none;
}

.edit-mode-on .btn-del-inline {
    display: flex;
    position: absolute;
    right: -0.3rem;
    top: 0.3rem;
    background: #ff4757;
    color: white;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.editable-text:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    display: block;
}

.tl-time-final:empty,
.tl-subject-final:empty,
.picket-pill span:empty {
    min-width: 2.5rem;
    display: inline-block;
}

.config-panel {
    display: none;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.edit-mode-on .config-panel {
    display: block;
    animation: popUp 0.3s forwards;
}

/* ── DRAG & DROP REORDER (DAILY CARD) ── */
.edit-mode-on .tl-item-final,
.edit-mode-on .picket-pill {
    cursor: grab;
}

.edit-mode-on .tl-item-final:active,
.edit-mode-on .picket-pill:active {
    cursor: grabbing;
}

.tl-item-final.dc-dragging,
.picket-pill.dc-dragging {
    opacity: 0.35;
    outline: 1px dashed #00eaff;
    background: rgba(0, 234, 255, 0.08);
}

.bg-custom {
    color: #000 !important;
    border-color: #ffd700 !important;
    animation: pulseBadge 2s infinite;
}

.bg-orange {
    color: #f4a261 !important;
    border-color: #f4a261 !important;
}

@keyframes pulseBadge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.dc-empty-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* Header action buttons */
.header-right-group {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.card-edit-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* Wrapper tombol edit di pojok kanan bawah card */
.dc-edit-btn-wrap {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 10;
}

.action-btn {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.action-btn.edit:hover {
    background: rgba(244, 162, 97, 0.2);
    color: #f4a261;
    border-color: #f4a261;
}

.action-btn.save:hover {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border-color: #2ed573;
}

.action-btn.cancel:hover {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border-color: #ff4757;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.0625rem;
    padding: 1.5938rem;
    margin-bottom: 1.5938rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.user-profile-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5938rem;
}

.profile-left {
    display: flex;
    gap: 1.3281rem;
    align-items: flex-start;
}

.profile-image-container {
    position: relative;
    width: 6.375rem;
    height: 6.375rem;
}

.profile-img-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.online-status {
    position: absolute;
    bottom: 0.5312rem;
    right: 0.5312rem;
    width: 1.0625rem;
    height: 1.0625rem;
    background: #4cd964;
    border-radius: 50%;
    border: 3px solid #667eea;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 0.2656rem 0;
}

.profile-username {
    font-size: 0.935rem;
    opacity: 0.9;
    margin: 0 0 0.7969rem 0;
}

.profile-bio {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 26.5625rem;
    margin: 0 0 1.0625rem 0;
}

.profile-meta {
    display: flex;
    gap: 1.0625rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.425rem;
    font-size: 0.8075rem;
    opacity: 0.9;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.0625rem;
    min-width: 15.9375rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.7969rem;
    padding: 1.0625rem;
    display: flex;
    align-items: center;
    gap: 0.7969rem;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.22);
}

.stat-icon {
    width: 2.6562rem;
    height: 2.6562rem;
    border-radius: 0.6375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.275rem;
    color: white;
}

.stat-icon.pending {
    background: #ff9500;
}

.stat-icon.bookmarks {
    background: #5856d6;
}

.stat-icon.completed {
    background: #34c759;
}

.stat-icon.materi {
    background: #007aff;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.53rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.765rem;
    opacity: 0.9;
    margin-top: 0.2656rem;
}

/* Tabs */
.dashboard-tabs {
    background: white;
    border-radius: 1.0625rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5938rem;
}

.tab-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.tab-btn {
    flex: 1;
    padding: 1.0625rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5312rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    color: #007aff;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #007aff;
}

.tab-badge {
    background: #ff3b30;
    color: white;
    font-size: 0.68rem;
    padding: 0.1062rem 0.425rem;
    border-radius: 0.5312rem;
    min-width: 1.3281rem;
    text-align: center;
}

.tab-content {
    padding: 1.5938rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-subtitle {
    color: #6c757d;
    margin-top: 0.2656rem;
}

/* Tasks & Bookmarks Containers */
.tasks-container,
.bookmarks-container {
    margin-top: 1.0625rem;
}

.task-item,
.bookmark-item {
    background: #f8f9fa;
    border-radius: 0.7969rem;
    padding: 1.0625rem;
    margin-bottom: 0.7969rem;
    border-left: 4px solid #007aff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-item:hover,
.bookmark-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.task-item.priority-high {
    border-left-color: #ff3b30;
}

.task-item.priority-medium {
    border-left-color: #ff9500;
}

.task-header,
.bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5312rem;
}

.task-title,
.bookmark-title {
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.task-meta,
.bookmark-meta {
    display: flex;
    gap: 0.7969rem;
    font-size: 0.765rem;
    color: #6c757d;
    margin-top: 0.2656rem;
}

.task-actions,
.bookmark-actions {
    display: flex;
    gap: 0.5312rem;
    margin-top: 0.7969rem;
}

.empty-state {
    text-align: center;
    padding: 3.1875rem 1.0625rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3.4rem;
    color: #dee2e6;
    margin-bottom: 1.0625rem;
}

.empty-state h3 {
    color: #495057;
    margin: 0.5312rem 0;
}

.empty-state p {
    max-width: 21.25rem;
    margin: 0 auto 1.0625rem;
}

.btn-primary {
    background: #007aff;
    color: white;
    border: none;
    padding: 0.6375rem 1.275rem;
    border-radius: 0.5312rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.425rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0056cc;
}

/* Quick Access */
.quick-access {
    background: white;
    border-radius: 1.0625rem;
    padding: 1.5938rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.quick-access h3 {
    margin: 0 0 1.3281rem 0;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5312rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.625rem, 1fr));
    gap: 1.0625rem;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.3281rem 0.7969rem;
    background: #f8f9fa;
    border-radius: 0.7969rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.quick-card:hover {
    background: #007aff;
    color: white;
    transform: translateY(-5px);
}

.quick-icon {
    width: 3.1875rem;
    height: 3.1875rem;
    border-radius: 0.7969rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.53rem;
    margin-bottom: 0.7969rem;
}

.quick-icon.subject {
    background: #34c759;
    color: white;
}

.quick-icon.assignment {
    background: #ff9500;
    color: white;
}

.quick-icon.schedule {
    background: #5856d6;
    color: white;
}

.quick-icon.grades {
    background: #ff2d55;
    color: white;
}

.quick-card:hover .quick-icon {
    background: white;
}

.quick-card:hover .quick-icon.subject {
    color: #34c759;
}

.quick-card:hover .quick-icon.assignment {
    color: #ff9500;
}

.quick-card:hover .quick-icon.schedule {
    color: #5856d6;
}

.quick-card:hover .quick-icon.grades {
    color: #ff2d55;
}

/* Responsive */
@media (max-width: 768px) {
    .user-profile-card {
        flex-direction: column;
    }

    .profile-left {
        flex-direction: column;
        text-align: center;
    }

    .profile-image-container {
        margin: 0 auto;
    }

    .profile-stats {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .tab-header {
        flex-direction: column;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#welcomeText {
    color: #e9f4ff;
    text-shadow:
        0 0 4px #00d0ff,
        0 0 8px #00aaff,
        0 0 12px #00a6ff;
}


.task-shortcut-box {
    position: relative;
    /* Wajib agar badge bisa menempel di pojok */
}

.task-badge {
    position: absolute;
    top: -0.2656rem;
    right: -0.2656rem;
    background: #ff4757;
    /* Merah */
    color: white;
    font-size: 0.5844rem;
    font-weight: 800;
    width: 1.1687rem;
    height: 1.1687rem;
    border-radius: 50%;
    display: none;
    /* Sembunyi jika 0 */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
    z-index: 5;
    animation: popBadge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBadge {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* --- 2. FILTER SYSTEM (SLIDING INDICATOR) --- */
.filter-group-wrapper {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9562rem;
    display: flex;
    position: relative;
    padding: 0.3187rem;
    width: 100%;
    margin-bottom: 1.5938rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.filter-slider-bg {
    position: absolute;
    top: 0.3187rem;
    left: 0.3187rem;
    width: calc(50% - 0.3187rem);
    height: calc(100% - 0.6375rem);
    background: var(--accent, #00eaff);
    border-radius: 0.7438rem;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.5);
    z-index: 1;
}

.filter-group-wrapper.all-active .filter-slider-bg {
    transform: translateX(100%);
}

.filter-btn-new {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.7969rem 0;
    font-weight: 800;
    font-size: 0.6906rem;
    text-transform: uppercase;
    letter-spacing: 0.0797rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5312rem;
}

.filter-btn-new.active {
    color: #000000;
}

/* --- MAPEL FILTER CHIPS (tugas) --- */
.mapel-chip-tugas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mapel-chip-tugas:hover {
    border-color: rgba(0, 234, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
}

.mapel-chip-tugas.active {
    background: rgba(0, 234, 255, 0.12);
    border-color: rgba(0, 234, 255, 0.5);
    color: var(--accent, #00eaff);
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.2);
}



/* --- 3. TASK CARD STATUS (VIBRANT GRADIENT) --- */

/* 🟢 HIJAU (DONE) - Lebih Terang & Solid */
.task-green-done {
    background: linear-gradient(145deg, rgba(46, 213, 115, 0.8), rgba(10, 20, 15, 0.5));
    border: 2px solid #2ed573;
    box-shadow: 0 5px 15px rgba(46, 213, 115, 0.2);
    opacity: 1;
    /* Hapus opacity 0.75 biar gak pudar */
}

/* 🟡 KUNING (PENDING) - Kuning Emas Nyala */
.task-yellow-pending {
    background: linear-gradient(145deg, rgba(255, 211, 42, 0.6), rgba(20, 20, 10, 0.5));
    border: 2px solid #ffd32a;
    box-shadow: 0 5px 15px rgba(255, 211, 42, 0.15);
}

/* 🔴 MERAH (DEADLINE) - Merah Gahar */
.task-red-deadline {
    background: linear-gradient(145deg, rgba(255, 71, 87, 0.8), rgba(20, 10, 10, 0.5));
    border: 2px solid #ff4757;
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.3);
}

/* Update Warna Teks di dalam Kartu biar makin kontras */
.task-green-done h3 {
    color: #2ed573;
}

.task-yellow-pending h3 {
    color: #ffd32a;
}

.task-red-deadline h3 {
    color: #ff4757;
}

/* Badge Deadline di dalam kartu */
.task-red-deadline::after {
    content: "DEADLINE";
    position: absolute;
    top: 1.0625rem;
    right: 1.0625rem;
    font-size: 0.4781rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(255, 0, 0);
    border: 1px solid #ff4757;
    padding: 0.2125rem 0.5312rem;
    border-radius: 0.3187rem;
    letter-spacing: 0.0531rem;
    animation: pulseRed 2s infinite;
}

.task-yellow-pending::after {
    content: "TUGAS";
    position: absolute;
    top: 1.0625rem;
    right: 1.0625rem;
    font-size: 0.4781rem;
    font-weight: 900;
    color: #000000;
    background: rgb(255, 255, 0);
    border: 1px solid #f0ff47;
    padding: 0.2125rem 0.5312rem;
    border-radius: 0.3187rem;
    letter-spacing: 0.0531rem;
    animation: pulseRed 2s infinite;
}

.task-green-done::after {
    content: "SELESAI";
    position: absolute;
    top: 1.0625rem;
    right: 1.0625rem;
    font-size: 0.4781rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(0, 255, 0);
    border: 1px solid #00ff40;
    padding: 0.2125rem 0.5312rem;
    border-radius: 0.3187rem;
    letter-spacing: 0.0531rem;
    animation: pulseRed 2s infinite;
}

.tugasket1 {
    max-width: fit-content;
    margin-top: 0.5312rem;
    margin-bottom: 0.2656rem;
    font-size: 0.4781rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(255, 0, 0);
    border: 1px solid #ff4757;
    padding: 0.2125rem 0.5312rem;
    border-radius: 0.3187rem;
    letter-spacing: 0.0531rem;
    animation: pulseRed 2s infinite;
}

.tugasket2 {
    max-width: fit-content;
    margin-top: 0.5312rem;
    margin-bottom: 0.2656rem;
    top: 1.0625rem;
    right: 1.0625rem;
    font-size: 0.4781rem;
    font-weight: 900;
    color: #000000;
    background: rgb(255, 255, 0);
    border: 1px solid #f0ff47;
    padding: 0.2125rem 0.5312rem;
    border-radius: 0.3187rem;
    letter-spacing: 0.0531rem;
    animation: pulseRed 2s infinite;
}

.tugasket3 {
    max-width: fit-content;
    margin-top: 0.5312rem;
    margin-bottom: 0.2656rem;
    top: 1.0625rem;
    right: 1.0625rem;
    font-size: 0.4781rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(0, 255, 0);
    border: 1px solid #00ff40;
    padding: 0.2125rem 0.5312rem;
    border-radius: 0.3187rem;
    letter-spacing: 0.0531rem;
    animation: pulseRed 2s infinite;
}

/* --- 4. MISC & ANIMATIONS --- */
.empty-state {
    text-align: center;
    padding: 5.3125rem 1.0625rem;
    opacity: 0.4;
}

.empty-state i {
    font-size: 3.7188rem;
    margin-bottom: 1.3281rem;
    display: block;
    background: linear-gradient(to bottom, #fff, transparent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulseRed {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
        text-shadow: 0 0 10px #ff4757;
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 1024px) {

    .mobile-toggle-btn,
    .hide-desk {
        display: none;
    }

    .detail-info-section {
        display: block;
        position: relative;
        width: 90%;
        height: 100%;
        background: rgba(20, 20, 20, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Layout Flex: Gambar Kiri, Keterangan Kanan */
    .glass-detail-box {
        flex-direction: row;
        max-width: 90%;
        height: 90%;
        overflow: hidden;
    }

    .detail-media-section {
        flex: 2;
        height: 100%;
    }

    .slider-wrapper img {
        object-fit: contain;
    }
}

.glow {
    color: #ffffff;
    font-weight: bold;
    text-shadow:
        0 0 5px #00eaff,
        0 0 10px #00eaff,
        0 0 20px #00cfff,
        0 0 40px #009dff;
}

/* Styling Editor Tool */
.btn-tool {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: white;
    padding: 0.2656rem 0.6375rem;
    border-radius: 0.3187rem;
    cursor: pointer;
    font-size: 0.6375rem;
    transition: 0.2s;
}

.btn-tool:hover {
    background: #00eaff;
    color: black;
}

/* Selector ini bakal nangkep format font baik di Modal maupun di Card */
.editable font[size="5"],
#addIsi font[size="5"] {
    font-size: 1.275rem;
    font-weight: bold;
}

.editable font[size="3"],
#addIsi font[size="3"] {
    font-size: 1.0625rem;
}

.editable font[size="2"],
#addIsi font[size="2"] {
    font-size: 0.85rem;
}

/* Styling khusus div content di card */
.course-card div[data-field="content"] {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow-x: auto;
    line-height: 1.5;
    color: #ddd;
}

/* Pembatas Kelas di Cari Akun */
.class-divider {
    display: flex;
    align-items: center;
    gap: 0.7969rem;
    margin: 1.5938rem 0 0.7969rem 0.2656rem;
    color: #00eaff;
    font-size: 0.5844rem;
    font-weight: 800;
    letter-spacing: 0.1062rem;
}

.class-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 234, 255, 0.3), transparent);
}

.class-divider span {
    background: rgba(0, 234, 255, 0.1);
    padding: 0.2125rem 0.6375rem;
    border-radius: 0.3187rem;
    border: 1px solid rgba(0, 234, 255, 0.2);
}

/* --- OPTIMASI SHEET DESKRIPSI MOBILE --- */
@media (max-width: 768px) {

    /* Hilangkan bar swipe lama */
    .detail-info-section::before {
        display: none;
    }

    /* Header Baru di atas Sheet */
    .sheet-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5312rem 0.7969rem;
        background: rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sheet-btn-left,
    .sheet-btn-right {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 1.8594rem;
        height: 1.8594rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
    }

    .sheet-drag-indicator {
        width: 2.125rem;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 0.5312rem;
    }

    /* Optimasi Lag: Pake transform & durasi pas */
    .detail-info-section {
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        will-change: transform;
        /* Hint buat browser biar enteng */
    }
}

@media (min-width: 769px) {

    /* Header Baru di atas Sheet */
    .sheet-header-mobile {
        display: none;
    }

    .sheet-btn-left,
    .sheet-btn-right {
        display: none;
    }

    .sheet-drag-indicator {
        display: none;
    }
}

/* Style pas kartu lagi di-drag — cuma tampilin judul */
.course-card.dragging {
    border: 2px dashed #00eaff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    z-index: 100;
    padding: 10px 16px !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden;
    cursor: grabbing;
}
.course-card.dragging > *:not(.reorder-handle):not([data-field="big_title"]):not(.card-number) {
    display: none !important;
}
.course-card.dragging > [data-field="big_title"] {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    border: none;
}

.course-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 0.5312rem;
}

.card-edit-actions {
    display: flex;
    gap: 0.2656rem;
}

.action-btn {
    width: 3.1875rem;
    height: 3.1875rem;
    border-radius: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 1.1687rem;
}

.action-btn.edit:hover {
    background: #ff9800;
    border-color: #ff9800;
}

.action-btn.save {
    background: #2ed573;
    border-color: #2ed573;
}

.action-btn.cancel {
    background: #ff4757;
    border-color: #ff4757;
}

/* Warna Kartu Custom */
.color-red {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.25), rgba(15, 10, 10, 0.95)) !important;
    border: 1.5px solid rgba(255, 71, 87, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(255, 71, 87, 0.1);
}

.color-orange {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.25), rgba(15, 12, 10, 0.95)) !important;
    border: 1.5px solid rgba(255, 159, 67, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(255, 159, 67, 0.1);
}

.color-yellow {
    background: linear-gradient(135deg, rgba(255, 211, 42, 0.22), rgba(15, 15, 10, 0.95)) !important;
    border: 1.5px solid rgba(255, 211, 42, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(255, 211, 42, 0.05);
}

.color-green {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.25), rgba(10, 15, 10, 0.95)) !important;
    border: 1.5px solid rgba(46, 213, 115, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(46, 213, 115, 0.1);
}

.color-blue {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(10, 15, 20, 0.95)) !important;
    border: 1.5px solid rgba(0, 200, 255, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(0, 200, 255, 0.1);
}

.color-purple {
    background: linear-gradient(135deg, rgba(165, 94, 234, 0.25), rgba(12, 10, 15, 0.95)) !important;
    border: 1.5px solid rgba(165, 94, 234, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(165, 94, 234, 0.1);
}

.color-pink {
    background: linear-gradient(135deg, rgba(255, 159, 243, 0.25), rgba(15, 10, 15, 0.95)) !important;
    border: 1.5px solid rgba(255, 159, 243, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(255, 159, 243, 0.1);
}

.color-brown {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.35), rgba(15, 12, 10, 0.95)) !important;
    border: 1.5px solid rgba(139, 69, 19, 0.8) !important;
    box-shadow: inset 0 0 15px rgba(139, 69, 19, 0.1);
}

.color-opt.active {
    outline: 3px solid #00eaff;
    transform: scale(1.1);
}

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

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: rgba(255, 255, 255, 0.1);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0px,
            rgba(255, 255, 255, 0.2) 40px,
            rgba(255, 255, 255, 0.1) 80px);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 0.425rem;
}

.sk-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.0625rem;
    border-radius: 0.7969rem;
    margin-bottom: 0.7969rem;
}

.sk-title {
    height: 1.1687rem;
    width: 60%;
    margin-bottom: 0.7969rem;
}

.sk-text {
    height: 0.7438rem;
    width: 100%;
    margin-bottom: 0.425rem;
}

.sk-text.short {
    width: 40%;
}

.sk-media {
    height: 6.375rem;
    width: 100%;
    margin-bottom: 0.7969rem;
    border-radius: 0.6375rem;
}

.lkpd-table-task {
    border-radius: 0.425rem;
    overflow: hidden;
    margin-bottom: 0.5312rem;
}

.lkpd-table-task td[contenteditable="false"] {
    color: #888;
    font-weight: bold;
}

.lkpd-table-task td:focus {
    background: rgba(0, 234, 255, 0.05);
    outline: none;
}

/* ── TOAST ──────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: min(340px, 90vw);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-hide {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast-success {
    background: rgba(0, 180, 80, 0.92);
}

.toast-info {
    background: rgba(200, 140, 0, 0.92);
}

.toast-error {
    background: rgba(210, 40, 40, 0.92);
}

.toast i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* === Empty State === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    margin-top: 1.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    animation: emptyStateFadeIn 0.5s ease-out;
}

.empty-state i {
    font-size: 4rem;
    color: #ff6200;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 15px rgba(255, 98, 0, 0.4));
    animation: emptyStateFloat 3s ease-in-out infinite;
}

@keyframes emptyStateFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Custom Context Menu === */
.context-menu {
    position: fixed;
    z-index: 10000;
    width: 12rem;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.8rem;
    padding: 0.4rem;
    box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.7);
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
    will-change: transform, opacity;
}

.context-menu.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 0.65rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s ease;
    position: relative;
}

.context-menu li i {
    width: 1.1rem;
    font-size: 0.95rem;
    text-align: center;
}

.context-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent, #00eaff);
}

/* Hover Bridge: Mencegah submenu hilang saat transisi mouse */
.context-menu li.has-submenu::after {
    content: '';
    position: absolute;
    right: -0.65rem;
    top: 0;
    width: 0.65rem;
    height: 100%;
}

.context-menu li.danger:hover {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.context-menu .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.4rem 0.25rem;
}

/* Submenu Color Dots */
.context-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.5rem;
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.8rem;
    padding: 0.5rem;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .context-menu {
        width: 13.5rem; /* Sedikit lebih lebar di mobile */
    }
    .context-menu li {
        padding: 0.9rem 1.1rem; /* Touch target lebih besar */
        font-size: 1rem;
    }
    .context-submenu {
        left: 0;
        top: 100%;
        margin-left: 0;
        margin-top: 0.3rem;
        width: 100%;
        grid-template-columns: repeat(5, 1fr); /* Baris lebih panjang di mobile */
    }
    .ctx-color-dot {
        width: 1.8rem;
        height: 1.8rem;
    }
}

.context-menu li:hover .context-submenu,
.context-menu li.open .context-submenu {
    display: grid;
    animation: submenuFadeIn 0.2s ease-out;
}

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

.ctx-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ctx-color-dot:hover {
    transform: scale(1.2);
    border-color: white;
}

.ctx-color-default { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); }
.ctx-color-red { background: #ff4757; }
.ctx-color-orange { background: #ff9f43; }
.ctx-color-yellow { background: #ffd32a; }
.ctx-color-green { background: #2ed573; }
.ctx-color-blue { background: #00c8ff; }
.ctx-color-purple { background: #a55eea; }
.ctx-color-pink { background: #ff9ff3; }
.ctx-color-brown { background: #8b4513; }

/* Daily Card Context Items */
.daily-days-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 140px;
}

.ctx-day-item {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ctx-day-item:hover {
    background: #ff6200;
    color: white;
    border-color: #ff6200;
}

@media (max-width: 768px) {
    .daily-days-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100%;
    }
}

.empty-state p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
    max-width: 300px;
    line-height: 1.5;
}

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

/* === Success Empty State (Green) === */
.empty-state.success i {
    color: #0be881;
    filter: drop-shadow(0 0 15px rgba(11, 232, 129, 0.4));
}

.empty-state.success {
    border-color: rgba(11, 232, 129, 0.2);
}
/* === DASHBOARD BENTO GRID === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 12px;
    margin-bottom: 2rem;
}

.dash-card {
    background: rgba(15, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.dash-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Bento Spans */
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }

/* Dashboard Headers */
.dash-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-card-title i { font-size: 0.8rem; }

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .span-3, .span-4 { grid-column: span 2; }
}

/* Specific Widgets */
.dash-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent, #00eaff);
}

.dash-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.75rem;
    color: #777;
    margin-top: 4px;
}

/* Progress Bar Mini */
.dash-progress-wrap {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.dash-progress-fill {
    height: 100%;
    background: var(--accent, #00eaff);
    transition: width 0.5s ease;
}

/* Mini Schedule */
.mini-sched-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-sched-item:last-child { border: none; }

.mini-sched-time {
    font-size: 0.7rem;
    color: #555;
    font-family: monospace;
    width: 80px;
}

.mini-sched-name {
    font-size: 0.82rem;
    color: #ccc;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SIMULASI SHORTCUT GLOW */
.sim-shortcut-glow {
    background: linear-gradient(45deg, #00eaff, #0084ff) !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.4) !important;
    animation: sim-pulse 2s infinite;
    cursor: pointer;
}
.sim-shortcut-glow i, .sim-shortcut-glow span {
    color: #000 !important;
    font-weight: 900 !important;
}
@keyframes sim-pulse {
    0% { box-shadow: 0 0 10px rgba(0, 234, 255, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(0, 234, 255, 0.7); transform: scale(1.05); }
    100% { box-shadow: 0 0 10px rgba(0, 234, 255, 0.4); transform: scale(1); }
}

.format-large { font-size: 1.4rem; font-weight: 600; display: block; }
.format-medium { font-size: 1.15rem; font-weight: 500; display: block; }
.format-small { font-size: 0.9rem; display: block; }

.fmt-btn {
    background: none; border: none; color: #ccc;
    cursor: pointer; padding: 2px 6px; border-radius: 4px;
    font-size: 12px; line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}
.fmt-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.inline-link {
    color: #00c8ff;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}
.inline-link:hover {
    color: #5dd9ff;
}

.tujuan-marker {
    color: #666;
    font-size: 0.85em;
}

