/* 
   SMK TAMAN SEMARAK (NEA4105) - STYLING RASMI (LIGHT & DARK MODE)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

html.dark {
    --bg-page: #0b1120;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Card Styling */
.school-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.dark .school-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* Input Fields */
.school-input {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 0.625rem;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* Sub-Menu Sidebar Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    background-color: rgba(30, 58, 138, 0.08);
    color: #1e40af;
}

.dark .sidebar-link:hover {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.sidebar-link.active {
    background-color: #1e40af;
    color: #ffffff !important;
}

.dark .sidebar-link.active {
    background-color: #2563eb;
    color: #ffffff !important;
}

/* Sub-menu nested items */
.sidebar-sub-item {
    display: block;
    padding: 0.375rem 0.75rem 0.375rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}

.sidebar-sub-item:hover {
    color: #1e40af;
    border-left-color: #1e40af;
    background-color: rgba(30, 58, 138, 0.04);
}

.dark .sidebar-sub-item:hover {
    color: #93c5fd;
    border-left-color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.08);
}
