:root {
    --primary: #0D47A1;
    --primary-hover: #0a367a;
    --secondary: #1976D2;
    --accent: #FFC107;
    --background: #F5F5F5;
    --surface: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Custom Utilities matching Flutter AppTheme */
.bg-primary-custom { background-color: var(--primary) !important; color: white !important; }
.text-primary-custom { color: var(--primary) !important; }

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    min-height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Inputs */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #e0e0e0;
    padding: 14px 16px;
    background-color: #ffffff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1rem rgba(13, 71, 161, 0.25);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

/* Drawer / Sidebar */
.offcanvas {
    width: 300px;
}
.offcanvas-header {
    background-color: var(--primary);
    color: white;
}
.offcanvas .btn-close {
    filter: invert(1);
}
.nav-link-custom {
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-link-custom:hover {
    background-color: rgba(13, 71, 161, 0.05);
    color: var(--primary);
}
.nav-link-custom.active {
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    font-weight: 500;
}
.nav-link-custom i {
    font-size: 1.25rem;
}

/* App Bar */
.navbar-custom {
    background-color: var(--primary);
    color: white;
}
.navbar-custom .navbar-brand {
    color: white;
    font-weight: 500;
}
.navbar-custom .nav-link, .navbar-custom .navbar-toggler {
    color: white;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
#loading-overlay .spinner-border {
    color: white;
    width: 3rem;
    height: 3rem;
}
