﻿/* LABTOVA application theme */

:root {
    --lab-primary: #1a3a5c;
    --lab-primary-dark: #0f2338;
    --lab-primary-light: #2a5a8a;
    --lab-accent: #4a90c2;
    --lab-bg: #f0f4f8;
    --lab-card: #ffffff;
    --lab-text: #1d4166;
    --lab-text-muted: #6c8ab0;
    --lab-border: #d0dce8;
    --lab-hover: #e8f0f8;
    --lab-gold: #c9a96e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--lab-bg);
    color: var(--lab-text);
    min-height: 100vh;
    padding-top: 70px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(26, 58, 92, 0.35);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--lab-primary);
    --bs-btn-border-color: var(--lab-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--lab-primary-dark);
    --bs-btn-hover-border-color: var(--lab-primary-dark);
    --bs-btn-focus-shadow-rgb: 26, 58, 92;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--lab-primary-dark);
    --bs-btn-active-border-color: var(--lab-primary-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--lab-primary);
    --bs-btn-disabled-border-color: var(--lab-primary);
}

/* ===== Main Navbar ===== */
.lab-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1039;
    height: 70px;
    background: linear-gradient(135deg, var(--lab-primary) 0%, var(--lab-primary-dark) 100%);
    box-shadow: 0 4px 30px rgba(26, 58, 92, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lab-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.lab-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    height: 100%;
    background: rgba(255,255,255,0.05);
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.lab-brand img {
    height: 40px;
    width: auto;
    max-height: 100%;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s;
}

.lab-brand:hover img {
    transform: scale(1.05);
}

/* ===== Nav Menu ===== */
.lab-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.lab-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.lab-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 1.2rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 70px;
    border-bottom: 3px solid transparent;
    position: relative;
}

.lab-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--lab-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.lab-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.lab-nav-link:hover::after,
.lab-nav-link.active::after {
    width: 60%;
}

.lab-nav-link.active {
    color: white;
    background: rgba(255,255,255,0.08);
}

.lab-nav-link i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.lab-nav-link:hover i {
    transform: translateY(-2px);
}

.lab-nav-arrow {
    font-size: 0.7rem !important;
    margin-right: auto;
    margin-left: 4px;
    opacity: 0.6;
}

/* ===== Dropdown ===== */
.lab-dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 50px rgba(26, 58, 92, 0.25);
    min-width: 240px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    border: none;
    border-top: 3px solid var(--lab-gold);
    overflow: hidden;
}

.lab-nav-item:hover .lab-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lab-dropdown-header {
    padding: 0.8rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lab-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--lab-border);
    margin-bottom: 0.3rem;
}

.lab-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.2rem;
    color: var(--lab-text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s;
    border-right: 3px solid transparent;
}

.lab-dropdown-item:hover,
.lab-dropdown-item.active {
    background: var(--lab-hover);
    color: var(--lab-primary);
    border-right-color: var(--lab-gold);
    padding-right: 1.5rem;
}

.lab-dropdown-item i {
    color: var(--lab-accent);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.lab-dropdown-item:hover i {
    transform: scale(1.2);
    color: var(--lab-primary);
}

.lab-dropdown-divider {
    height: 1px;
    background: var(--lab-border);
    margin: 0.5rem 1rem;
}

/* ===== User Section ===== */
.lab-user-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 100%;
    padding: 0 2rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.lab-notification {
    position: relative;
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lab-notification:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: rotate(15deg);
}

.lab-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.lab-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.lab-user-menu:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.lab-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--lab-gold);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lab-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.lab-user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.lab-user-role {
    font-size: 0.7rem;
    opacity: 0.7;
    color: var(--lab-gold);
}

.lab-user-chevron {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-right: 4px;
}

/* ===== Mobile Toggle ===== */
.lab-mobile-toggle {
    display: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.lab-mobile-toggle:hover {
    color: var(--lab-gold);
}

/* ===== Main Content ===== */
.lab-main {
    padding: 2rem;
    min-height: calc(100vh - 70px - 70px);
}

.lab-content-header {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--lab-border);
    position: relative;
    overflow: hidden;
}

.lab-content-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--lab-gold) 0%, var(--lab-primary) 100%);
}

.lab-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lab-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lab-page-title i {
    color: var(--lab-gold);
    font-size: 1.1rem;
}

