/* assets/css/style.css */
/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Palette matching the screenshots */
    --primary: #2563eb;       /* Royal Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --whatsapp-green: #22c55e;
    
    --bg-base: #f1f5f9;       /* Light Gray Page Bg */
    --bg-card: #ffffff;       /* Pure White Cards */
    
    --text-primary: #0f172a;  /* Dark Slate */
    --text-secondary: #475569;/* Medium Slate */
    --text-muted: #94a3b8;    /* Light Slate */
    
    --border-color: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 400 !important;
}

strong, b { font-weight: 500 !important; }
h1, h2, h3, h4, h5, h6 { font-weight: 500 !important; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ---------------------------------------------------- */
/* HOMEPAGE PORTAL (index.php)                          */
/* ---------------------------------------------------- */

.portal-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

/* Portal Section Header */
.portal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.portal-header-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.portal-title-wrapper h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

.portal-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-left: 60px;
    margin-top: -4px;
    margin-bottom: 40px;
}

/* Webinar Portal Grid */
.webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.webinar-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.webinar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.webinar-banner-area {
    position: relative;
    height: 180px;
    background-color: #0c4a6e;
    overflow: hidden;
}

.webinar-banner-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Badges */
.badge-terbaru {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #ffffff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.badge-status {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.badge-status.closed {
    background-color: rgba(239, 68, 68, 0.9);
}

