/* === BASE FONT SIZE: 1rem = 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.5rem 2.5rem, 2.5rem 2.5rem, cover;
    background-attachment: fixed;
}

header {
    background-color: transparent;
    color: #fff;
    padding: 0.9375rem;
    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.25rem;
}

.hamburger {
    width: 1.875rem;
    height: 1.375rem;
    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.5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.3125rem;
}

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

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

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

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

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

.profile-dropdown {
    position: absolute;
    right: 0.9375rem;
    top: 3.625rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.625rem 0;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 10.625rem;
    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.625rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

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

.sidebar {
    position: fixed;
    top: 0;
    left: -17.5rem;
    width: 17.5rem;
    height: 100vh;
    background: rgba(10, 15, 25, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0.9375rem 77vh 0.9375rem;
    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.625rem;
}

.sidebar.open {
    left: 0;
}

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

.sidebar li {
    position: relative;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.sidebar a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.875rem 0.9375rem;
    color: #d3d3d3;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: 0.3s;
    background: transparent;
}

.sidebar a i {
    width: 1.875rem;
    font-size: 1.125rem;
    text-align: center;
    margin-right: 0.625rem;
    transition: 0.3s;
}

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

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

.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-badge {
    position: absolute;
    top: 50%;
    right: 0.9375rem;
    transform: translateY(-50%);
    font-size: 0.5625rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    letter-spacing: 0.0312rem;
    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: 16.875rem;
        background: transparent;
        backdrop-filter: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 5rem;
    }

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

    .closebtn {
        display: none;
    }
}

.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.25rem;
    max-width: 56.25rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3.75rem;
}

.course-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1.25rem 0;
    transition: all .3s ease;
    position: relative;
    /* 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.3125rem;
    line-height: 1.2;
    font-size: 1.5rem;
}

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

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

.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.9375rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.card-photo-placeholder {
    width: 100%;
    padding: 2.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    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.625rem;
    right: 0.625rem;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.3125rem;
    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.625rem 1.25rem;
    border-radius: 0.3125rem;
    cursor: pointer;
}

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

.btn-danger {
    background: #f44336;
}

.delete-btn {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #d9534f;
    border: none;
    color: white;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
}

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

i {
    margin-right: 0.3125rem;
}

.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: 90%;
    max-width: 23.75rem;
    border-radius: 1.25rem;
    padding: 1.5625rem;
    border: 1px solid #1e293b;
    text-align: center;
    color: white;
    font-family: sans-serif;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

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

.popup-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

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

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

.stats-grid {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5625rem;
}

.stat-card {
    background-color: #151e32;
    flex: 1;
    padding: 0.9375rem 0.625rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

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

.list-title {
    font-size: 0.8125rem;
    color: #cbd5e1;
    margin-bottom: 0.625rem;
    margin-left: 0.3125rem;
}

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

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

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

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

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

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

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

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

.btn-reset-text {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.6875rem;
    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.875rem;
        max-width: 100%;
        text-align: left;
        margin-left: 16.875rem;
        transition: margin-left 0.3s ease;
        overflow: visible;
    }

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

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

    .sidebar {
        left: -0.625rem;
    }

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

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

    footer {
        margin-top: 18.75rem;
    }

    .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: 31.25rem;
    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.5rem;
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    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.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

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

.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.875rem;
    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: 6.25rem;
}

.drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.875rem 1.25rem;
    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: 2rem;
    color: #00eaff;
    margin-bottom: 0.625rem;
}

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

.drop-text b {
    color: white;
}

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

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

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

.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: 1.125rem;
}

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

.action-buttons {
    display: flex;
    gap: 0.9375rem;
    margin-top: 0.625rem;
}

.btn-glass-cancel {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    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.75rem;
    border-radius: 0.75rem;
    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.625rem;
    font-size: 1rem;
    opacity: 0.8;
    position: absolute;
    right: 20%;
}

.photo-grid {
    display: grid;
    gap: 0.125rem;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.9375rem;
    background: #000;
}

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

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

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

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

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

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

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

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

.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.5rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.875rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 5001;
}

.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    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: 68.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.close-detail-btn {
    position: absolute;
    top: 0.9375rem;
    right: 1.25rem;
    font-size: 2.5rem;
    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: 37.5rem;
    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.25rem;
        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.5625rem;
    }

    /* === 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.625rem;
        right: 0.9375rem;
        background: transparent;
        font-size: 1.75rem;
    }
}

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

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

.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.875rem;
    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.9375rem;
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.25rem;
    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.5625rem;
}

.next-btn {
    right: 1.5625rem;
}

.photo-counter-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.3125rem 0.9375rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    color: white;
    letter-spacing: 0.0625rem;
    background: #0056cc;
}

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

.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);
}

.more-overlay {
    position: absolute;
    inset: 0;
    /* Full cover container */
    background: rgba(0, 0, 0, 0.5);
    /* Hitam transparan 50% */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Text Style */
    color: white;
    font-size: 2rem;
    /* Ukuran gede kayak WA */
    font-weight: normal;
    /* WA biasanya ga bold banget */
    letter-spacing: 0.0625rem;
    backdrop-filter: blur(2px);
    /* Efek kaca dikit */
}

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

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

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

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

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

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

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

.mobile-toggle-btn {
    position: absolute;
    bottom: 0.9375rem;
    left: 50%;
    transform: translateX(-50%);
    background: #000000ad;
    color: rgb(255, 255, 255);
    font-weight: bold;
    padding: 0.75rem 1.5625rem;
    border-radius: 1.875rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
    z-index: 30;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    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.25rem 4.375rem 1.25rem 1.5625rem;
        z-index: 15;
        pointer-events: none;
    }

    .mobile-header-overlay h2 {
        margin: 0;
        font-size: 1.375rem;
        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.3125rem 0 0 0;
        font-size: 0.875rem;
        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(20, 20, 20, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-radius: 1.5rem 1.5rem 0 0;
        z-index: 1000;
        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.5625rem;
    }

    .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.625rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2.5rem;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 0.625rem;
    }

    .close-detail-btn {
        top: 1.25rem;
        right: 1.25rem;
        left: auto;
        z-index: 20;
        background: rgba(0, 0, 0, 0.5);
        width: 2.5rem;
        height: 2.5rem;
        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.9375rem;
    /* Pindah ke bawah */
    right: 0.9375rem;
    /* Pindah ke kanan */
    top: auto;
    /* Reset top */
    z-index: 10;

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

    /* Default: Abu-abu transparan */
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.25rem;
    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.6);
    z-index: 10000;
    /* Paling Depan */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.uni-box {
    background: linear-gradient(135deg,
            rgba(0, 180, 220, 0.28),
            /* kiri atas */
            rgba(10, 20, 35, 0.85)
            /* kanan bawah */
        );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    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: 1.125rem;
    padding: 1.875rem;
    text-align: center;
    max-width: 20rem;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.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: scale(1);
}

.uni-icon {
    font-size: 3.125rem;
    margin-bottom: 0.9375rem;
}

.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.5625rem;
    font-size: 1rem;
    line-height: 1.5;
}

.uni-btn {
    background: #00eaff;
    color: black;
    border: none;
    padding: 0.625rem 1.875rem;
    border-radius: 3.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.875rem;
    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-reverse;
    align-items: center;
    gap: 0.9375rem;
}

.fab-main {
    width: 3.4375rem;
    height: 3.4375rem;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.875rem;
    padding: 0.625rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fab-main:active {
    transform: scale(0.9);
}

.fab-main.state-edit {
    background: #ff9800;
}

.fab-main.state-done {
    background: #4CAF50;
    transform: rotate(360deg);
}

.fab-add {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    background: #00eaff;
    border: none;
    font-size: 1.375rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 234, 255, 0.3);
    opacity: 0;
    transform: translateY(40px) scale(0.5);
    position: absolute;
    bottom: 0.625rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}

.fab-add:hover {
    transform: translateY(-80px) scale(1.1);
}

/* Saat Edit Mode Aktif -> Tombol Add Muncul ke Atas */
.admin-fab-container.active .fab-add {
    opacity: 1;
    transform: translateY(-75px) scale(1);
    /* Geser ke atas */
    pointer-events: auto;
}

