table th {
    font-weight: 400 !important;
}
@media (max-width: 700px) {
    table, th, td {
        font-size: 13px !important;
    }
}
body {
    font-family: 'Urbanist', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}


h2, h3, h4, h5, h6{
    font-weight:500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container .card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card.auth-narrow {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.container .card.full-width {
    max-width: 100%;
}

.card {
    background: #667eea;
    color: white;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card.white {
    background: white;
    color: #333;
}

.card.compact {
    padding: 15px 20px;
}

.card.compact h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.card.compact p {
    margin: 0;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-card {
    background:#2f46c2;
    color: white;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: normal;
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: normal;
    margin: 5px 0;
}

.stat-card a {
    color: white;
    text-decoration: underline;
    font-size: 13px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.navbar {
    background: white;
    color: black;
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 4px solid #ac0000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: black;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.navbar a.nav-active {
    border-bottom-color: #0b5ed7;
    color: #0b5ed7;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: black;
    padding: 5px;
}

.nav-offcanvas {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.nav-offcanvas.active {
    left: 0;
}

.nav-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: black;
}

.nav-offcanvas-body {
    padding: 20px;
}

.nav-offcanvas-body a {
    display: block;
    padding: 12px 0;
    color: black;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: padding-left 0.2s;
}

.nav-offcanvas-body a.nav-active {
    border-bottom: 2px solid #0b5ed7;
    color: #0b5ed7;
    font-weight: 600;
}

.nav-offcanvas-body a:hover {
    padding-left: 10px;
    color: #667eea;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.nav-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-desktop {
        display: none !important;
    }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    box-sizing: border-box;
    max-width: 100%;
    background: #0c184e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-blue {
    background: #0c184e;
}

.btn-blue:hover {
    background: #0b5ed7;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}


.quick-links .btn {
    display: inline-block;
    padding: 10px 20px;
    background:#0f2168;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size:13px;
}

.btn:hover {
    background: #5568d3;
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
     font-family: 'Urbanist', sans-serif;
}

/* Urbanist renders tiny password bullets on some browsers, so use a more legible mask font. */
input[type="password"],
.form-control[type="password"] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #c5d3f0;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.08);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c5d3f0;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.08);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}



body.welcome {
    background:#0c184e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.welcome .container {
    text-align: center;
    color: white;
    max-width: none;
    padding: 0;
}

body.welcome .card {
    background: white;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding:20px 34px 64px 34px;
    margin: 0 auto;
    max-width: 380px;
    color: #333;
}

body.welcome h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    color: #667eea;
}

body.welcome p {
    font-size: 14px;
    margin-bottom: 40px;
    color: #6c757d;
}

body.welcome .btn-group {
    display: flex;
    gap: 7px;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}

body.welcome .btn {
    display: inline-block;
    padding: 13px 30px;
    background:#0c184e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 400;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

body.welcome .btn:hover {
    background: #152787;
}

body.welcome .btn-secondary {
    background: #a70000;
}

body.welcome .btn-secondary:hover {
    background: #152787;
}

.agreement-label {
    user-select: none;
}

.agreement-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    accent-color: #0c184e;
    -webkit-appearance: checkbox;
    appearance: auto;
    background-color: #fff;
    border: 1px solid #0c184e;
    border-radius: 3px;
    cursor: pointer;
}
/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    /* Responsive grid forms */
    .form-grid-2col {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Responsive 2-column layouts */
    .grid-2col {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

   
    /* Flex layouts */
    .flex-wrap {
        flex-direction: column !important;
    }

    .container {
        padding: 15px;
    }

    .card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .navbar a {
        margin-left: 10px;
        font-size: 13px;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 15px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on input focus on iOS */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 12px;
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar a {
        margin-left: 8px;
        font-size: 12px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 16px !important;
    }

    h5 {
        font-size: 14px !important;
    }
}