.webinar-banner-overlay-pills {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.overlay-pill {
    background-color: #ffffff;
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.webinar-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.webinar-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
}

.webinar-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------------------------------------------- */
/* DETAIL PAGE THREE-COLUMN LAYOUT (detail.php)         */
/* ---------------------------------------------------- */

.detail-layout-container {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* --- Left Sidebar --- */
.left-sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: var(--transition);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 32px;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.sidebar-profile-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-profile-info p {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.sidebar-menu-item button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.sidebar-menu-item button:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
}

.sidebar-menu-item.active button {
    background-color: #eff6ff;
    color: var(--primary);
}

.sidebar-menu-item.active button svg {
    color: var(--primary);
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-wa-share {
    background-color: var(--whatsapp-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wa-share:hover {
    background-color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

/* Sidebar Toggle Arrow */
.sidebar-collapse-btn {
    position: absolute;
    right: -14px;
    top: 32px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--text-secondary);
}

/* Collapsed Sidebar State */
.left-sidebar.collapsed {
    width: 80px;
    padding: 24px 8px;
}

.left-sidebar.collapsed .sidebar-profile-info,
.left-sidebar.collapsed .sidebar-menu-item span,
.left-sidebar.collapsed .btn-wa-share span {
    display: none;
}

.left-sidebar.collapsed .sidebar-profile {
    justify-content: center;
}

.left-sidebar.collapsed .sidebar-menu-item button,
.left-sidebar.collapsed .btn-wa-share {
    justify-content: center;
    padding: 12px;
}

.left-sidebar.collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
}

/* --- Center Workspace Area --- */
.center-workspace {
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

/* Tab Containers */
.workspace-tab-content {
    display: none;
}

.workspace-tab-content.active {
    display: block;
}

/* Custom BKN Schedule Board */
.schedule-board {
    background: linear-gradient(135deg, #0f4c9c 0%, #063168 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 49, 104, 0.2);
    position: relative;
    overflow: hidden;
}

/* Background overlay building logo watermark */
.schedule-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='100' fill='none'/%3E%3Cpath d='M10 90 L90 90 M20 90 L20 40 L80 40 L80 90 M35 40 L35 20 L65 20 L65 40 M50 20 L50 10' stroke='rgba(255,255,255,0.015)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    opacity: 0.8;
    pointer-events: none;
}

/* Board Header Logos */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.board-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.board-bkn-logo {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.board-bkn-text h3 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.3;
}

.board-bkn-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.board-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.board-siasn-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: #facc15;
}

.board-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 40px;
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Grid-based Schedule Layout matching visual capsules exactly */
.schedule-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
}

.schedule-grid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px 12px;
}

.schedule-grid-table th {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px;
    font-weight: 700;
    text-align: center;
}

.schedule-grid-table th:first-child { text-align: center; }
.schedule-grid-table th:last-child { text-align: left; padding-left: 20px; }

/* Session Row Capsules */
.pill-day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    height: 100px;
    width: 100px;
    margin: 0 auto;
}

.pill-day span:first-child {
    font-size: 14px;
    font-weight: 800;
}

.pill-day span:last-child {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

.pill-time {
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    width: 120px;
    display: block;
    margin: 0 auto;
}

.pill-sesi {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin: 0 auto;
}

.pill-materi {
    border-radius: 9999px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    display: block;
    width: 100%;
}

/* Color Coding Themes matching Monday - Friday */
/* Monday: Yellow */
.theme-yellow .pill-day,
.theme-yellow .pill-sesi {
    background-color: #facc15;
    color: #0f172a;
}
.theme-yellow .pill-time,
.theme-yellow .pill-materi {
    border: 2px solid #facc15;
    color: #ffffff;
    background-color: rgba(250, 204, 21, 0.05);
}

/* Tuesday: Orange */
.theme-orange .pill-day,
.theme-orange .pill-sesi {
    background-color: #f97316;
    color: #ffffff;
}
.theme-orange .pill-time,
.theme-orange .pill-materi {
    border: 2px solid #f97316;
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.05);
}

/* Wednesday: Red/Brown */
.theme-red .pill-day,
.theme-red .pill-sesi {
    background-color: #ea580c;
    color: #ffffff;
}
.theme-red .pill-time,
.theme-red .pill-materi {
    border: 2px solid #ea580c;
    color: #ffffff;
    background-color: rgba(234, 88, 12, 0.05);
}

/* Thursday: Pink */
.theme-pink .pill-day,
.theme-pink .pill-sesi {
    background-color: #ec4899;
    color: #ffffff;
}
.theme-pink .pill-time,
.theme-pink .pill-materi {
    border: 2px solid #ec4899;
    color: #ffffff;
    background-color: rgba(236, 72, 153, 0.05);
}

/* Friday: Light Blue */
.theme-blue .pill-day,
.theme-blue .pill-sesi {
    background-color: #0ea5e9;
    color: #ffffff;
}
.theme-blue .pill-time,
.theme-blue .pill-materi {
    border: 2px solid #0ea5e9;
    color: #ffffff;
    background-color: rgba(14, 165, 233, 0.05);
}

/* Board Footer */
.board-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.board-footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.board-footer-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-footer-details span:first-child {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.board-footer-details span:last-child {
    font-size: 14px;
    font-weight: 700;
}

.board-badge-free {
    background-color: #ef4444;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* --- Right execution Sidebar --- */
.right-sidebar {
    background-color: #f8fafc;
    border-left: 1px solid var(--border-color);
    padding: 40px 24px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.execution-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 28px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.02);
}

.execution-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.execution-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.execution-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.execution-info span:first-child {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.execution-info span:last-child {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-sidebar-streaming {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: var(--transition);
}

.btn-sidebar-streaming:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* General Layouts for switchable tabs */
.card-content-panel {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(15,23,42,0.02);
}

.card-content-panel h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-content-panel h3 svg {
    color: var(--primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px;
    padding: 36px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 800;
}

/* Form inputs styling inside modal */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-help {
    font-size: 11px;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

/* Dynamic list items for file download */
.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
}

.file-info h5 {
    font-size: 14px;
    font-weight: 700;
}

.file-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .detail-layout-container {
        grid-template-columns: 240px 1fr;
    }
    .right-sidebar {
        display: none; /* In Tablet/Mobile layout, we can toggle it, or put it under main content */
    }
}

@media (max-width: 768px) {
    /* Detail layout: stack vertically */
    .detail-layout-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    /* Left sidebar becomes horizontal tab bar on mobile */
    .left-sidebar {
        height: auto;
        position: sticky;
        top: 0;
        z-index: 100;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 12px 0;
        flex-direction: column;
        background: #fff;
    }

    /* Hide profile/avatar in sidebar on mobile */
    .sidebar-profile,
    .sidebar-footer {
        display: none;
    }

    /* Horizontal scrollable tab bar */
    .sidebar-menu-list {
        flex-direction: row;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sidebar-menu-list::-webkit-scrollbar { display: none; }

    .sidebar-menu-item {
        flex-shrink: 0;
    }

    .sidebar-menu-item[data-tab="sertifikat"] {
        display: none !important;
    }

    .sidebar-menu-item button {
        flex-direction: column;
        gap: 4px;
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 8px;
        white-space: nowrap;
    }

    .sidebar-menu-item button svg {
        width: 18px;
        height: 18px;
    }

    /* Hide sidebar collapse button on mobile */
    .sidebar-collapse-btn {
        display: none;
    }

    /* Center workspace */
    .center-workspace {
        padding: 16px;
        height: auto;
        overflow: visible;
    }

    /* Header detail page */
    header[style*="sticky"] {
        padding: 10px 12px !important;
    }
    header[style*="sticky"] span[style*="font-size: 16px"] {
        font-size: 13px !important;
    }
    header[style*="sticky"] a[href="index.php"] {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }

    /* Schedule board */
    .schedule-board {
        padding: 24px 16px;
    }
    .board-title {
        font-size: 17px;
        margin-bottom: 24px;
    }
    .board-header-left {
        gap: 10px;
    }
    .board-bkn-text h3 {
        font-size: 11px;
    }
    .pill-day {
        width: 72px;
        height: 72px;
        padding: 12px 6px;
    }
    .pill-day span:first-child {
        font-size: 11px;
    }
    .pill-day span:last-child {
        font-size: 9px;
    }
    .pill-time {
        width: 90px;
        font-size: 10px;
        padding: 6px 10px;
    }
    .pill-materi {
        font-size: 11px;
        padding: 8px 14px;
    }
    .board-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Card panels */
    .card-content-panel {
        padding: 20px 16px;
    }

    /* Modal */
    .modal-content {
        padding: 24px 20px;
        margin: 16px;
    }

    /* Right sidebar: show as card below content on mobile */
    .right-sidebar {
        display: block;
        height: auto;
        position: static;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 20px 16px;
    }
    .right-sidebar .execution-card {
        padding: 20px;
    }
}

/* Streaming Card Hover Effects */
.streaming-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08) !important;
}

/* Upload Area & Preview (Admin) */
.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background-color: #f8fafc;
    margin-bottom: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.2s ease;
}
.upload-area:hover {
    background-color: #f1f5f9;
}
.upload-area input[type="file"] {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-muted);
}
.upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
}
.upload-preview {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 6px;
    margin-top: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}