/* --- 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.9375rem;
    justify-content: center;
    margin-top: 1.5625rem;
    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.625rem 1.5625rem;
    border-radius: 3.125rem;
    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.625rem 1.5625rem;
    border-radius: 3.125rem;
    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);
}

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

.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;
}

/* Container Utama biar tengah di Desktop */
.ig-container {
    max-width: 58.4375rem;
    /* 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.25rem 1.25rem 0 1.25rem;
    gap: 1.25rem;
}

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

.ig-pp-ring {
    width: 5rem;
    /* Ukuran Mobile */
    height: 5rem;
    border-radius: 50%;
    padding: 0.125rem;
    /* 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: 1.125rem;
    font-weight: 700;
    color: #fff;
}

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

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

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

.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.5rem;
    padding: 0 1.25rem 0.9375rem 1.25rem;
}

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

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

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

/* HIGHLIGHTS */
.ig-highlights {
    display: flex;
    gap: 0.9375rem;
    padding: 0 1.25rem 1.25rem 1.25rem;
    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.3125rem;
    min-width: 3.75rem;
}

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

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

/* 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.625rem 0;
    color: #8e8e8e;
    font-size: 1.5rem;
    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.125rem;
    /* 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.625rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Desktop Adjustments --- */
@media (min-width: 768px) {
    .ig-header {
        padding: 2.5rem 3.75rem;
        gap: 5rem;
        margin-bottom: 1.25rem;
    }

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

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

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

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

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

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

/* --- DAILY CARD V10 (FINAL REQUEST) --- */
.daily-card-final {
    margin-top: 1.5625rem;
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5625rem;
    position: relative;
    box-shadow: 0 10px 50px rgb(255, 130, 52);
    color: white;
}

/* HEADER AREA */
.final-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5625rem;
}

.final-badge {
    background: #00eaff;
    color: black;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.25rem 0.625rem;
    border-radius: 1.25rem;
    text-transform: uppercase;
}

.final-day {
    font-size: 2.375rem;
    font-weight: 800;
    margin: 0.3125rem 0 0 0;
    line-height: 1;
    color: white;
    text-transform: uppercase;
}

.final-date {
    color: #b5b5b5;
    font-size: 1rem;
    font-weight: 500;
}

.task-shortcut-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 10px 50px #0056cc;
}

.task-shortcut-box i {
    font-size: 1.5rem;
    margin-bottom: 0.3125rem;
    color: #00eaff;
}

.task-shortcut-box span {
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
}

.task-shortcut-box:hover {
    background: #00eaff;
    border-color: #00eaff;
    transform: translateY(-3px);
    box-shadow: 0px 10px 50px #0056cc;
}

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

.top-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.625rem;
}

.info-card-dynamic {
    padding: 0.9375rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 0.125rem;
}

