/* ==========================================================================
   GLOBAL DESKTOP STYLES (Otomatis Full Screen Mengikuti Layar)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Mencegah scrollbar vertikal/horizontal luar muncul */
    
    /* 🔥 Bikin konten (auth-container) otomatis di tengah layar */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 🛠️ BACKGROUND BARU: Menggunakan Background.png */
.desktop-bg-pattern {
    background-image: url('Background.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   AUTH CARD LAYOUT (Ukuran Kotak Dikunci Aman Pas Pindah Layar)
   ========================================================================== */
.auth-container {
    background-color: #1a1a1a; 
    
    /* Kombinasi max-width & min-height agar stabil di monitor besar maupun kecil */
    width: 100%;
    max-width: 450px;
    height: 520px; 
    
    padding: 40px;
    border-radius: 44px; 
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    
    /* Menjaga konten di dalam kotak tetap rapi di tengah */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
}

/* Teks Welcome di Atas Logo */
.welcome-top-text {
    font-size: 24px;
    font-weight: 600;
    color: #8A44AF;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Wadah Logo Custom */
.auth-logo-wrapper {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-user-logo {
    width: 55px;         
    height: 55px;        
    object-fit: contain;
}

.auth-title {
    font-size: 36px;
    font-weight: 800;
    color: #8A44AF;
    margin: 0 0 5px 0;
}

.auth-subtitle {
    color: #8A44AF;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Sistem Tombol */
.auth-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-primary {
    background-color: #8A44AF;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #a259cc;
}

.btn-outline {
    background-color: transparent;
    color: #8A44AF;
    border: 2px solid #8A44AF;
    padding: 12px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: rgba(138, 68, 175, 0.1);
}

/* ==========================================================================
   FORM LOGIN (Layout Sisi Dalam Kotak Login)
   ========================================================================== */
.back-btn {
    position: absolute;
    top: 40px;
    left: 35px;
    color: #ffffff;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #8A44AF;
}

.auth-title-login {
    font-size: 34px;
    font-weight: 700;
    color: #8A44AF;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.input-group {
    position: relative;
    margin-bottom: 35px;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333333;
    color: #8A44AF;
    font-size: 16px;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #666666;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 13px;
    color: #8A44AF;
}

.btn-login-submit {
    margin-top: 15px;
    width: 100%;
}

/* ==========================================================================
   FYP DASHBOARD LAYOUT (True Black & SVG Icon Precision)
   ========================================================================== */
.fyp-desktop-body {
    background-color: #000000;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.desktop-layout-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* --- SIDEBAR KIRI STYLE (Gambar 1) --- */
.desktop-sidebar {
    width: 320px;
    height: 100%;
    background-color: #000000;
    border-right: 1px solid #121212;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-logo {
    font-size: 36px;
    font-weight: 800;
    color: #8A44AF; /* Warna ungu TokTok */
    margin-bottom: 20px;
    padding-left: 8px;
    letter-spacing: -0.5px;
}

/* Kotak Search Gray-Dark */
.sidebar-search {
    background-color: #161618;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.search-svg-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.sidebar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    width: 100%;
    font-weight: 400;
}

.sidebar-search input::placeholder {
    color: #666666;
}

/* Navigasi List Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 24px; /* Jarak antara SVG icon dan Teks */
    padding: 12px 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px; /* Ukuran teks menu utama agak besar & tegas */
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-item:hover {
    background-color: #121212;
}

.menu-item.active {
    color: #8A44AF; /* Warna aktif jika diperlukan */
}

/* Pengatur Ukuran SVG Icon Menu Kiri */
.menu-svg-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}


/* --- AREA VIDEO & TOMBOL INTERAKSI KANAN (Gambar 2) --- */
.desktop-content-area {
    flex-grow: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
}

.video-theater-container {
    display: flex;
    align-items: flex-end;
    gap: 20px; /* Jarak pas antara video dengan tombol kanan */
    height: 90vh;
}

.video-card {
    height: 100%;
    aspect-ratio: 9 / 16;
    background-color: #121212;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.video-element-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.v-username {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.v-caption {
    font-size: 14px;
    margin: 0;
    color: #ffffff;
    line-height: 1.4;
}

/* Barisan Tombol Sisi Kanan (Gambar 2) */
.video-action-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Jarak vertikal antar susunan icon */
    align-items: center;
    padding-bottom: 10px;
}

.action-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; /* Jarak text angka di bawah icon */
    cursor: pointer;
}

/* Ukuran murni file SVG tombol kanan */
.action-svg-icon {
    width: 40px; 
    height: 40px;
    object-fit: contain;
    transition: transform 0.15s ease;
}

/* Khusus icon tiga titik horizontal paling bawah */
.action-svg-icon-dots {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-top: 5px;
}

.action-node:hover .action-svg-icon {
    transform: scale(1.08);
}

/* Style teks angka status di bawah icon */
.action-node span {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}

.dots-node {
    margin-top: 10px; /* Jarak ekstra khusus tombol titik tiga */
}

/* ==========================================================================
   STYLE COMPONENT: POPUP PANEL "LAINNYA" (Anti-Goyang & Smooth)
   ========================================================================== */
.popup-lainnya-panel {
    position: fixed;
    top: 0;
    left: 85px; /* Posisi presisi tepat di sebelah kanan barisan icon utama */
    width: 320px;
    height: 100vh;
    background-color: #000000;
    border-right: 1px solid #1a1a1a;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 999;
    
    /* Efek animasi menyembul dari kiri */
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    pointer-events: none;
}

/* Class pemicu dari Javascript */
.popup-lainnya-panel.show-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Header Popup (Judul & Close) */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #8A44AF; /* Garis bawah khas ungu figma */
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #8A44AF;
    margin: 0;
}

.close-popup-btn {
    background: transparent;
    border: none;
    color: #8A44AF;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.close-popup-btn svg {
    width: 100%;
    height: 100%;
}

/* Area Scroll Konten Dalam Popup */
.popup-scroll-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar tipis untuk popup */
.popup-scroll-content::-webkit-scrollbar {
    width: 4px;
}
.popup-scroll-content::-webkit-scrollbar-thumb {
    background-color: #222222;
    border-radius: 10px;
}

/* Sub-Judul Kategori */
.popup-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #6a328a;
    margin-top: 15px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Desain Kapsul Melengkung Putih-Pink Sesuai Gambar */
.popup-capsule-item {
    background-color: #FCF5FF; /* Warna dasar kapsul putih dominan pink soft */
    border-radius: 50px;       /* Melengkung bulat sempurna (Capsule) */
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.2s;
}

.popup-capsule-item:hover {
    background-color: #F3E4FB;
    transform: scale(1.02);
}

/* Teks Dalam Kapsul */
.popup-capsule-item span {
    color: #8A44AF; /* Warna teks ungu */
    font-size: 15px;
    font-weight: 600;
}

/* Ukuran Icon SVG Dalam Kapsul */
.capsule-icon {
    width: 22px;
    height: 22px;
    color: #8A44AF; /* Warna icon ungu */
    flex-shrink: 0;
}

/* Garis Pembatas Antar Seksi */
.popup-divider {
    height: 1px;
    background: linear-gradient(to right, #8A44AF, transparent);
    margin: 20px 0;
    opacity: 0.4;
}

/* ==========================================================================
   STYLE LAYAR PREFERENSI (Gambar 1 & Gambar 2 - Responsive Full View)
   ========================================================================== */
.pref-full-screen, .success-full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    overflow-y: auto;
    
    /* Efek transisi antar layar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
}

/* Class aktif penampil layar overlay */
.pref-full-screen.active-view, .success-full-screen.active-view {
    opacity: 1;
    pointer-events: auto;
}

.pref-container-box {
    width: 100%;
    max-width: 500px; /* Ukuran pas porsi smartphone view di layar desktop */
    margin: 0 auto;
}

.pref-header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 25px;
}

.pref-back-arrow {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.pref-header-nav h1 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pref-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.pref-title-row h2 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.pref-desc {
    font-size: 14px;
    color: #aaaaaa;
    margin: 0;
    line-height: 1.4;
    max-width: 85%;
}

/* Tombol Simpan Ungu Khas Kanan Atas */
.pref-save-text-btn {
    background: transparent;
    border: none;
    color: #8A44AF;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
}

.pref-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Kapsul Pilihan Item */
.pref-toggle-capsule {
    background-color: #FCF5FF;
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.capsule-left-side {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8A44AF;
    font-size: 16px;
    font-weight: 600;
}

.pref-emoji-icon {
    font-size: 20px;
}

/* 🎛️ CUSTOM TOGGLE SWITCH STYLE SLIDER COCOK FIGMA */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #787880; /* Abu-abu sesuai mockup */
    transition: .2s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

/* Ketika di-toggle aktif (berubah warna ungu) */
input:checked + .slider-round {
    background-color: #8A44AF;
}

input:checked + .slider-round:before {
    transform: translateX(20px);
}


/* ==========================================================================
   STYLE MODAL KARTU BERHASIL (Gambar 3 - Topographic/Centered Overlay)
   ========================================================================== */
.success-full-screen {
    align-items: center; /* Membuat box card tepat berada di tengah layar monitor */
    background-color: #0d0614;
    /* Opsional: Kamu bisa ganti background-image topographic bermotif garis di bawah ini */
    background-image: radial-gradient(#1c0f2b 1px, transparent 0), radial-gradient(#1c0f2b 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.success-modal-card {
    background-color: #161618; /* Card gelap */
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.success-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #8A44AF;
    margin: 0 0 14px 0;
}

.success-divider-line {
    height: 1px;
    background-color: #222224;
    width: 100%;
    margin-bottom: 25px;
}

.success-illustration-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.megaphone-svg-vector {
    width: 160px;
    height: auto;
}

.success-main-msg {
    font-size: 18px;
    font-weight: 700;
    color: #8A44AF;
    margin: 0 0 8px 0;
}

.success-sub-msg {
    font-size: 14px;
    color: #8e8e93;
    line-height: 1.5;
    margin: 0 0 35px 0;
    padding: 0 10px;
}

/* Dua Tombol Aksi Bawah Card */
.success-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-success-primary {
    background-color: #8A44AF;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-success-primary:hover {
    background-color: #9e52c7;
}

.btn-success-outline {
    background-color: transparent;
    color: #8A44AF;
    border: 1.5px solid #32253d;
    padding: 13px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.btn-success-outline:hover {
    background-color: rgba(138, 68, 175, 0.05);
    border-color: #8A44AF;
}