.lab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.lab-breadcrumb a {
    color: var(--lab-text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-breadcrumb a:hover {
    color: var(--lab-primary);
}

.lab-breadcrumb .active {
    color: var(--lab-primary);
    font-weight: 600;
}

.lab-breadcrumb-separator {
    color: var(--lab-gold);
    font-size: 0.6rem;
}


/* ===== Shared table components ===== */
/* ===== Table ===== */
    .lab-table-wrapper {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--lab-border);
    }

    .lab-table {
        width: 100%;
        margin-bottom: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

        .lab-table thead th {
            background: var(--lab-primary);
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            padding: 1rem 1.25rem;
            border: none;
            white-space: nowrap;
            text-align: right;
        }

            .lab-table thead th:first-child {
                border-radius: 0 12px 0 0;
            }

            .lab-table thead th:last-child {
                border-radius: 12px 0 0 0;
            }

        .lab-table tbody td {
            padding: 1rem 1.25rem;
            vertical-align: middle;
            border-bottom: 1px solid var(--lab-border);
            color: var(--lab-text);
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .lab-table tbody tr {
            transition: all 0.2s;
        }

            .lab-table tbody tr:hover {
                background: var(--lab-hover);
            }

            .lab-table tbody tr:last-child td:first-child {
                border-radius: 0 0 12px 0;
            }

            .lab-table tbody tr:last-child td:last-child {
                border-radius: 0 0 0 12px;
            }

            .lab-table tbody tr:last-child td {
                border-bottom: none;
            }

/* ===== Pagination ===== */
    .lab-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 1.5rem;
        padding: 0;
        list-style: none;
        flex-wrap: wrap;
    }

    .lab-page-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 0.8rem;
        border-radius: 10px;
        border: 1px solid var(--lab-border);
        background: white;
        color: var(--lab-text);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
    }

        .lab-page-btn:hover {
            background: var(--lab-hover);
            color: var(--lab-primary);
            border-color: var(--lab-primary-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(26, 58, 92, 0.1);
        }

        .lab-page-btn.active {
            background: linear-gradient(135deg, var(--lab-primary) 0%, var(--lab-primary-dark) 100%);
            color: white;
            border-color: var(--lab-primary);
            box-shadow: 0 4px 12px rgba(26, 58, 92, 0.2);
        }

        .lab-page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .lab-page-btn i {
            font-size: 0.8rem;
        }

    .lab-page-ellipsis {
        color: var(--lab-text-muted);
        padding: 0 0.5rem;
        font-weight: 600;
    }

/* ===== Loading Overlay ===== */
    .lab-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(4px);
        z-index: 10;
        display: none;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

        .lab-overlay.show {
            display: flex;
        }

    .lab-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid var(--lab-border);
        border-top-color: var(--lab-primary);
        border-radius: 50%;
        animation: labSpin 0.8s linear infinite;
    }

    @keyframes labSpin {
        to {
            transform: rotate(360deg);
        }
    }

/* ===== Responsive ===== */
    @media (max-width: 768px) {
        .lab-card-header {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }

        .lab-table {
            font-size: 0.85rem;
        }

            .lab-table thead th,
            .lab-table tbody td {
                padding: 0.75rem;
            }

        .lab-pagination {
            gap: 0.3rem;
        }

        .lab-page-btn {
            min-width: 36px;
            height: 36px;
            font-size: 0.85rem;
        }
    }

/* ===== Footer ===== */
.lab-footer {
    background: linear-gradient(135deg, var(--lab-primary-dark) 0%, var(--lab-primary) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    border-top: 3px solid var(--lab-gold);
}

.lab-footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lab-footer-logo {
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.lab-footer a {
    color: var(--lab-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.lab-footer a:hover {
    color: white;
}

.lab-footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lab-footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.lab-footer-link:hover {
    color: white;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lab-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--lab-primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lab-primary);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lab-content-header {
    animation: fadeInDown 0.5s ease;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .lab-navbar {
        top: 0;
    }

    .lab-mobile-toggle {
        display: block;
    }

    .lab-nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: linear-gradient(180deg, var(--lab-primary) 0%, var(--lab-primary-dark) 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }

    .lab-nav-menu.show {
        right: 0;
    }

    .lab-nav-item {
        height: auto;
        width: 100%;
    }

    .lab-nav-link {
        height: auto;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .lab-nav-link::after {
        display: none;
    }

    .lab-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border: none;
        border-radius: 0;
        display: none;
        min-width: 100%;
    }

    .lab-nav-item.open .lab-dropdown-menu {
        display: block;
    }

    .lab-dropdown-item {
        color: rgba(255,255,255,0.85);
        padding-right: 2.5rem;
        border-right: none;
    }

    .lab-dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        padding-right: 3rem;
        border-right: none;
    }

    .lab-dropdown-item i {
        color: var(--lab-gold);
    }

    .lab-user-section {
        padding: 0 1rem;
        border-left: none;
    }

    .lab-user-name,
    .lab-user-role {
        display: none;
    }
}

@media (max-width: 576px) {
    .lab-main {
        padding: 1rem;
    }

    .lab-content-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.2rem;
    }

    .lab-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .lab-footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}



