/* Estrutura Geral */
.sidebar-left {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    background-color: #FFFFFF;
    border-right: 1px solid var(--anti-flash-white);
    z-index: 999 !important;
}

.content {
    margin-left: 250px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0px;
    height: 80px;
    background-color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 998 !important;
}

.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 65px;
    width: 100%;
    background-color: #FFFFFF;
    display: flex;
    justify-content: flex-end;
    padding: 8px 25px;
    z-index: 998 !important;
}

/* Fim Estrutura Geral */

/* Menu */
.menu-item {
    list-style-type: none;
    padding-bottom: 10px;
}

.menu-item a {
    font-weight: 300;
    font-size: 18px;
}

.menu-item-active {
    list-style-type: none;
}

.menu-item-active,
.menu-item-active a {
    color: var(--royal-blue) !important;
}

/* Fim Menu */

/* Abas */
.nav-tabs {
    border: 0px !important;
}

.nav-tabs .nav-line {
    position: absolute !important;
    width: 100% !important;
    top: 39px !important;
    z-index: -1 !important;
    border-bottom: 3px solid var(--anti-flash-white) !important;
}

.nav-tabs .nav-link {
    border: 0px !important;
    border-bottom: 3px solid var(--anti-flash-white) !important;
    color: var(--slate-gray) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    width: 140px !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border: 0px !important;
    border-bottom: 3px solid var(--royal-blue) !important;
    color: var(--raisin-black) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: none !important;
}

/* Fim Abas */

/* Listagens */
.list-item {
    display: flex;
    align-items: center;
    height: 100px;
    background-color: #FFFFFF;
    margin-bottom: 15px;
}

.profile-empty {
    width: 42px;
    height: 42px;
    background-image: url('../img/photo-profile-empty-blue.svg');
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-pagination {
    background-color: var(--seasalt) !important;
    width: auto !important;
    color: var(--royal-blue) !important;
}

.page-number {
    padding: 5px 10px 5px 10px;
}

.page-number-active {
    background-color: var(--royal-blue) !important;
    color: #FFFFFF !important;
}

/* Fim Listagens */

/* Alertas */
.x-alert {
    position: absolute;
    top: 99px;
    right: 19px;
    width: 350px;
    height: 90px;
    background-color: #DAE9FC;
    border-radius: 10px;
    align-items: center;
    display: none;
}

.x-alert .x-alert-icon {
    width: 96px;
    text-align: center;
}

.x-alert .x-alert-text {
    font-size: 18px;
    color: var(--raisin-black);
    font-weight: 500;
}

.load{
      width:200px;
      height:200px;
      position:absolute;
      top:30%;
      left:45%;
      color:red;
      text-align: center;
      z-index: 99;
      display: flex;
      justify-content: center;
 }

/* Fim Alertas */

/* Custom Sidebar Cards and Collapse Styles */
.nav-menu-container {
    padding: 10px 0;
}

.nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-card:hover {
    border-color: var(--royal-blue);
    box-shadow: 0 4px 6px -1px rgba(58, 102, 219, 0.1), 0 2px 4px -1px rgba(58, 102, 219, 0.06);
}

.nav-card-active {
    border-color: var(--royal-blue);
    background-color: var(--ghost-white);
}

.nav-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--charcoal);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s;
}

.nav-card-header:hover {
    background-color: var(--seasalt);
}

.nav-card-header.collapsed .chevron-icon {
    transform: rotate(0deg);
}

.nav-card-header .chevron-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.nav-card-header-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--charcoal);
    width: 100%;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-card-header-link:hover {
    background-color: var(--seasalt);
    color: var(--royal-blue) !important;
}

.nav-card-active .nav-card-header-link {
    color: var(--royal-blue) !important;
}

.nav-card-body {
    padding: 8px 16px 12px 16px;
    background-color: var(--clear-gray);
    border-top: 1px solid var(--anti-flash-white);
}

.nav-sub-item {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--slate-gray);
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 4px;
    text-decoration: none;
}

.nav-sub-item:last-child {
    margin-bottom: 0;
}

.nav-sub-item:hover {
    background-color: var(--alice-blue);
    color: var(--royal-blue) !important;
    padding-left: 16px;
}

.nav-sub-item-active {
    background-color: var(--honeydew);
    color: var(--forest-green) !important;
    font-weight: 500;
}

.sidebar-left, .content, .topbar {
    transition: all 0.3s ease;
}

/* Toggle Button */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--charcoal);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar-toggle-btn:hover {
    background-color: var(--anti-flash-white);
}

/* Retractable Sidebar for Desktop */
@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar-left {
        left: -250px;
    }
    body.sidebar-collapsed .content {
        margin-left: 0 !important;
    }
    body.sidebar-collapsed .topbar {
        left: 0 !important;
    }
}

/* Responsive sidebar for mobile */
@media (max-width: 991px) {
    .sidebar-left {
        left: -250px;
        z-index: 1001 !important;
    }
    
    body.sidebar-mobile-active .sidebar-left {
        left: 0;
    }
    
    .content {
        margin-left: 0 !important;
        padding: 15px !important;
    }
    
    .topbar {
        left: 0 !important;
        padding: 0 15px !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.4);
        z-index: 1000 !important;
    }
    
    body.sidebar-mobile-active .sidebar-overlay {
        display: block;
    }
}

