/* CSS Variables for Futuristic Dark Theme V5 (Image-Based) */
:root {
 --bg-base: #030509; 
 --bg-panel: #0a0f1c;
 --neon-cyan: #00f0ff;
 --neon-violet: #8a2be2;
 --text-main: #e2e8f0;
 --text-muted: #64748b;
}

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

body {
 background-color: var(--bg-base);
 color: var(--text-main);
 font-family: 'Roboto', sans-serif;
 display: flex;
 height: 100vh;
 overflow: hidden;
}

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 600; }

/* Utilities */
.glass-panel {
 background: linear-gradient(145deg, rgba(16, 23, 42, 0.6), rgba(10, 15, 28, 0.8));
 backdrop-filter: blur(10px);
 border: 1px solid rgba(255,255,255,0.05);
 border-radius: 12px;
}
.glass-panel-dark {
 background: rgba(10, 15, 28, 0.5);
 border: 1px solid rgba(255, 255, 255, 0.05);
 border-radius: 12px;
}

/* Sidebar */
.sidebar {
 width: 150px; display: flex; flex-direction: column; align-items: center;
 padding: 20px 0; border-right: 1px solid rgba(255,255,255,0.05); z-index: 10;
}
.logo-area { margin-bottom: 40px; }
.brand-logo { height: 30px; object-fit: contain; }

.side-nav { display: flex; flex-direction: column; gap: 30px; width: 100%; align-items: center; }
.nav-item {
 display: flex; flex-direction: column; align-items: center; color: var(--text-muted);
 text-decoration: none; font-size: 0.75rem; gap: 8px; transition: all 0.3s;
}
.nav-item i { font-size: 1.5rem; }
.nav-item:hover { color: var(--text-main); }
.nav-item.active { color: var(--neon-violet); text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); }

/* Main Wrapper */
.main-wrapper { flex: 1; display: flex; flex-direction: column; padding: 20px 30px; overflow-y: auto; }

/* Top Header */
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }

/* Cyber Nodes V2 */
.cyber-nodes-v2 { display: flex; gap: 15px; align-items: flex-start; }
.node-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.node-item .circle { width: 10px; height: 10px; border-radius: 50%; background: #4a148c; }
.node-item .num { font-size: 0.65rem; color: #475569; font-weight: 600; }
.node-item.active .circle { 
    background: transparent; border: 2px solid #b388ff; 
    box-shadow: 0 0 10px #b388ff, inset 0 0 5px #b388ff; width: 14px; height: 14px; 
}
.node-item.active .num { color: #fff; text-shadow: 0 0 5px #fff; }

.header-tools { display: flex; gap: 20px; align-items: center; }
.timer-box {
 display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,0.05); 
 padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(0,240,255,0.2);
}
.timer-icon { color: var(--neon-cyan); font-size: 1.2rem; }
.timer-text { display: flex; flex-direction: column; line-height: 1.2; }
.timer-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }
.timer-value { font-size: 1rem; font-weight: 800; color: var(--neon-cyan); }
.icon-btn { background: rgba(255,255,255,0.05); border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #334155; }

/* Content Split */
.content-split { display: flex; gap: 30px; height: calc(100vh - 120px); }
.learning-panel { flex: 5.5; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; padding-right: 10px; }
.video-player { aspect-ratio: 16/9; width: 100%; background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') center/cover; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.video-overlay { position: absolute; top:0; left:0; width:100%; height:100%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); }
.play-main { font-size: 4rem; color: rgba(255,255,255,0.8); cursor: pointer; transition: 0.3s; }
.play-main:hover { color: var(--neon-cyan); text-shadow: 0 0 20px var(--neon-cyan); }
.video-controls { background: rgba(0,0,0,0.7); padding: 10px 20px; display: flex; gap: 15px; align-items: center; z-index: 2; }
.progress-bar-video { flex:1; height: 4px; background: #334; border-radius: 2px; }
.progress-fill { width: 30%; height: 100%; background: var(--neon-cyan); border-radius: 2px; position: relative; }
.progress-fill::after { content:''; position:absolute; right: -5px; top:-3px; width:10px; height:10px; background:#fff; border-radius:50%; }

.content-tabs { display: flex; gap: 15px; }
.tab-btn { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); padding: 10px 20px; border-radius: 8px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.tab-btn.active { background: rgba(138, 43, 226, 0.15); border-color: var(--neon-violet); color: #fff; box-shadow: 0 0 10px rgba(138, 43, 226, 0.2); }

.theory-content { padding: 30px; display: flex; flex-direction: column; gap: 15px; }
.skeleton-title { width: 60%; height: 24px; background: #1e293b; border-radius: 4px; margin-bottom: 10px; }
.skeleton-line { width: 100%; height: 12px; background: #0f172a; border-radius: 4px; }
.skeleton-line.short { width: 70%; }
.skeleton-box { display: flex; gap: 20px; border: 1px solid rgba(255,255,255,0.1); padding: 20px; border-radius: 8px; margin-top: 20px; }
.img-placeholder { width: 80px; height: 60px; background: #0f172a; border-radius: 8px; display:flex; align-items:center; justify-content:center; color:#334; font-size: 2rem;}
.box-lines { flex:1; display:flex; flex-direction:column; gap:10px; justify-content:center;}

/* Right Panel - Workspace (IMAGE BASED) */
.workspace-panel { flex: 4.5; padding-bottom: 20px; display: flex; justify-content: center; }

/* The container holds the background image */
.workspace-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    /* Menggunakan file gambar asli sebagai background */
    background-image: url('Meja\ Kerja.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
}

/* Positioning content INSIDE the image */
.workspace-content-area {
    position: absolute;
    top: 8%; /* Adjust to match the internal box of the image */
    left: 8%; /* Adjust to match the internal box of the image */
    width: 84%; /* Adjust to match the internal box of the image */
    height: 85%; /* Adjust to match the internal box of the image */
    display: flex;
    flex-direction: column;
}

.workspace-header { 
    display: flex; 
    justify-content: flex-end; /* Dropdown di kanan */
    align-items: center; 
    height: 12%; 
    padding-right: 5%;
}
.dropdown-select { 
    background: rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: var(--text-main); 
    padding: 6px 12px; 
    border-radius: 6px; 
    outline: none; 
    cursor: pointer;
}

.code-editor-transparent {
    flex: 1; 
    margin-top: 10%; /* Spacer to push text below the image's tab area */
    padding: 0 10% 0 15%; /* Padding to align text with the image's code area */
    overflow-y: auto;
}
.editor-body { 
    font-family: 'Fira Code', monospace; 
    font-size: 0.9rem; 
    color: #cbd5e1; 
    line-height: 1.6; 
    white-space: pre-wrap; 
}

/* Invisible overlay over the image's "Salin" button */
.btn-cyan-transparent {
    height: 12%; /* Height of the button area in the image */
    margin-top: 5%;
    margin-bottom: 8%;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}
.btn-cyan-transparent:hover {
    background: rgba(255, 255, 255, 0.1); /* Slight highlight on hover to show it's clickable */
}

/* CHAT WIDGET - IMAGE BASED */
.chat-widget {
    position: fixed; 
    bottom: 30px; 
    right: 40px;
    cursor: pointer; 
    z-index: 100;
    transition: transform 0.2s ease;
}
.chat-widget:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
}
.rara-image-btn {
    height: 80px; /* Sesuaikan ukuran gambar widget di sini */
    width: auto;
    object-fit: contain;
    /* Optional shadow to make the image pop */
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.6));
}
