/* Custom Global Root Variables for Quick Fine Tuning */
:root {
    --sidebar-width: 280px;
    --primary-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-size: 1.15rem;
    font-family: var(--primary-font);
    background-color: #f4f6f9;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

/* Master Fixed Layout Controllers for Desktop/Laptop vs Mobile Viewports */
@media (min-width: 1200px) {
    .layout-wrapper {
        padding-left: calc(var(--sidebar-width) + 25px) !important;
    }
    .sidebar {
        width: var(--sidebar-width);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 1199.98px) {
    .sidebar {
        display: none; /* Can be turned into an offcanvas component dynamically later if needed */
    }
    .layout-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Sidebar Specific Visual Refinements */
.sidebar {
    background-color: #0f172a !important;
}
.sidebar-footer {
    margin-top: auto;
}

/* Extra Large Touch Targets Optimized for Older Adults */
.sidebar-link-large {
    font-size: 1.2rem !important;
    font-weight: 600;
    padding: 16px 20px !important;
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.sidebar-link-large:hover, .sidebar-link-large.active {
    background-color: #1e293b;
    color: #ffffff !important;
}

/* Massive CTA Actions Elements */
.btn-elderly-action {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* High Contrast Input Boxes for Sight Comfort */
.form-control-elderly {
    font-size: 1.25rem !important;
    padding: 14px 18px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 10px !important;
    color: #0f172a !important;
}
.form-control-elderly:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2) !important;
}

/* Structural Layout Card Adjustments */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}