/* ==========================================================================
   TAMBUROTEKA - Main Stylesheet
   ==========================================================================
   Table of Contents:
   1. Base & Reset
   2. Layout & Structure
   3. Navigation (Navbar)
   4. Sidebar
   5. Typography
   6. Buttons
   7. Forms
   8. Cards
   9. Tables
   10. Badges
   11. Dropdowns
   12. Pagination
   13. Avatars
   14. Icons
   15. Sheet/Grid Components
   16. Scrollers
   17. Category Boxes
   18. Modals & Overlays
   19. Loaders & Progress
   20. Blazor Error UI
   21. Utility Classes
   22. Animations
   23. Media Queries
   24. Validation
   25. Tab
   26. Login/Registration
   ========================================================================== */



/* ==========================================================================
   1. Base & Reset
   ========================================================================== */

html, body {
    font-family: Arial !important;
    overflow-y: auto !important;
}

/* Mobile devices - use cursive font */
@media (max-width: 991.98px) {
    html, body {
        font-family: Arial !important;
    }

    .mobile-navbar,
    .mobile-footer-nav,
    .mobile-profile-menu {
        font-family: Arial !important;
    }
}

body, button {
    /* font-family: Muse Sans, Inter, Helvetica neue, Helvetica, sans-serif; */
}

h1:focus {
    outline: none;
}


a, .btn-link {
    color: #865D36;
}

code {
    color: #93785B;
}

hr {
    border-color: #3E362E !important;
    opacity: 0.8;
}


/* ==========================================================================
   2. Layout & Structure
   ========================================================================== */

