/* ─── Typography ─────────────────────────────────────────────────────────── */

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif !important;
}

body, button, input, select, textarea {
    font-family: inherit !important;
}

/* ─── Force light mode ───────────────────────────────────────────────────── */

html, body {
    background-color: white !important;
    color: #4a4a4a !important;
}

.navbar, .box, .table, .card, .panel, .message {
    background-color: white !important;
    color: #4a4a4a !important;
}

.title, .subtitle, .label, .menu-label {
    color: #363636 !important;
}

input, textarea, select, .input, .textarea, .select select {
    background-color: white !important;
    color: #363636 !important;
    border-color: #dbdbdb !important;
}

.input::placeholder, input::placeholder, textarea::placeholder {
    color: #b5b5b5 !important;
    opacity: 1 !important;
}

.control.has-icons-left .icon, .control.has-icons-right .icon {
    color: #7a7a7a !important;
}

.table tbody tr {
    background-color: white !important;
    color: #363636 !important;
}

.table.is-striped tbody tr:nth-child(even) {
    background-color: #f5f5f5 !important;
}

.table td, .table th {
    color: #363636 !important;
}

strong, b, .has-text-weight-bold {
    color: #363636 !important;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

html, body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: white !important;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: white !important;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */

.navbar-menu {
    display: flex !important;
}

.navbar-end {
    margin-left: auto;
}

/* ─── Left menu ──────────────────────────────────────────────────────────── */

.left-menu {
    width: 250px;
    padding: 0;
    overflow-y: auto;
    flex-shrink: 0;
    background-color: #f5f5f5 !important;
}

.menu-header {
    padding: 1.5rem;
    text-align: center;
}

.menu-items {
    padding: 0.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: none;
    width: 100%;
    background: transparent;
    color: #4a4a4a;
    transition: background-color 0.15s ease;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-item.is-active {
    background-color: #00d1b2;
    color: #363636 !important;
}

.menu-item.is-active:hover {
    background-color: #00c4a7;
}

.menu-item.is-active .menu-label {
    color: #363636 !important;
}

.menu-item .icon {
    margin-right: 0.75rem;
    width: 1.25rem;
}

.menu-label {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Lab items */
.menu-item.is-lab {
    color: #7a7a7a;
}

.menu-item.is-lab:hover {
    color: #4a4a4a;
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-item.is-lab.is-active {
    background-color: #00d1b2;
    color: #363636 !important;
}

/* Collapsible Lab section */
.lab-section summary::-webkit-details-marker,
.lab-section summary::marker {
    display: none;
}

.lab-section summary {
    list-style: none;
}

.lab-section summary::before {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.6rem;
    margin-right: 0.4rem;
    display: inline-block;
    transition: transform 0.15s;
}

.lab-section[open] summary::before {
    transform: rotate(90deg);
}

/* ─── Tabs ───────────────────────────────────────────────────────────────── */

.tabs.is-boxed li.is-active a {
    background-color: #00d1b2 !important;
    border-color: #00d1b2 !important;
    color: #363636 !important;
}

.tabs.is-boxed li:not(.is-active) a {
    color: #363636;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .left-menu {
        position: fixed;
        left: -250px;
        height: 100vh;
        z-index: 40;
        transition: left 0.2s;
    }
    .left-menu.is-active {
        left: 0;
    }
    .main-content {
        padding-top: 3rem;
    }
}
