/* template/style.css */
:root { --primary: #2563eb; --sidebar-w: 250px; }
* { box-sizing: border-box; font-family: 'Kanit', sans-serif; }
body { margin: 0; display: flex; min-height: 100vh; background: #f1f5f9; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: white;
    border-right: 1px solid #e2e8f0;
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
}
.brand { padding: 1.5rem; font-size: 1.5rem; font-weight: bold; color: var(--primary); border-bottom: 1px solid #e2e8f0; }
.nav-menu { padding: 1rem; }
.nav-item { display: block; padding: 0.8rem 1rem; color: #475569; text-decoration: none; border-radius: 8px; margin-bottom: 5px; transition: 0.2s; }
.nav-item:hover, .nav-item.active { background: #eff6ff; color: var(--primary); font-weight: 500; }
.nav-item i { margin-right: 10px; width: 20px; text-align: center; }
.nav-divider { font-size: 0.8rem; color: #94a3b8; margin: 15px 10px 5px; text-transform: uppercase; font-weight: 600; }
.highlight { background: #fef3c7; color: #d97706; }
.highlight:hover { background: #fde68a; }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex; flex-direction: column;
    height: 100vh;
}
.top-bar {
    background: white; padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
}
.btn-toggle-menu { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.content-area { flex: 1; padding: 1rem; background: #cbd5e1; position: relative; }
.pdf-viewer { width: 100%; height: 100%; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }

/* Welcome Screen */
.welcome-screen { text-align: center; color: #64748b; }
.big-icon { font-size: 5rem; margin-bottom: 1rem; color: #cbd5e1; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .btn-toggle-menu { display: block; }
}

/* Utilities (Copy from root style if needed) */
.btn { padding: 0.5rem 1rem; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; display: inline-block; font-size: 1rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-outline { border: 1px solid #ccc; background: white; color: #333; }