.card-val {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-val.small {
    font-size: 0.6875rem;
    font-weight: 500;
}

/* TIMELINE PELAJARAN */
.final-section {
    margin-top: 0.625rem;
}

.final-title {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.final-spacer {
    height: 1.5625rem;
}

/* Item Timeline - ANIMASI FIX */
.tl-item-final {
    display: flex;
    gap: 0.9375rem;
    min-height: 2.5rem;
    position: relative;
    margin-left: 0.625rem;
    /* Opacity diatur animasi nanti */
}

.tl-time-final {
    font-family: monospace;
    font-size: 0.875rem;
    color: #00eaff;
    text-align: right;
    padding-top: 0.375rem;
    flex-shrink: 0;
    text-align: left;
}

.tl-marker-final {
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.tl-marker-final::after {
    content: '';
    position: absolute;
    top: 0.375rem;
    left: -4px;
    width: 0.625rem;
    height: 0.625rem;
    background: #111;
    border: 2px solid #00eaff;
    border-radius: 50%;
}

.tl-subject-final {
    font-size: 1.0625rem;
    color: #ddd;
    padding-bottom: 1.25rem;
    font-weight: 500;
}

/* PIKET NAMES (BIGGER) */
.picket-grid-big {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.picket-pill {
    position: relative;
    /* WAJIB TAMBAH INI */
    flex: 1 1 30%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 0.625rem;
    border-radius: 0.75rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s;
}

.picket-pill:hover {
    background: #00eaff;
    color: black;
    border-color: #00eaff;
    transform: scale(1.05);
}

.final-watermark {
    text-align: right;
    margin-top: 1.875rem;
    opacity: 0.3;
    font-size: 0.625rem;
    letter-spacing: 0.125rem;
}

/* --- ANIMATION ENGINE (SAFE & SMOOTH) --- */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

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

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

@keyframes fadeInSimple {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

/* RESPONSIVE: DI HP JADI TUMPUK */
@media (max-width: 600px) {
    .top-cards-grid {
        grid-template-columns: 1fr;
        /* Tumpuk ke bawah */
    }

    .info-card-dynamic {
        flex-direction: row;
        align-items: center;
        gap: 0.9375rem;
        min-height: auto;
    }

    .card-icon {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
}

/* --- FORM STYLING --- */
.dc-label-input {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin: 0.625rem 0 0.3125rem 0;
}

/* --- TOGGLE SWITCH (ON/OFF) --- */
.dc-toggle-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.9375rem;
    border-radius: 0.75rem;
    margin-top: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch {
    position: relative;
    display: inline-block;
    width: 3.125rem;
    height: 1.625rem;
}

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

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

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

input:checked+.slider {
    background-color: #00eaff;
}

input:focus+.slider {
    box-shadow: 0 0 1px #00eaff;
}

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

/* --- V12: INLINE EDIT & FAB --- */

/* FAB Container (Pojok Kanan Bawah) */
.daily-fab-container {
    position: fixed;
    bottom: 1.25rem;
    right: 5.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    z-index: 1;
}

/* Tombol Edit Bulat (Floating Action Button) */
.fab-daily {
    width: 3.4375rem;
    height: 3.4375rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0;
}

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

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

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

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

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

/* Mode Edit Aktif: Teks jadi ada kotaknya */
.editable-active {
    border: 1px dashed rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.125rem 0.3125rem;
    border-radius: 4px;
    min-width: 1.25rem;
    cursor: text;
    transition: 0.2s;
}

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

/* Tombol Add (+) buat Timeline/Piket */
.btn-add-inline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: #aaa;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.625rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.2s;
}

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

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

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

/* Placeholder untuk contenteditable */
.editable-text:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    display: block;
}

/* Pastikan kolom tetep punya lebar minimal biar bisa diklik pas kosong */
.tl-time-final:empty,
.tl-subject-final:empty,
.picket-pill span:empty {
    min-width: 3.125rem;
    display: inline-block;
}

/* Area Toggle Config (Muncul pas edit doang) */
.config-panel {
    display: none;
    /* Default hidden */
    margin-top: 1.25rem;
    padding: 0.9375rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Badge Custom Mode */
.bg-custom {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: pulseBadge 2s infinite;
}

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

    50% {
        transform: scale(1.05);
    }

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

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.25rem;
    padding: 1.875rem;
    margin-bottom: 1.875rem;
    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.875rem;
}

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

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

.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.625rem;
    right: 0.625rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #4cd964;
    border-radius: 50%;
    border: 3px solid #667eea;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.3125rem 0;
}

.profile-username {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 0.9375rem 0;
}

.profile-bio {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 31.25rem;
    margin: 0 0 1.25rem 0;
}

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

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

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.9375rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

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

.stat-icon {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    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.8rem;
    font-weight: 700;
    line-height: 1;
}

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

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

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

.tab-btn {
    flex: 1;
    padding: 1.25rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 1rem;
    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.8rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.625rem;
    min-width: 1.5625rem;
    text-align: center;
}

.tab-content {
    padding: 1.875rem;
}

.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.3125rem;
}

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

.task-item,
.bookmark-item {
    background: #f8f9fa;
    border-radius: 0.9375rem;
    padding: 1.25rem;
    margin-bottom: 0.9375rem;
    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.625rem;
}

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

.task-meta,
.bookmark-meta {
    display: flex;
    gap: 0.9375rem;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.3125rem;
}

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

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

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

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

.empty-state p {
    max-width: 25rem;
    margin: 0 auto 1.25rem;
}

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

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

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

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

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

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

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

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

.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.3125rem;
    right: -0.3125rem;
    background: #ff4757;
    /* Merah */
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
    width: 1.375rem;
    height: 1.375rem;
    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.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.125rem;
    display: flex;
    position: relative;
    padding: 0.375rem;
    width: 100%;
    margin-bottom: 1.875rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.filter-slider-bg {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    width: calc(50% - 0.375rem);
    height: calc(100% - 0.75rem);
    background: #00eaff;
    /* Neon Blue */
    border-radius: 0.875rem;
    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.pending-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.9375rem 0;
    font-weight: 800;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.0938rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

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

/* --- 3. TASK CARD STATUS (BACKGROUND MODE) --- */

/* --- 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.25rem;
    right: 1.25rem;
    font-size: 0.5625rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(255, 0, 0);
    border: 1px solid #ff4757;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    letter-spacing: 0.0625rem;
    animation: pulseRed 2s infinite;
}

.task-yellow-pending::after {
    content: "TUGAS";
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.5625rem;
    font-weight: 900;
    color: #000000;
    background: rgb(255, 255, 0);
    border: 1px solid #f0ff47;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    letter-spacing: 0.0625rem;
    animation: pulseRed 2s infinite;
}

.task-green-done::after {
    content: "SELESAI";
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.5625rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(0, 255, 0);
    border: 1px solid #00ff40;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    letter-spacing: 0.0625rem;
    animation: pulseRed 2s infinite;
}

.tugasket1 {
    max-width: fit-content;
    margin-top: 0.625rem;
    margin-bottom: 0.3125rem;
    font-size: 0.5625rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(255, 0, 0);
    border: 1px solid #ff4757;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    letter-spacing: 0.0625rem;
    animation: pulseRed 2s infinite;
}

.tugasket2 {
    max-width: fit-content;
    margin-top: 0.625rem;
    margin-bottom: 0.3125rem;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.5625rem;
    font-weight: 900;
    color: #000000;
    background: rgb(255, 255, 0);
    border: 1px solid #f0ff47;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    letter-spacing: 0.0625rem;
    animation: pulseRed 2s infinite;
}

.tugasket3 {
    max-width: fit-content;
    margin-top: 0.625rem;
    margin-bottom: 0.3125rem;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.5625rem;
    font-weight: 900;
    color: #ffffff;
    background: rgb(0, 255, 0);
    border: 1px solid #00ff40;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    letter-spacing: 0.0625rem;
    animation: pulseRed 2s infinite;
}

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

.empty-state i {
    font-size: 4.375rem;
    margin-bottom: 1.5625rem;
    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.3125rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.75rem;
    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.5rem;
    font-weight: bold;
}

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

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

/* Styling khusus div content di card */
.course-card div[data-field="content"] {
    white-space: pre-wrap;
    line-height: 1.5;
    color: #ddd;
}

/* Pembatas Kelas di Cari Akun */
.class-divider {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    margin: 1.875rem 0 0.9375rem 0.3125rem;
    color: #00eaff;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.125rem;
}

.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.25rem 0.75rem;
    border-radius: 0.375rem;
    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.625rem 0.9375rem;
        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: 2.1875rem;
        height: 2.1875rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

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

    /* 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 (Google Forms Look) */
.course-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    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;
}

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

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

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

.action-btn {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1rem;
    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.375rem;
}

.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(145deg, rgba(255, 0, 0, 0.8), rgba(15, 10, 10, 0.3));
    border: 1px solid #ff4757;
}

.color-orange {
    background: linear-gradient(145deg, rgba(255, 128, 0, 0.8), rgba(15, 12, 10, 0.3)) !important;
    border: 1px solid #ff9f43 !important;
}

.color-yellow {
    background: linear-gradient(145deg, rgba(255, 255, 0, 0.8), rgba(15, 15, 10, 0.3));
    border: 1px solid #ffd32a;
}

.color-green {
    background: linear-gradient(145deg, rgba(0, 255, 128, 0.8), rgba(10, 15, 12, 0.3));
    border: 1px solid #01ff6b;
}

.color-blue {
    background: linear-gradient(145deg, rgba(0, 200, 255, 0.8), rgba(10, 15, 20, 0.3));
    border: 1px solid #00eaff;
}

.color-purple {
    background: linear-gradient(145deg, rgba(255, 0, 255, 0.8), rgba(15, 10, 20, 0.3));
    border: 1px solid #8000ff;
}

.color-pink {
    background: linear-gradient(145deg, rgba(255, 0, 128, 0.8), rgba(15, 10, 15, 0.3)) !important;
    border: 1px solid #ff5be9 !important;
}

.color-brown {
    background: linear-gradient(145deg, rgba(139, 69, 19, 0.8), rgba(15, 12, 10, 0.3)) !important;
    border: 1px solid #8b4513 !important;
}

.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.5rem;
}

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

.sk-title {
    height: 1.375rem;
    width: 60%;
    margin-bottom: 0.9375rem;
}

.sk-text {
    height: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

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

.sk-media {
    height: 7.5rem;
    width: 100%;
    margin-bottom: 0.9375rem;
    border-radius: 0.75rem;
}

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

.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;
}