/* SATriage GLOBAL BASE - Offline-First */

@font-face {
    font-family: 'Nunito Sans';
    src: url('/fonts/NunitoSans-Variable.ttf') format('truetype');
    font-weight: 200 900;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/OpenSans-Variable.ttf') format('truetype');
    font-weight: 300 800;
    font-display: swap;
}

:root {
    --primary-blue: #0033cc;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --bg-gray: #f8fafc;
    --border-light: #e2e8f0;
    --title-size: 32px;
}

body { 
    font-family: "Open Sans", "system-ui", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-gray); 
    color: var(--text-main); 
    margin: 0; 
    display: flex; 
    min-height: 100vh;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: var(--title-size);
}

h2, h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
}

/* SIDEBAR NAVIGATION */
.sidebar-header {
    width: 50px;
    background-color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-sizing: border-box;
    z-index: 1000;
}

.sidebar-header a {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
}

.sidebar-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    image-rendering: pixelated;
}

.white-icon { filter: brightness(0) invert(1); }

/* MAIN CONTENT WRAPPER - Centering Fix */
.main-wrapper {
    flex-grow: 1;
    /* This padding-left pushes content over but keeps the flex-center balanced */
    padding: 20px 20px 40px 70px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    box-sizing: border-box;
}

footer {
    width: 100%;
    margin-top: auto;
    padding: 40px 0;
    color: var(--text-sub);
    font-size: 0.85rem;
    text-align: center;
}

/* GLOBAL BUTTON STYLES */
.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #002699;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 204, 0.15);
}

.btn-danger {
    background-color: white;
    color: var(--error-red, #dc2626);
    border: 2px solid var(--error-red, #dc2626);
}

.btn-danger:hover {
    background-color: #fef2f2;
    border-color: #991b1b;
    color: #991b1b;
}

.btn:disabled {
    background-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    border: none !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}