.x-body {
    background: linear-gradient(to bottom, rgba(92, 77, 66, 0.2) 0%, rgba(92, 77, 66, 0.4) 100%), url(../img/hero6.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    font-family: Arial !important;
}

.wrapper {
    align-items: stretch;
    background: #222e3c;
    display: flex;
    width: 100%;
}

.content {
    padding-top: 1.1rem;
}
/* Mobile devices - content padding */
@media (max-width: 991.98px) {
    .content {
        direction: ltr !important;
        flex: 1 !important;
        max-width: 100vw !important;
        padding: 0.1rem 0.1rem .15rem !important;
        width: 100vw !important;
    }
}
 
.tab-content {
    background-color: white !important;
}


/* ==========================================================================
   3. Navigation (Navbar)
   ========================================================================== */

/* Mobile Organization Switcher - Override styles for mobile profile menu */
.mobile-org-switcher-wrapper {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-org-switcher-wrapper .org-switcher-item {
    list-style: none !important;
}

.mobile-org-switcher-wrapper .nav-flag {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px !important;
    background: #f8f9fc !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    color: #1a1a2e !important;
    font-size: 0.95rem;
    text-decoration: none !important;
}

.mobile-org-switcher-wrapper .nav-flag:hover,
.mobile-org-switcher-wrapper .nav-flag:active {
    background: #eef2ff !important;
    border-color: #667eea !important;
}

/* Force show the organization name text on mobile */
.mobile-org-switcher-wrapper .nav-flag span,
.mobile-org-switcher-wrapper .nav-flag .d-none,
.mobile-org-switcher-wrapper .nav-flag .d-md-inline {
    display: inline !important;
    margin-left: 8px;
}

.mobile-org-switcher-wrapper .dropdown-menu {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    width: calc(100% - 32px) !important;
    max-width: none !important;
    top: auto !important;
    margin-top: 8px;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    z-index: 1050 !important;
}

.mobile-org-switcher-wrapper .dropdown-item {
    padding: 12px 16px !important;
    font-size: 0.95rem;
}

/* Hide desktop footer on mobile devices */
@media (max-width: 991.98px) {
    .footer {
        display: none !important;
    }
}

.x-navbar {
    background: linear-gradient(120deg, #AC8968 50%, #e3bb95) !important;
    height: 62px !important;
}

.navbar, .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #ac8968 !important;
    color: #865d36 !important;
}

.navbar .avatar {
    margin-bottom: -30px !important;
    margin-top: -15px !important;
}

.nav-link {
    font-size: 16px !important;
    color: #A69080 !important;
}

    .nav-link.active {
        border-top: solid 3px #AC8968 !important;
        background-color: white !important;
        border-color: var(--bs-nav-tabs-link-active-border-color);
        color: var(--bs-nav-tabs-link-active-color);
        font-size: 16px !important;
        font-weight: 900;
    }

.nav-tabs .nav-item.show .nav-tabs {
    border-top: solid 3px #AC8968 !important;
    background-color: #f5f7fb !important;
    border-color: var(--bs-nav-tabs-link-active-border-color);
    color: var(--bs-nav-tabs-link-active-color);
    font-size: 18px;
    font-weight: 900;
}

.nav-tabs .nav-link {
    border-left: solid 1px rgb(222, 226, 230) !important;
    font-size: 15px !important;
}

.hamburger, .hamburger:after, .hamburger:before {
    background: #3E362E !important;
    border-radius: 1px;
    content: "";
    cursor: pointer;
    display: block;
    height: 3px;
    transition: background .1s ease-in-out, color .1s ease-in-out;
    width: 24px;
}


/* ==========================================================================
   4. Sidebar
   ========================================================================== */

.sidebar {
    direction: ltr;
    max-width: 230px !important;
    min-width: 230px !important;
}

.sidebar.collapsed {
    margin-left: -182px !important;
}

.sidebar.collapsed .sidebar-icon {
    margin-right: 0;
    width: 100%;
    text-align: end !important;
    font-size: 1.2rem;
    padding-right: 8px !important;
    color: white !important;
}

.sidebar-link, a.sidebar-link {
    font-size: 11px !important;
    background: #AC8968 !important;
    border-left: 3px solid transparent;
    color: rgba(233, 236, 239, .5);
    cursor: pointer;
    display: block;
    font-weight: 400;
    padding: .625rem 1.625rem;
    position: relative;
    text-decoration: none;
    transition: background .1s ease-in-out;
}

.sidebar-link:hover {
    background: #AC8968;
    border-left-color: transparent;
}

.sidebar-active {
    background-color: black !important;
}

.sidebar-item {
    background: #AC8968;
}

.sidebar-main-item {
    vertical-align: middle !important;
    color: white !important;
    font-weight: 600;
}

.sidebar-sub-item {
    vertical-align: middle !important;
    color: white !important;
    font-weight: 400;
    margin-left: 14px;
}
.x-sidebar-link-deactive, a.x-sidebar-link-deactive {
    background: #AC8968 !Important;
    font-weight: 600;
    font-size: 11px !important;
    border-left: 3px solid transparent;
    color: rgba(233, 236, 239, .5);
    cursor: pointer;
    display: block;
    padding: .625rem 1.625rem;
    position: relative;
    text-decoration: none;
    transition: background .1s ease-in-out;
}
    .x-sidebar-link-deactive:hover {
        background: #AC8968;
        border-left-color: transparent;
    }
.x-sidebar-link-active {
    background-color: black !Important;
    font-weight: 600;
    font-size: 11px !important; 
    border-left: 3px solid transparent;
    color: rgba(233, 236, 239, .5);
    cursor: pointer;
    display: block; 
    padding: .625rem 1.625rem;
    position: relative;
    text-decoration: none;
    transition: background .1s ease-in-out;
}
    .x-sidebar-link-active:hover {
        text-decoration:unset!important;
        background: #AC8968;
        border-left-color: transparent;
    }
.collapse-arrow {
    display: inline-block;
    width: 1.1rem;
    margin-right: .35rem;
    font-weight: 600;
}

.sidebar-icon {
    display: inline-block;
    width: 1.2rem;
    margin-right: .5rem;
    text-align: center;
    font-size: 1rem;
}

.sidebar-sub-icon {
    display: inline-block;
    width: 1rem;
    margin-right: .5rem;
    margin-left: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

.arrow-space {
    display: inline-block;
    width: 1.1rem;
    margin-right: .35rem;
}

.sidebar-main-item {
    vertical-align: middle;
}

.sidebar-sub-item {
    vertical-align: middle;
}

/* Collapsed sidebar styles */
.sidebar.collapsed {
    width: 60px !important;
}

    .sidebar.collapsed .sidebar-icon {
        margin-right: 0;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
    }

    .sidebar.collapsed .sidebar-link {
        padding: 0.75rem 0.5rem !important;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .sidebar.collapsed .sidebar-brand {
        padding: 1rem 0.5rem !important;
    }

    /* Hide text when collapsed */
    .sidebar.collapsed .sidebar-main-item,
    .sidebar.collapsed .sidebar-sub-item,
    .sidebar.collapsed .collapse-arrow {
        display: none;
    }

    /* Ensure tooltips work for collapsed sidebar */
    .sidebar.collapsed [title]:hover::after {
        content: attr(title);
        position: absolute;
        left: 60px;
        top: 0;
        background: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        white-space: nowrap;
        z-index: 1000;
        margin-left: 5px;
    }
/* ==========================================================================
   5. Typography
   ========================================================================== */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: #865d36 !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin-bottom: .5rem !important;
    margin-top: 0 !important;
}

    h2.cat-box-title {
        margin-top: 0px;
        background: #865d36;
        color: white !important;
        float: left;
        padding: 1px 9px 1px 3px;
        font-size: 16px;
        font-family: Arial !important;
        text-transform: uppercase;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 6;
        height: 31px;
    }

.no-title {
    color: #865d36 !important;
}

.txt-color-dark {
    color: #865d36 !important;
}

.text-primary {
    color: #865D36 !important;
}

.text-secondary {
    color: #AC8968 !important;
}

.text-warning, .text-accent {
    color: #93785B !important;
}

.text-bg-light {
    color: #AC8968 !important;
}

.accent-primary {
    color: #93785B !important;
}


/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #93785B;
}

.btn-primary {
    color: #fff;
    background-color: #865D36;
    border-color: #3E362E;
}

.btn-secondary {
    border: 0px !important;
    margin: 3px !important;
    background-color: #AC8968 !important;
}

.btn-add {
    color: #fff !important;
    background-color: #93785B !important;
    border-color: #865D36 !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    width: auto !important;
    height: auto !important;
}

.btn-add:hover {
    color: #fff !important;
    background-color: #865D36 !important;
    border-color: #865D36 !important;
}

.btn-add:focus, .btn-add.focus {
    box-shadow: 0 0 0 0.2rem rgba(134, 93, 54, 0.5);
}

.btn-add.disabled, .btn-add:disabled {
    color: #fff !important;
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.btn-add:not(:disabled):not(.disabled):active,
.btn-add:not(:disabled):not(.disabled).active,
.show > .btn-add.dropdown-toggle {
    color: #fff !important;
    background-color: #865D36 !important;
    border-color: #865D36 !important;
}

.btn-add:not(:disabled):not(.disabled):active:focus,
.btn-add:not(:disabled):not(.disabled).active:focus,
.show > .btn-add.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(134, 93, 54, 0.5);
}

.btn-info {
    color: #fff !important;
    background-color: #93785B !important;
    border-color: #865D36 !important;
    border-radius: 12px !important;
    font-weight: 400 !important;
    width: auto !important;
    height: auto !important;
}

.btn-success {
    color: #fff !important;
    background-color: #8968AC !important;
    border-color: #68AC89 !important;
    width: 100px;
    height: 44px;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: 0px !important;
}

.btn-success:hover {
    color: #fff !important;
    background-color: #cb6fa9 !important;
    border-color: #cb6fa9 !important;
    border-radius: 12px !important;
    width: 100px;
    height: 44px;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: 0px !important;
}

.btn-success-grid {
    color: #fff !important;
    background-color: #8968AC !important;
    border-color: #68AC89 !important;
    border-radius: 12px !important;
    width: 82px;
    height: 36px;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 0px !important;
}

.btn-success-grid:hover {
    color: #fff !important;
    background-color: #cb6fa9 !important;
    border-color: #cb6fa9 !important;
    border-radius: 12px !important;
    width: 82px;
    height: 36px;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 0px !important;
}

.btn.btn-es-primary {
    background-color: #be3157;
    color: #fff;
}

.btn.btn-es-primary:hover {
    background-color: #912b47;
    color: #fff;
}

.btn-outline {
    border: 2px solid !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.875rem !important;
}

.btn-outline:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-link {
    color: #865D36 !important;
}

.tab-content a, .btn-link {
    color: #865D36 !important;
}

.add-grid-btn {
    font-weight: 900 !important;
    color: #ac8968 !important;
    font-size: 16px !important;
}

.return-btn {
    color: #866256 !important;
    width: 220px !important;
    height: 39px !important;
    margin-right: 10px !important;
}

.return-nav {
    color: #866256 !important;
    width: 130px !important;
    height: 39px !important;
    margin-right: 10px !important;
    text-align: end !important;
    margin-bottom: 5px !important;
}


/* ==========================================================================
   7. Forms
   ========================================================================== */

.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    background-color: #A69080;
    border: 0.5px solid #AC8968 !important;
    border-radius: var(--bs-border-radius);
    color: #865d36 !important;
    display: block;
    font-size: 0.875rem !important;
    font-weight: 400;
    line-height: 1.4;
    padding: .2rem .65rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    width: 100%;
}

.form-control:focus {
    background-color: #fff !important;
    border-color: #AC8968 !important;
    box-shadow: 0 0 0 0.2rem rgba(172, 137, 104, 0.25) !important;
    color: #495057 !important;
    outline: 0 !important;
    z-index: 2 !important;
}

.form-control-sm {
    font-size: 0.75rem !important;
    padding: .15rem .5rem;
}

.form-select {
    --bs-form-select-bg-img: url(data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%233E362E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #A69080;
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-position: right .65rem center;
    background-repeat: no-repeat;
    background-size: 14px 10px;
    border: 0.5px solid #AC8968 !important;
    border-radius: var(--bs-border-radius);
    color: #865d36 !important;
    display: block;
    font-size: 0.875rem !important;
    font-weight: 400;
    line-height: 1.4;
    padding: .2rem 2rem .2rem .65rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    width: 100%;
}

.form-select:focus {
    border-color: #AC8968 !important;
    box-shadow: 0 0 0 0.2rem rgba(172, 137, 104, 0.25) !important;
    outline: 0 !important;
    z-index: 2 !important;
}

.form-select-sm {
    font-size: 0.75rem !important;
    padding: .15rem 1.75rem .15rem .5rem;
}

.form-check {
    color: #865d36 !important;
    padding-left: 1.25rem;
    min-height: 1.25rem;
}

.form-check-input {
    width: 0.875rem;
    height: 0.875rem;
    margin-top: 0.15rem;
}

.form-label {
    color: #865d36 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}


/* ==========================================================================
   8. Cards
   ========================================================================== */

.card {
    box-shadow: 0 0 .875rem 0 rgba(62, 54, 46, 0.15) !important;
    margin-bottom: 24px !important;
    background-color: #A69080;
}

.card-header {
    color: #865d36 !important;
}

.card-body p {
    color: #865d36 !important;
}


/* ==========================================================================
   9. Tables
   ========================================================================== */

.table tbody, .table td, .table tfoot, .table th, .table thead, .table tr,
.table > :not(:last-child) > :last-child > * {
    border-color: #AC8968 !important;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: #865d36 !important;
    --bs-table-bg-state: rgba(134, 93, 54, 0.05) !important;
    transition: all 0.3s ease !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-color-state: #865d36 !important;
    --bs-table-bg-state: rgba(172, 137, 104, 0.03) !important;
}

table th, tr td {
    color: #865d36 !important;
}

.bb-table-sticky {
    color: #865d36 !important;
}


/* ==========================================================================
   10. Badges
   ========================================================================== */

.badge {
    font-size: 0.575rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    color: #AC8968 !important;
}

.badge:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.badge.bg-success {
    background-color: #8968AC !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: #AC8968 !important;
    color: white !important;
}

.badge.bg-primary {
    background-color: #865d36 !important;
    color: white !important;
}

.badge.bg-secondary {
    background-color: #93785B !important;
    color: white !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #865d36 !important;
    border: 1px solid rgba(134, 93, 54, 0.2) !important;
}

.badge-primary {
    background-color: #865D36 !important;
}


/* ==========================================================================
   11. Dropdowns
   ========================================================================== */

.dropdown-item {
    color: #865D36 !important;
}

.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: #dee2e6;
}

.member-dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color .15s ease, color .15s ease;
}

.dropdown-menu .member-dropdown-item:hover {
    background-color: #efe8f7;
}

.member-dropdown-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.member-tooltip {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 14px;
    cursor: pointer;
}

.member-tooltip-delete {
    color: #dc3545;
}

.member-dropdown-item:hover .icon-member-delete {
    color: #b52d3a;
}


/* ==========================================================================
   12. Pagination
   ========================================================================== */

.page-link {
    color: #865d36 !important;
    border-color: rgba(134, 93, 54, 0.3) !important;
    transition: all 0.3s ease !important;
}

.page-link:hover {
    color: white !important;
    background-color: #AC8968 !important;
    border-color: #AC8968 !important;
    transform: translateY(-1px) !important;
}

.active > .page-link, .page-link.active {
    z-index: 3 !important;
    color: white !important;
    background-color: #865d36 !important;
    border-color: #865d36 !important;
    box-shadow: 0 2px 8px rgba(134, 93, 54, 0.3) !important;
}

.bb-grid-pagination-text {
    color: #865d36 !important;
    font-weight: 500 !important;
}


/* ==========================================================================
   13. Avatars
   ========================================================================== */

.avatar {
    border-radius: 50%;
    display: block;
    height: auto;
    margin: 0 auto;
    width: 100%;
}

.avatar.avatar-large {
    max-height: 150px;
    max-width: 150px;
}


/* ==========================================================================
   14. Icons
   ========================================================================== */

.bi, .icon {
    transition: all 0.2s ease !important;
}

.bi:hover, .icon:hover {
    transform: scale(1.1) !important;
}

.icon-member-edit,
.icon-member-delete {
   /* font-size: 16px;*/
    display: inline-block;
    cursor: pointer;
}

.icon-member-edit {
    color: #8968AC;
}

.icon-member-delete {
    color: #dc3545;
}

.icon-excel-export {
    color: green !important;
}


/* ==========================================================================
   15. Sheet/Grid Components
   ========================================================================== */

.grid-sheet-icon {
    width: 60px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.grid-sheet-icon:hover {
    border: solid 2px #AC8968 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 16px rgba(172, 137, 104, 0.4) !important;
}

.grid-sheet-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #865d36 !important;
    cursor: pointer;
}

.grid-sheet-name:hover {
    color: #AC8968 !important;
    text-decoration: underline !important;
    transform: translateX(4px) !important;
}

.grid-sheet-other {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #865d36 !important;
    margin-bottom: 8px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
}

.grid-sheet-other:hover {
    background-color: rgba(134, 93, 54, 0.1) !important;
}

.grid-sheet-deonica {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #865d36 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.grid-sheet-deonica:hover {
    color: #AC8968 !important;
    text-decoration: underline !important;
}

.grid-sheet-item {
    font-size: 18px !important;
    font-weight: 400 !important;
}

.sheet-icon-container {
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 50px;
}

.sheet-icon {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 0px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sheet-icon:hover {
    border-color: #AC8968;
    transform: scale(1.05);
}

.icon-overlay {
    position: absolute;
    top: 0;
    left: 3px;
    right: -7px;
    bottom: -10px;
    background: rgba(134, 93, 54, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.sheet-icon-container:hover .icon-overlay {
    opacity: 0.4;
}

.sheet-details {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.sheet-details-header {
    font-size: 20px !important;
}


/* ==========================================================================
   16. Scrollers
   ========================================================================== */

.right-scroller {
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.event-right-scroller {
    max-height: 35vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-gutter: stable;
}


/* ==========================================================================
   17. Category Boxes
   ========================================================================== */

.cat-box {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    border-top: 5px solid #865d36;
    position: relative;
}

.cat-box-around-world {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 15px;
    margin-right: 15px;
    border-top: 5px solid #865d36;
    position: relative;
}


/* ==========================================================================
   18. Modals & Overlays
   ========================================================================== */

.modal {
    z-index: 3000 !important;
}

.modal-backdrop {
    z-index: 2999 !important;
}

.toast {
    z-index: 3100 !important;
}

.tooltip {
    z-index: 3200 !important;
}

.popover {
    z-index: 3150 !important;
}


/* ==========================================================================
   19. Loaders & Progress
   ========================================================================== */

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #865D36;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Učitavanje...");
}

.loading-section {
    min-height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* TT Loading Wrapper */
.tt-loading-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(to bottom, rgba(92, 77, 66, 0.2) 0%, rgba(92, 77, 66, 0.4) 100%), url(../img/hero6.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: #f5f7ff;
    font-family: Arial !important;
    z-index: 10;
}

.tt-loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 40px rgba(0, 0, 0, 0.7);
}

.tt-loading-note {
    width: 48px;
    height: 48px;
    color: #ffcf33;
    filter: drop-shadow(0 0 8px rgba(255, 207, 51, 0.6));
    animation: tt-note-bounce 1.4s ease-in-out infinite;
}

.tt-loading-bar {
    width: 220px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}

.tt-loading-bar-fill {
    position: absolute;
    inset: 0;
    width: 40%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffcf33, #ff7f50);
    animation: tt-bar-move 1.2s ease-in-out infinite;
}

.tt-loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    text-align: center;
}

.tt-loading-title {
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .85rem;
    opacity: .9;
}

.tt-loading-subtitle {
    font-size: .8rem;
    opacity: .7;
}


/* ==========================================================================
   20. Blazor Error UI
   ========================================================================== */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMob3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}


/* ==========================================================================
   21. Utility Classes
   ========================================================================== */

/* Background Colors */
.bg-primary {
    background-color: #865D36 !important;
}

.bg-warning, .bg-accent {
    background-color: #93785B !important;
}

.bg-accent-primary {
    background-color: #93785B !important;
}

.bg-success {
    color: #865d36 !important;
}

/* Border Colors */
.border-primary {
    border-color: #865D36 !important;
}

/* Alert Styles */
.alert-primary {
    background-color: rgba(134, 93, 54, 0.1) !important;
    border-color: #865D36 !important;
    color: #865D36 !important;
}

/* Breadcrumbs */
.breadcrumb a {
    font-weight: 700 !important;
    color: #865d36 !important;
}

.breadcrumb-item.active {
    color: #865d36 !important;
}

/* List Group Items */
.list-group-item::before {
    content: "•";
    color: #93785B;
    margin-right: 8px;
    font-weight: bold;
}

/* Grid Header */
.bg-primary.bg-opacity-10 {
    background-color: rgba(134, 93, 54, 0.1) !important;
    color: #865d36 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #AC8968 !important;
}

.bg-primary.bg-opacity-10 th {
    padding: 1rem 0.75rem !important;
    vertical-align: middle !important;
}


/* ==========================================================================
   22. Animations
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.5s ease-in-out !important;
}

.slide-up {
    animation: slideUp 0.6s ease-out !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tt-note-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

@keyframes tt-bar-move {
    0% { transform: translateX(-60%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(120%); }
}


/* ==========================================================================
   23. Media Queries
   ========================================================================== */

/* Small screens - max 576px */
@media (max-width: 576px) {
    .grid-sheet-name {
        font-size: 14px !important;
    }

    .grid-sheet-other {
        font-size: 13px !important;
    }

    .dropdown-menu,
    .bb-dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        min-width: auto !important;
        max-width: calc(100vw - 20px) !important;
    }

    .search-filters-section .dropdown-menu,
    .search-filters-section .bb-dropdown-menu {
        z-index: 2002 !important;
        position: fixed !important;
    }
}

/* Medium screens - max 768px */
@media (max-width: 768px) {
    .grid-sheet-icon {
        width: 40px !important;
    }

    .grid-sheet-name {
        font-size: 16px !important;
    }

    .grid-sheet-other {
        font-size: 14px !important;
    }

    .badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    .card {
        margin-bottom: 16px !important;
    }

    .dropdown-menu,
    .bb-dropdown-menu {
        min-width: 250px !important;
        max-height: 300px !important;
        left: 0 !important;
        right: auto !important;
    }

    .search-filters-section .dropdown-menu,
    .search-filters-section .bb-dropdown-menu {
        z-index: 2001 !important;
    }
}

/* Sidebar responsive - max 991.98px */
@media (min-width: 1px) and (max-width: 991.98px) {
    .sidebar {
        margin-left: -210px !important;
        max-width: 210px !important;
        min-width: 210px !important;
    }
}

/* Large screens - min 992px */
@media (min-width: 992px) {
    .content {
        padding: 1.5rem 1rem 2rem 2rem !important;
    }
}

/* Extra large screens - min 1200px */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1800px !important;
    }
}

/* ==========================================================================
   24. Validation
   ========================================================================== */

.validation-message{
    color:red!important;
}
/* ==========================================================================
   25. Tab
   ========================================================================== */

.tab-pane {
    background-color: #f6f7fa !important;
}

/* ==========================================================================
   26. Login/Registration
   ========================================================================== */
.log-reg-title {
    color:white !important;
}

.lr-x-card {
    height: 420px !important;
}