﻿/* =================================================================== */
/* LIGHT MODE                                                          */
/* =================================================================== */

.main-content {
    /* The body background is now handled by Tabler, but you can override if needed */
}

.custom-header {
    background: #fff;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.logo {
    height: 40px;
}

.search-box .form-control {
    border-radius: 20px 0 0 20px;
}

.search-box .input-group-text {
    border-radius: 0 20px 20px 0;
    background: #f8f9fa;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f8f9fa;
    color: #000; /* Ensure icon color is set */
}

    .btn-icon:hover {
        background: grey;
    }

.avatar {
    height: 40px;
    width: 40px;
    object-fit: cover;
}

.main-content {
    /*padding: 1rem;*/
}

.nav-link {
    font-family: 'Avenir', sans-serif;
    font-weight: 500;
}

    .nav-link i {
        color: #000;
    }

@media (min-width: 992px) {
    .d-custom-desktop-flex {
        display: flex !important;
    }

    .d-custom-desktop-block {
        display: block !important;
    }

    .d-custom-mobile {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .d-custom-desktop-flex {
        display: none !important;
    }

    .d-custom-desktop-block {
        display: none !important;
    }

    .d-custom-mobile {
        display: block !important;
    }
}

/* =================================================================== */
/* DARK MODE OVERRIDES                                                 */
/* =================================================================== */

[data-bs-theme="dark"] .custom-header {
    background: var(--tblr-bg-surface);
    border-bottom-color: var(--tblr-border-color);
}

[data-bs-theme="dark"] .logo-light {
    display: none;
}

[data-bs-theme="dark"] .logo-dark {
    display: block;
}

[data-bs-theme="dark"] .search-box .input-group-text,
[data-bs-theme="dark"] .btn-icon {
    background: var(--tblr-bg-surface-secondary);
    color: var(--tblr-body-color);
}

    [data-bs-theme="dark"] .btn-icon:hover {
        background: var(--tblr-bg-surface-hover);
    }

[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .nav-link i {
    color: var(--tblr-body-color) !important;
}
