:root {
    /* Colors */
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-color: #F8FAFC;
    --accent-color: #F59E0B;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-main: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: #E2E8F0;
    --success: #10B981;
    --error: #EF4444;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(circle at top right, #E0E7FF, transparent 40%),
                      radial-gradient(circle at bottom left, #DBEAFE, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-primary-sm {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary:hover, .btn-primary-sm:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--text-muted);
}

/* Layout */
.main-content {
    flex: 1;
    padding: 3rem 0;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-error {
    background-color: #FEF2F2;
    color: var(--error);
    border: 1px solid #FCA5A5;
}

.alert-success {
    background-color: #ECFDF5;
    color: var(--success);
    border: 1px solid #6EE7B7;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

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

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }

/* TBO Navbar */
.tbo-navbar {
    background: #0050a0;
    color: white;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    position: relative;
    z-index: 1000;
}
.tbo-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.tbo-nav-list::-webkit-scrollbar {
    display: none;
}
.tbo-nav-item {
    position: relative;
    border-right: 1px solid #1a64ac;
}
.tbo-nav-item > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}
.tbo-nav-item:hover > a, .tbo-nav-item.active > a {
    background: #004080;
}
.tbo-nav-item > a > i {
    font-size: 18px;
    margin-bottom: 4px;
}
.tbo-nav-item > a > span {
    font-weight: 500;
}

/* Dropdown */
.tbo-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ccc;
    z-index: 1001;
    min-width: 150px;
    border-radius: 0 0 4px 4px;
}
.tbo-nav-item:hover .tbo-dropdown-menu {
    display: flex;
    flex-direction: column;
}
.tbo-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tbo-dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}
.tbo-dropdown-menu li:last-child {
    border-bottom: none;
}
.tbo-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 400;
}
.tbo-dropdown-menu a::before {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0050a0;
    font-size: 8px;
    margin-right: 8px;
}
.tbo-dropdown-menu a:hover {
    background: #f8f9fa;
    color: #0050a0;
}

/* Multi-column Dropdown */
.tbo-nav-item:hover .tbo-dropdown-menu.multi-column {
    flex-direction: row;
}
.tbo-dropdown-menu.multi-column {
    padding: 0;
}
.tbo-column {
    min-width: 160px;
    border-right: 1px solid #eee;
}
.tbo-column:last-child {
    border-right: none;
}
.tbo-column h4 {
    background: #cba865;
    color: #333;
    margin: 0;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
}
