/* ============================================================================
   Custom CSS & Video Shield Protection
   Dokter Saham by dr. Erik Catos Lawijaya
   ============================================================================ */

/* Custom Scrollbar for Course Sidebar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Video Player Container & Shields */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Shield 1: Memblokir Tombol "Pop-out / Buka di Tab Baru" Google Drive di Pojok Kanan Atas */
.shield-popout {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 65px;
    z-index: 15;
    background: transparent;
    cursor: default;
}

/* Shield 2: Memblokir Klik Kanan pada Seluruh Area Video Player */
.shield-fullscreen-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Membiarkan klik play/pause tembus ke iframe */
}

/* Dynamic Floating Watermark - Anti Screen Recorder */
.video-watermark {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    user-select: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.22);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    animation: floatingWatermark 25s infinite alternate ease-in-out;
}

@keyframes floatingWatermark {
    0% {
        top: 8%;
        left: 8%;
    }
    25% {
        top: 65%;
        left: 20%;
    }
    50% {
        top: 25%;
        left: 65%;
    }
    75% {
        top: 75%;
        left: 55%;
    }
    100% {
        top: 15%;
        left: 40%;
    }
}

/* Pulse animation for trading signals / highlight */
@keyframes greenGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    }
}
.glow-emerald {
    animation: greenGlow 3s infinite;
}

/* Input field selectable override (so login & forms remain easy to type into) */
input, textarea, [contenteditable="true"] {
    user-select: text !important;
    -webkit-user-select: text !important;
}
