/* ================================================================
   jadwal.css
   Migrasi CSS dari jadwal.php (tag <style> inline)
   ================================================================ */

:root {
    --primary: #0f172a;         /* Slate Darker */
    --primary-light: #1e293b;
    --accent: #10b981;          /* Emerald Green */
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-body: #f8fafc;
    --sidebar-width: 300px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: #334155;
    margin: 0;
    overflow-x: hidden;
}

/* ----------------------------------------------------------------
   LAYOUT STRUCTURE
   ---------------------------------------------------------------- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ----------------------------------------------------------------
   SIDEBAR STYLE
   ---------------------------------------------------------------- */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: linear-gradient(135deg, #f0fdf4 0%, #e1fae8 100%);
    border-right: 1px solid #f1f5f9;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 2050;
    transition: all 0.3s ease;
   
}

.sidebar-header {
    padding: 30px 30px;
    text-align: left;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.sidebar-content {
    padding: 0 20px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* ----------------------------------------------------------------
   MODE SWITCHER KEKINIAN
   ---------------------------------------------------------------- */
.mode-switcher {
    background: white;
    border-radius: 14px;
    padding: 4px;
    display: flex;
    position: relative;
    margin-bottom: 25px;
}

.switch-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.switch-btn.active { color: #fff !important; }

.glider {
    position: absolute;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: var(--primary);
    border-radius: 10px;
    z-index: 1;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 4px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* ----------------------------------------------------------------
   FORMS
   ---------------------------------------------------------------- */
.label-custom {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.select-custom,
.input-custom {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-light);
    transition: 0.2s ease;
}

.select-custom:focus,
.input-custom:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-action {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    width: 100%;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-action:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* ----------------------------------------------------------------
   MAIN CONTENT
   ---------------------------------------------------------------- */
.main-content {
    flex-grow: 1;
    padding: 40px;
    max-width: calc(100vw - var(--sidebar-width));
}

.top-navbar {
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.display-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 5px;
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
}

/* ----------------------------------------------------------------
   TABLE & CARD GENERATED
   ---------------------------------------------------------------- */
.table-custom th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
}

.card-auto-generated {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-auto-generated:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* ----------------------------------------------------------------
   MOBILE MENU ELEMENT
   ---------------------------------------------------------------- */
.btn-menu-mobile {
    display: none;
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--primary);
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2040;
}

/* ----------------------------------------------------------------
   RESPONSIVE MOBILE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .btn-menu-mobile { display: flex; }
    .sidebar-overlay.active { display: block; }

    .app-wrapper { flex-direction: column; }

    .sidebar {
        position: fixed;
        left: -100%;   /* Sembunyi */
        top: 0;
        width: 320px;
        min-width: 320px;
        height: 100vh;
        z-index: 2050;
        border-right: 1px solid #f1f5f9;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.active { left: 0; }

    .main-content {
        max-width: 100%;
        padding: 20px;
        padding-top: 100px;
    }

    .top-navbar {
        position: fixed;
        top: 0; left: 0; right: 0;
        background: rgba(248, 250, 252, 0.9) !important;
        backdrop-filter: blur(10px);
        padding: 15px 20px;
        z-index: 1000;
        margin-bottom: 0;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .top-navbar .d-flex { width: auto; }
    .display-card { padding: 20px; overflow-x: auto; }
}

/* ----------------------------------------------------------------
   SCROLLBAR STYLING
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }