body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    background-color: #dbe4f0; /* Light blue background */
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; /* App-like feel */
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f0f0f0; border-left: 1px solid #ccc; }
::-webkit-scrollbar-thumb { background: #a0a0a0; border: 1px solid #fff; box-shadow: inset 1px 0 0 #808080; }
::-webkit-scrollbar-thumb:hover { background: #808080; }

/* Main Layout */
.sidebar {
    background-color: #e3eaf3;
    border-right: 1px solid #8ba0bc;
    padding: 0;
}

/* Sidebar Nav Items (Accordion-like bars) */
.nav-pills .nav-link {
    border-radius: 0;
    background: linear-gradient(to bottom, #b4c7dc 0%, #8ba0bc 100%);
    color: #000;
    font-weight: bold;
    border: 1px solid #fff;
    border-bottom: 1px solid #6b829d;
    margin-bottom: 2px;
    text-align: left;
    padding: 8px 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
}

.nav-pills .nav-link:hover {
    background: linear-gradient(to bottom, #cce0f5 0%, #aabccf 100%);
    color: #000;
}

.nav-pills .nav-link.active {
    background: linear-gradient(to bottom, #7da0c8 0%, #597ea8 100%);
    color: #fff;
    border: 1px solid #3c5d80;
}

/* Right Arrow icon for nav links (simulated) */
.nav-pills .nav-link::after {
    content: '▼'; /* Or right arrow */
    position: absolute;
    right: 10px;
    font-size: 10px;
    opacity: 0.6;
}

/* Cards / Panels */
.card {
    border-radius: 0;
    border: 1px solid #7a96b5;
    background-color: #f0f5fb;
    box-shadow: none;
}

.card-header {
    background: linear-gradient(to bottom, #b7c9e0 0%, #94abc7 100%);
    color: #000 !important;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid #7a96b5;
    text-transform: uppercase;
}

.card-body {
    padding: 10px;
}

/* Buttons */
.btn {
    border-radius: 0;
    font-size: 11px;
    padding: 4px 12px;
    border: 1px solid #555;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
}

.btn-primary {
    background: linear-gradient(to bottom, #4a8cdb 0%, #245894 100%);
    border-color: #1a4575;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #5ba0f0 0%, #3066a6 100%);
}

.btn-danger {
    background: linear-gradient(to bottom, #e05c5c 0%, #b32424 100%);
    border-color: #8a1a1a;
}

.btn-info {
    background: linear-gradient(to bottom, #5bc0de 0%, #2a9ec2 100%);
    border-color: #248aa8;
    color: #fff;
}

/* Tables */
.table {
    background-color: #fff;
    border: 1px solid #999;
    font-size: 11px;
}
.table thead th {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
    border-bottom: 1px solid #999;
    font-weight: normal;
    padding: 4px;
}
.table td {
    padding: 4px;
    vertical-align: middle;
}

/* Footer Status Bar */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f0f0f0;
    border-top: 1px solid #999;
    padding: 2px 5px;
    font-size: 11px;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    height: 22px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* User Info Panel (Blue Box) */
.user-info-panel {
    background-color: #7b99c2; /* Blue-ish */
    border: 1px solid #000;
    padding: 5px;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    font-family: 'Tahoma', sans-serif;
    margin-top: auto; /* Push to bottom if in flex */
}

/* Top Menu Bar */
.top-menu-bar {
    background: #e3eaf3;
    border-bottom: 1px solid #8ba0bc;
    padding: 2px 10px;
    font-size: 11px;
}
.top-menu-link {
    color: #000;
    margin-right: 15px;
    text-decoration: none;
}
.top-menu-link:hover {
    text-decoration: underline;
}

/* Dashboard Cards (Big Status) */
.status-card-big {
    border: 1px solid #7a96b5;
    border-radius: 0;
}
.status-card-big .card-body {
    padding: 10px;
}
.status-card-big h6 {
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: bold;
}
.status-card-big p {
    font-size: 18px;
    margin: 0;
}

.sol-id-card {
    position: relative;
    width: 260px;
    height: 360px;
    background-image: url('../assets/legita.png');
    background-size: cover;
    background-position: center;
    border: 1px solid #7a96b5;
}

.sol-id-photo-frame {
    position: absolute;
    top: 55px;
    left: 32px;
    width: 115px;
    height: 120px;
    border-radius: 0;
    overflow: hidden;
}

.sol-id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: none;
}

.sol-id-field {
    position: absolute;
    font-family: 'Tahoma', sans-serif;
    font-size: 10px;
    color: #003366;
}

.sol-id-field-number {
    top: 210px;
    left: 120px;
    right: 20px;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.sol-id-field-firstname {
    top: 232px;
    left: 120px;
    right: 20px;
    text-transform: uppercase;
}

.sol-id-field-lastname {
    top: 252px;
    left: 120px;
    right: 20px;
    text-transform: uppercase;
}

.sol-id-field-rank {
    top: 272px;
    left: 120px;
    right: 20px;
    text-transform: uppercase;
}

.sol-id-field-valid {
    top: 160px;
    right: 32px;
    left: auto;
    text-align: right;
    font-weight: bold;
}

.id-photo-preview-frame {
    width: 48px;
    height: 48px;
    border: 1px solid #7a96b5;
    background-color: #f0f5fb;
    overflow: hidden;
}

.id-photo-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }
    .sidebar {
        display: none;
        position: fixed;
        top: 24px;
        bottom: 22px;
        left: 0;
        width: 70%;
        max-width: 260px;
        z-index: 1500;
    }
    .mobile-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 24px;
        bottom: 22px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1400;
    }
    .top-menu-bar {
        font-size: 10px;
        padding: 2px 6px;
    }
    .user-info-panel {
        display: none;
    }
    .status-card-big .card-body {
        padding: 8px;
    }
    .status-card-big p {
        font-size: 16px;
    }
    .table {
        font-size: 10px;
    }
    .table td, .table th {
        padding: 3px;
    }
    .modal-dialog {
        margin: 0.5rem;
        max-width: 95%;
    }
    .status-bar {
        font-size: 10px;
        height: 20px;
    }
}
