/* ========================================
   Gasify ERP - Estilização Moderna
   Baseado no padrão LocControl ERP
   Utiliza Tabler Framework
   ======================================== */

/* === Custom Loading Overlay for Login === */
.login-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-bs-theme=dark] .login-loading-overlay {
    background: rgba(29, 39, 57, 0.95);
}

.login-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(var(--tblr-primary-rgb), 0.1);
    border-top-color: var(--tblr-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.login-loading-text {
    color: var(--tblr-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Easy Alert Improvements === */
[easy-alert] {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 10000;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    [easy-alert] {
        left: auto;
        right: 1rem;
    }
}

.page-center [easy-alert] {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 9999;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .page-center [easy-alert] {
        left: auto;
        right: 1rem;
    }
}

/* Alert animations */
[easy-alert] .alert {
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === Configuração do Theme Tabler === */
.dropdown-menu {
    --tblr-dropdown-link-hover-bg: rgb(25, 165, 250);
    --tblr-dropdown-link-hover-color: white;
    --tblr-dropdown-link-active-bg: rgb(25, 165, 250);
    --tblr-dropdown-link-active-color: white;
}

[data-bs-theme=light] {
    --tblr-primary: #19A5FA;
    --tblr-primary-rgb: 25, 165, 250;
}

[data-bs-theme=dark] {
    --tblr-primary: #19A5FA;
    --tblr-primary-rgb: 25, 165, 250;
}

/* === Navbar Vertical (Sidebar) === */
.navbar-vertical {
    background-color: var(--tblr-navbar-bg);
}

/* Logo in vertical sidebar */
.navbar-vertical .navbar-brand-autodark {
    padding: 0.75rem 0;
    margin: 0;
    display: block;
}

.navbar-vertical .navbar-brand-image {
    max-width: 100%;
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

/* Padding for nav items in vertical layout */
.navbar-nav.pt-lg-3 {
    padding-top: 1rem !important;
}

/* Navbar horizontal layout logo */
.navbar-brand-autodark .navbar-brand-image {
    max-width: 100%;
    height: 32px;
    width: auto;
}

/* Avatar with initials */
.avatar {
    background-color: var(--tblr-primary);
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Search bar padding in vertical layout */
.navbar-collapse.ps-8 {
    padding-left: 2rem !important;
}

/* Hide theme toggle icons */
.hide-theme-dark {
    display: none;
}

[data-bs-theme=dark] .hide-theme-dark {
    display: inline-flex;
}

[data-bs-theme=dark] .hide-theme-light {
    display: none;
}

/* Larger icons in nav */
.fs-2 {
    font-size: 1.25rem !important;
}

/* === Layout Navbar Vertical === */
.navbar-vertical.navbar-expand-lg {
    width: 15rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.navbar-vertical .navbar {
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
    justify-content: flex-start;
    padding: 0;
}

.navbar-vertical .navbar-collapse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1;
    min-height: 100%;
}

.navbar-vertical .navbar-nav {
    flex-direction: column;
    flex-grow: 1;
}

/* === Page Wrapper com Sidebar === */
.page[data-sidebar="vertical"] {
    padding-left: 15rem;
}

@media (max-width: 991.98px) {
    .navbar-vertical.navbar-expand-lg {
        left: -15rem;
    }
    
    .navbar-vertical.navbar-expand-lg.show {
        left: 0;
    }
    
    .page[data-sidebar="vertical"] {
        padding-left: 0;
    }
}

/* === Logo ERP === */
.logo-erp {
    height: 32px;
    background: url('/Images/logo-gasify.png') no-repeat center;
    background-size: contain;
    width: 100%;
}

/* === Navbar Footer (User info no sidebar) === */
.navbar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--tblr-border-color);
}

/* === Active Nav Items === */
.nav-item.active > .nav-link,
.nav-link.active {
    color: var(--tblr-primary);
    background-color: rgba(var(--tblr-primary-rgb), 0.06);
}

/* === Dropdown Menu in Sidebar === */
.navbar-vertical .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    margin: 0;
    padding-left: 2rem;
}

.navbar-vertical .dropdown-toggle::after {
    margin-left: auto;
}

.navbar-vertical .dropdown-item {
    padding: 0.5rem 1rem;
}

.navbar-vertical .dropdown-item.active {
    color: var(--tblr-primary);
    background-color: transparent;
    font-weight: 500;
}

/* === Responsividade === */
@media (max-width: 767px) {
    .table-responsive .dropdown {
        position: static !important;
    }

    .autocomplete-container {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .table-responsive {
        overflow-x: visible;
    }
}

/* === Componentes de Tags === */
.tag-item {
    position: relative;
    margin-bottom: 10px;
    padding-right: 25px;
}

.copy-icon {
    display: none;
    margin-left: 5px;
    cursor: pointer;
    vertical-align: middle;
}

.tag-item:hover .copy-icon {
    display: inline-block;
}

ul.tag-list {
    display: inline-block !important;
    margin-bottom: 0;
    padding-left: 0;
}

.tag {
    background: #f0f0f0;
    color: #333333;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    margin: 3px;
}

    .tag .close-item {
        background: transparent;
        border: none;
        color: #666666;
        font-size: 12px;
        cursor: pointer;
        padding: 0;
        margin-left: 8px;
        transition: color 0.3s;
    }

        .tag .close-item:hover {
            color: #ffffff;
        }

    .tag .icon-close {
        font-size: 12px;
        vertical-align: middle;
    }

tags-input .input {
    width: 200px;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
}

    tags-input .input::placeholder {
        color: #999999;
    }

/* === Autocomplete === */
.autocomplete-container {
    position: relative;
}

div.autocomplete {
    border: 1px solid black;
    border-radius: 4px;
    overflow: hidden;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    background-color: #f5f5f5;
    margin-bottom: 0 !important;
    background-color: white;
}

    .suggestion-item a {
        text-decoration: none;
        color: black;
    }

    .suggestion-item:hover {
        background-color: #19A5FA;
        color: white;
    }

        .suggestion-item:hover a {
            color: white;
        }

.autocomplete-item .text-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* === Tabelas === */
.table-sort {
    border: inherit;
    display: table-cell;
    width: inherit;
}

.p-inherit {
    padding-left: inherit;
    padding-right: inherit;
}

.custom-table {
    border-collapse: collapse;
    width: 100%;
}

    .custom-table th, .custom-table td {
        border-top: 1px solid #dee2e6;
        padding: 8px;
        vertical-align: middle;
    }

    .custom-table td, .custom-table th {
        border-left: none;
        border-right: none;
    }

    .custom-table thead th {
        border-top: none;
        background-color: #f8f9fa;
        font-weight: bold;
        text-align: center;
    }

/* === Ícones de Ação === */
.remove-icon {
    color: gray;
    cursor: pointer;
}

    .remove-icon:hover {
        color: red;
    }

/* === Input Groups === */
.input-group-custom .form-control {
    border-right: 1px solid var(--tblr-border-color);
    border-radius: 0.25rem;
}

    .input-group-custom .form-control.custom-border {
        border-right: 1px solid var(--tblr-border-color);
    }

    .input-group-custom .form-control.selected-client {
        border-right: 0;
    }

.input-group-flat .form-control:focus {
    border-right: 0;
}

/* === Drop Zone para Upload === */
.drop-zone {
    border: 2px dashed #19A5FA;
    height: 160px;
}

/* === Botões Customizados === */
.custom-dropdown {
    --tblr-btn-border-color: transparent;
    --tblr-btn-hover-border-color: transparent;
    --tblr-btn-active-border-color: transparent;
    --tblr-btn-color: #fcfdfe;
    --tblr-btn-bg: #19A5FA;
    --tblr-btn-hover-color: #fcfdfe;
    --tblr-btn-hover-bg: rgba(25, 165, 250, .8);
    --tblr-btn-active-color: #fcfdfe;
    --tblr-btn-active-bg: rgba(25, 165, 250, .8);
    --tblr-btn-disabled-bg: #19A5FA;
    --tblr-btn-disabled-color: #fcfdfe;
    --tblr-btn-box-shadow: 0 1px 1px rgba(24, 36, 51, 0.06);
}

.custom-button-option:hover {
    color: var(--tblr-btn-hover-color);
    background-color: var(--tblr-btn-hover-bg);
    border-color: var(--tblr-btn-hover-border-color);
}

.custom-button-delete-option:hover {
    color: white !important;
}

    .custom-button-delete-option:hover .icon {
        color: white !important;
    }

.custom-button-option:active {
    color: var(--tblr-btn-active-color);
    background-color: var(--tblr-btn-active-bg);
    border-color: var(--tblr-btn-active-border-color);
}

.custom-button-option:disabled {
    color: var(--tblr-btn-disabled-color);
    background-color: var(--tblr-btn-disabled-bg);
    border-color: var(--tblr-btn-disabled-bg);
    box-shadow: none;
}

/* === Listas === */
ul {
    list-style: none;
}

.dropdown button,
.dropdown .dropdown-menu a {
    cursor: pointer;
}

/* === Cards === */
.card-header.card-header-custom {
    padding-bottom: 0;
}

.input-custom {
    margin-right: 1rem;
    margin-bottom: .5rem;
}

.linha-em-branco {
    min-height: 1.25em;
    white-space: pre-wrap;
}

/* === Árvore de Navegação === */
.nav.abn-tree {
    display: inherit !important;
}

ul.abn-tree li.abn-tree-row {
    padding: 0.2rem !important;
    border-bottom: var(--tblr-border-width) solid var(--tblr-border-color-translucent);
}

ul.nav.abn-tree .level-1 .indented {
    font-weight: bold;
}

ul.nav.abn-tree .level-2 .indented.fa-minus + .tree-label {
    font-weight: bold;
}

/* === Input com Sufixo === */
.input-suffix-wrapper {
    position: relative;
}

    .input-suffix-wrapper input {
        padding-right: 90px;
    }

.occurrences-text {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* === Switch Customizado === */
.switch-cr {
    margin-bottom: 0px !important;
    margin-top: 20px !important;
}

.switch-sem-margin .md-container {
    margin-left: 0 !important;
    margin-right: 5px;
}

/* === Badges Personalizados === */
.badge-soft-yellow {
    background-color: #fff3cd;
    color: #856404;
}

.badge-soft-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-soft-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-soft-muted {
    background-color: #f0f0f0;
    color: #6c757d;
}

/* === Utilities === */
.d-flex {
    display: flex !important;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: end;
}

.justify-start {
    justify-content: start;
}

.flex-col {
    flex-direction: column;
}

.justRight {
    display: flex;
    justify-content: right;
}

/* === Grid Layouts === */
.grid-items-length {
    border: 1px solid rgba(192, 192, 192, .5);
    display: grid;
    border-radius: 8px;
    grid-template-columns: 1fr 120px 120px;
    margin: 8px 0;
    align-items: center;
    padding: 5px 8px;
}

.grid-item-centrocusto {
    border: 1px solid #00000012;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 120px;
    margin: 15px 0;
    align-items: center;
    padding: 10px 8px;
}

.grid-list {
    border: 1px solid #00000012;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    margin: 8px 0;
    padding: 5px 5px;
}

.grid-cad-empresas {
    border: 1px solid #00000012;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    margin: 15px 0;
    align-items: center;
    padding: 10px 10px;
}

.grid-cad-clientes {
    border: 1px solid #00000012;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr;
    margin: 15px 0;
    align-items: center;
    padding: 10px 10px;
}

/* === Form Controls === */
.form-group label {
    font-weight: 400;
    display: inline-block;
    max-width: 100%;
}

.form-group input,
.form-control {
    border-color: #b0b0b0;
    border-radius: 6px;
    height: 40px;
}

.form-control.input--default {
    margin-left: 0;
}

.has-error {
    border-color: #F00;
}

.has-warning {
    border-color: #FA0;
}

/* === Paginação === */
.footer-pagination {
    display: block;
    padding-bottom: 30px;
    gap: 10px;
}

/* ========================================
   LOGIN PAGE STYLES - COVER LAYOUT
   Baseado em: https://preview.tabler.io/sign-in-cover.html
   ======================================== */

/* Login Page Background */
.page-center {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

/* Container for 2 columns */
.page-center .container-tight {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Row with no gap */
.page-center .row.g-0 {
    margin: 0;
}

/* Left Column - Cover Image */
.page-center .col-lg:first-child {
    padding: 0;
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-bs-theme=dark] .bg-cover {
    opacity: 0.9;
}

/* Right Column - Form */
.page-center .col-lg:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
}

[data-bs-theme=dark] .page-center .col-lg:last-child {
    background-color: #1d2939;
}

/* Card without extra styling */
.page-center .card {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.page-center .card-body {
    padding: 2rem 0;
    max-width: 25rem;
    margin: 0 auto;
    width: 100%;
}

/* Typography */
.page-center h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-center .text-secondary {
    color: #626976;
}

[data-bs-theme=dark] .page-center .text-secondary {
    color: #9ba4b4;
}

/* Form Labels */
.page-center .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label-description {
    float: right;
    font-weight: 400;
}

.form-label-description a {
    color: var(--tblr-primary);
    text-decoration: none;
}

.form-label-description a:hover {
    text-decoration: underline;
}

/* Form Controls */
.page-center .form-control {
    border-radius: 4px;
    border: 1px solid #d9dfe7;
    padding: 0.5625rem 0.75rem;
}

[data-bs-theme=dark] .page-center .form-control {
    background-color: #1d2939;
    border-color: #2d3748;
    color: #f1f5f9;
}

.page-center .form-control:focus {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--tblr-primary-rgb), 0.1);
}

/* Input Group */
.input-group-flat .input-group-text {
    background: transparent;
    border-left: 0;
    padding-left: 0;
}

.input-group-flat .form-control {
    border-right: 0;
}

.input-group-flat .form-control:focus {
    border-color: #d9dfe7;
}

.input-group-flat .form-control:focus + .input-group-text {
    border-color: var(--tblr-primary);
}

/* Checkbox */
.form-check-label {
    font-size: 0.875rem;
    color: #626976;
}

[data-bs-theme=dark] .form-check-label {
    color: #9ba4b4;
}

/* Buttons */
.page-center .btn-primary {
    font-weight: 500;
    padding: 0.5625rem 0.75rem;
}

.page-center .btn .icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Links */
.page-center a {
    cursor: pointer;
}

.page-center .link-secondary {
    color: #626976;
    text-decoration: none;
}

.page-center .link-secondary:hover {
    color: var(--tblr-primary);
}

[data-bs-theme=dark] .page-center .link-secondary {
    color: #9ba4b4;
}

/* Alert */
.page-center .alert {
    border-radius: 4px;
}

.page-center .alert-info {
    background-color: #e8f4fd;
    border-color: #bcdff1;
    color: #1a5e89;
}

[data-bs-theme=dark] .page-center .alert-info {
    background-color: rgba(var(--tblr-primary-rgb), 0.15);
    border-color: rgba(var(--tblr-primary-rgb), 0.25);
    color: var(--tblr-primary);
}

.page-center .alert-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Icons */
.page-center .icon {
    width: 1rem;
    height: 1rem;
}

.page-center .icon-tabler {
    color: #2fb344;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #d63939;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control.is-invalid {
    border-color: #d63939;
}

.form-control.is-invalid:focus {
    border-color: #d63939;
    box-shadow: 0 0 0 0.25rem rgba(214, 57, 57, 0.1);
}

/* Footer */
.page-center .col-lg:last-child > .text-center {
    margin-top: auto;
    padding-top: 2rem;
}

.page-center .small {
    font-size: 0.75rem;
}

.page-center .ver {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .page-center .col-lg:last-child {
        padding: 1.5rem;
    }
    
    .page-center .card-body {
        padding: 1rem 0;
    }
}

@media (min-width: 992px) {
    .page-center .row {
        height: 100vh;
    }
    
    .page-center .col-lg {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* === Override Tabler page-header margin === */
.page-wrapper .page-header {
    margin: 0 !important;
}

/* ========================================
   DASHBOARD STYLES - ApexCharts Integration
   ======================================== */

/* Card Links - Hover effect */
.card-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* Chart containers */
.chart-lg {
    min-height: 300px;
}

/* Dashboard card statistics */
.card .h3 {
    margin-bottom: 0.25rem;
}

/* Avatar icons in cards */
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 1.25rem;
}

/* Subheader styling */
.subheader {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tblr-secondary);
}

/* Alert improvements for dashboard */
.alert-warning .ti-alert-circle {
    margin-right: 0.5rem;
}

/* ========================================
   CALENDAR STYLES - FullCalendar Integration
   ======================================== */

/* Calendar container */
.calendar {
    padding: 0;
}

/* FullCalendar overrides for Tabler theme */
.fc {
    font-family: var(--tblr-font-sans-serif);
    font-size: 0.875rem;
}

/* Calendar toolbar */
.fc .fc-toolbar {
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tblr-body-color);
}

/* Calendar buttons */
.fc .fc-button {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
    color: #fff;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.fc .fc-button:hover {
    background-color: rgba(var(--tblr-primary-rgb), 0.8);
    border-color: rgba(var(--tblr-primary-rgb), 0.8);
}

.fc .fc-button:disabled {
    opacity: 0.65;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: rgba(var(--tblr-primary-rgb), 0.9);
    border-color: rgba(var(--tblr-primary-rgb), 0.9);
}

/* Calendar header cells */
.fc .fc-col-header-cell {
    background-color: var(--tblr-bg-surface-secondary);
    border-color: var(--tblr-border-color);
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

/* Calendar cells */
.fc .fc-daygrid-day,
.fc .fc-timegrid-slot {
    border-color: var(--tblr-border-color);
}

.fc .fc-daygrid-day:hover,
.fc .fc-timegrid-col:hover {
    background-color: var(--tblr-bg-surface-secondary);
}

/* Today highlight */
.fc .fc-day-today {
    background-color: rgba(var(--tblr-primary-rgb), 0.05) !important;
}

/* Events */
.fc-event {
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.fc-event:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fc-event .fc-event-time {
    font-weight: 600;
}

.fc-event .fc-event-title {
    font-weight: 400;
}

/* Time grid */
.fc .fc-timegrid-slot {
    height: 3em;
}

.fc .fc-timegrid-slot-label {
    border-color: var(--tblr-border-color);
    color: var(--tblr-secondary);
    font-size: 0.75rem;
}

/* Scrollbar styling for calendar */
.fc-scroller::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: var(--tblr-bg-surface);
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: var(--tblr-border-color);
    border-radius: 4px;
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
    background: var(--tblr-secondary);
}

/* Dark mode adjustments */
[data-bs-theme=dark] .fc {
    color: var(--tblr-body-color);
}

[data-bs-theme=dark] .fc .fc-toolbar-title {
    color: var(--tblr-body-color);
}

[data-bs-theme=dark] .fc-event {
    color: #fff;
}

/* Card actions buttons spacing */
.card-header .card-actions.btn-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .fc .fc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .card-header .card-actions.btn-actions .btn-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   NOTIFICATIONS STYLES
   ======================================== */

/* Notification icon with badge */
.nav-item.dropdown .nav-link {
    position: relative;
}

.nav-item.dropdown .nav-link .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0.25rem;
    font-size: 0.625rem;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification dropdown card */
.dropdown-menu-card {
    padding: 0;
    min-width: 25rem;
    max-width: 25rem;
}

.dropdown-menu-card .card {
    border: 0;
    box-shadow: none;
    margin: 0;
}

.dropdown-menu-card .card-header {
    border-bottom: var(--tblr-border-width) solid var(--tblr-border-color);
    padding: 0.75rem 1rem;
}

.dropdown-menu-card .card-header .card-title {
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Notification list items */
.list-group-hoverable .list-group-item {
    transition: background-color 0.15s ease-in-out;
}

.list-group-hoverable .list-group-item:hover {
    background-color: var(--tblr-bg-surface-secondary);
}

.list-group-item .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty state for notifications */
.list-group-item .text-center {
    color: var(--tblr-secondary);
}

/* Notification bell icon animation on hover */
.nav-link:hover .ti-bell {
    animation: bell-ring 0.5s ease-in-out;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* Responsive - hide notifications on mobile */
@media (max-width: 767.98px) {
    .dropdown-menu-card {
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }
}

/* ========================================
   FOOTER POSITIONING FIX
   ======================================== */

/* Fix footer position - keep at bottom */
.page-wrapper {
    min-height: calc(100vh - 60px); /* 60px é a altura aproximada do header */
    display: flex;
    flex-direction: column;
}

.page-body {
    flex: 1 0 auto; /* Cresce para preencher espaço disponível */
}

.footer {
    flex-shrink: 0; /* Footer não encolhe */
    margin-top: auto; /* Empurra para o final */
}
