:root {
    --fundomodal: rgba(10, 17, 40, 1);
    --cabecalhotab: rgba(0, 114, 255, 0.2);
    --fundodarkinput: rgba(255, 255, 255, 0.1);

    --text_dark_theme: #ffff;
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1128f5 0%, #1a2a6c 100%);
    color: #e6e6ff !important;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Efeito de partículas no fundo */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Cabeçalho */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
    margin-bottom: 15px;
    position: relative;
    z-index: 1000;
    /* Z-index alto para o header */
}

.row {
    margin-bottom: 15px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00c6ff, transparent);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #212529;
    color: #fff;
    border-radius: 6px;
    z-index: 1001;
    /* Z-index maior que o header */
    padding: 10px 0;
    display: none;
}

.user-dropdown-menu.show {
    display: block;
    background: var(--bs-gray-900);
}

.user-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}

.user-dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.user-dropdown-toggle {
    background: #ffffff00;
}

.user-dropdown-menu a {
    color: #fff;
}

.user-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header Theme Toggle - Dark Theme (Blue) */
#header-theme-toggle {
    color: #02c8ff;
    transition: all 0.3s ease;
}

#header-theme-toggle:hover {
    color: #0072ff;
    transform: rotate(15deg);
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.nav-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-item a {
    text-decoration: none;
}

.nav-item {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Layout principal */
.main-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    position: relative;
}

/*stilos do filtro*/
/* Estilos para os novos botões de ação */
.action-btn.action-inactive {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.action-btn.action-inactive:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #fff;
    border-color: #ffc107;
}

.action-btn.action-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.action-btn.action-active:hover {
    background: rgba(40, 167, 69, 0.2);
    color: #fff;
    border-color: #28a745;
}


/* Estilos para filtros ativos */
.btn-filter.active {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-filter.active:hover {
    background: rgba(13, 110, 253, 0.3);
    color: #fff;
}

/* Estilos para campos de filtro */
.filter-date {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: #f0f6fc;
    font-size: 0.875rem;
    width: 100%;
}

.filter-date:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.filter-date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-separator {
    color: #8b949e;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Responsividade para filtros de data */
@media (max-width: 768px) {
    .date-range {
        flex-direction: column;
        gap: 5px;
    }

    .stat-card {
        margin-bottom: 10px;
    }

    .date-separator {
        display: none;
    }

    .search-input-container {
        position: relative;
        width: 320px;
        flex-grow: 0;
    }
}

/* Indicador visual para filtros aplicados */
.filter-group.has-filter {
    background: rgba(13, 110, 253, 0.1);
    border-radius: 6px;
    padding: 10px;
}

.filter-group.has-filter .filter-label {
    color: #0d6efd;
}

/* Animação para aplicação de filtros */
.filter-applying {
    opacity: 0.7;
    pointer-events: none;
}

.filter-applying::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0d6efd;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sidebar */
.sidebar {
    width: 80px;
    z-index: 1040;
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
}

.sidebar:hover {
    width: 280px;
}

.sidebar-header {
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 62%);
    overflow: hidden;
}

.header-icon {
    display: block;
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.sidebar:hover .header-icon {
    display: none;
}

.header-text {
    display: none;
}

.sidebar:hover .header-text {
    display: block;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .sidebar-title {
    opacity: 1;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .sidebar-subtitle {
    opacity: 1;
}

.sidebar-menu {
    flex: 1;
    overflow-y: hidden;
    overflow-x: hidden;
    padding-right: 5px;
}

.sidebar:hover .sidebar-menu {
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.menu-category {
    margin-bottom: 20px;
}

.category-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .category-title {
    opacity: 1;
}

.menu-items {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    border-radius: 12px;
    color: transparent;
    font-size: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar:hover .menu-link {
    justify-content: flex-start;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.137);
}

.sidebar:hover .menu-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.menu-link.active {
    background: linear-gradient(90deg, rgba(0, 114, 255, 0.2), transparent);
    color: transparent;
    border-left: 3px solid #0072ff;
}

.sidebar:hover .menu-link.active {
    color: #ffffff;
}

.menu-icon {
    margin-right: 0;
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar:hover .menu-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.sidebar-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 70px;
    transition: all 0.3s ease;
}

.sidebar:hover .theme-switch {
    justify-content: space-between;
    padding: 10px 15px;
}

.switch-label {
    font-size: 0;
    color: transparent;
    transition: all 0.3s ease;
}

.sidebar:hover .switch-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #0072ff;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.logout-icon {
    margin-right: 0;
    margin-left: 0;
    color: #ff5e5e;
    font-size: 1.3rem;
    transition: margin 0.3s;
}

.sidebar:hover .logout-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    background: rgba(255, 0, 0, 0.1);
    color: transparent;
    font-size: 0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 5px;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar:hover .logout-btn {
    color: #ff5e5e;
    font-size: 1rem;
    justify-content: flex-start;
    padding: 12px 15px;
}

/* Conteúdo principal */
.main-content {
    padding: 20px 0;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 30px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Cards de estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    z-index: -1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stat-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
}

.icon-blue {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.icon-green {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3);
}

.icon-purple {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}

.icon-orange {
    background: linear-gradient(135deg, #f12711, #f5af19);
    box-shadow: 0 5px 15px rgba(241, 39, 17, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ffffff, #a0a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.stat-trend {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 10px;
}

.trend-up {
    color: #4caf50;
}

.trend-down {
    color: #f44336;
}

.trend-icon {
    margin-right: 5px;
}

/* Seções de conteúdo */
.content-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* Botões */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
}

.btn-icon {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: #0072ff;
    border: 1px solid #0072ff;
}

.btn-outline:hover {
    background: rgba(0, 114, 255, 0.1);
}

.dark-theme .btn-filter {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Tabelas */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}


.display thead th {
    background: var(--cabecalhotab);
    color: #ffffff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}


.data-table th:first-child {
    border-top-left-radius: 15px;
}

.data-table th:last-child {
    border-top-right-radius: 15px;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-completed {
    background: rgba(0, 114, 255, 0.2);
    color: #0072ff;
    border: 1px solid rgba(0, 114, 255, 0.3);
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-inactive {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Ações na tabela */
.row-actions {
    display: flex;
    gap: 10px;
}

.a {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.action-view:hover {
    background: rgba(0, 114, 255, 0.2);
    color: #0072ff;
    border-color: rgba(0, 114, 255, 0.3);
}

.action-edit:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.action-delete:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
}

/* Gráficos */
.chart-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/* Filtros */
.search-input-container {
    position: relative;
    width: 90%;
    flex-grow: 1;
    /* Faz o input ocupar o espaço disponível */
}

.search-input {
    width: 100%;
    padding-left: 2.5rem;
    /* espaço para a lupa */
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 16px;
}

.filter-dropdown {
    /* As propriedades de posicionamento foram removidas! */

    /* Apenas estilos visuais */
    background-color: #2c3e50;
    border: 1px solid #34495e;
    border-radius: 8px;
    /* Pode ajustar o raio da borda como preferir */
    padding: 20px;
    margin-top: 15px;
    /* Adiciona um espaço entre a barra de busca e o painel */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* Organização interna dos filtros */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-dropdown.visible {
    max-height: 500px;
    /* Um valor alto o suficiente para caber todo o seu conteúdo */
    opacity: 1;
    padding: 20px;
    margin-top: 15px;
}

.search-container {
    width: 100%;
    /* Define a largura total do componente */
    position: relative;
    flex-direction: column;
    align-items: stretch;
    /* Garante que os filhos ocupem a largura total */
    justify-content: flex-start;
    /* ESSENCIAL: Alinha tudo no topo */
}

.search-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Espaço entre o input e o botão */
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(10, 17, 40, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* inverte a cor, útil para branco em fundo escuro */
}

.filter-input:focus {
    outline: none;
    border-color: #0072ff;
    background: rgba(255, 255, 255, 0.1);
}

.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-actions {
    width: 100%;
    /* Faz os botões ocuparem a linha inteira no final */
    text-align: right;
    /* Alinha os botões à direita */
    margin-top: 10px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination-item {
    min-width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.pagination-item.active {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

/* Relatórios */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.report-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.report-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.report-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.report-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Opcional: alinha verticalmente o título e o botão */
}

/* Modais */
.modal {
    display: none;
    /* Oculta inicialmente */
    position: fixed;
    /* z-index: 1000; */
    /* Acima de todo o conteúdo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4) !important;
    /* Fundo escuro */
}

.modal.show {
    display: flex;
    align-items: flex-start;
    /* Alinha no topo */
    justify-content: center;
    overflow-y: auto;
    /* Permite scroll se crescer muito */
    padding-top: 2rem;
    /* Espaço do topo */
}

.modal-content {
    background: var(--fundomodal) !important;
    /* ou qualquer outra cor */
    /* padding: 20px; */
    border-radius: 8px;
    max-width: 800px;
    border-color: #8b8b8b9e !important;
    transition: height 0.3s ease;
    color: #ffffff;
    /* Ensure default text in modal is white */
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}



/* Tabs */
.tabs-container {
    margin-bottom: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.tab-item {
    float: left;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

.modal-tab-item {
    float: left;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #6c757d;
    /* Gray text for inactive */
    font-weight: 500;
    border-radius: 8px;
    /* Rounded corners */
    margin-right: 10px;
}

.tab-item:hover {
    color: #ffffff;
}

.modal-tab-item:hover {
    color: #0d6efd;
    /* Blue hover */
    background: rgba(13, 110, 253, 0.05);
}

.tab-item.active {
    color: #0072ff;
}

.modal-tab-item.active {
    color: #0d6efd;
    /* Blue text */
    background: rgba(13, 110, 253, 0.1);
    /* Light blue background */
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0072ff;
}

.tab-content,
.modal-tab-content {
    display: none;
    padding: 20px 0;
    clear: both;
}

.tab-content.active,
.modal-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Formulários */
.dark-theme .form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dark-theme .form-control:focus {
    outline: none;
    border-color: #0072ff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-theme .dt-input option {
    background: #000000;
}

.dark-theme div.dt-container .dt-paging .dt-paging-button.disabled,
.dark-theme div.dt-container .dt-paging .dt-paging-button.disabled:hover,
.dark-theme div.dt-container .dt-paging .dt-paging-button.disabled:active {
    color: #8892b0 !important;
    /* Usando um cinza-claro para manter o aspecto de 'desabilitado' */
    /* Você pode usar #fff se preferir branco puro */
}

[placeholder],
input[placeholder] {
    color: #8e9fa7
}

::-webkit-input-placeholder {
    color: #8e9fa7 !important
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0072ff;
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .form-select,
.dark-theme .form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.dark-theme .form-select:disabled,
.dark-theme .form-control:disabled {
    background: rgba(0, 0, 0, 0.09);
    border-color: var(--bs-red);
    color: #ffffff;
}

.dark-theme .form-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    /* fundo */
    border: 1px solid rgba(255, 255, 255, 0.1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

/* Estilo para <option> (apenas parcialmente suportado em navegadores) */
.dark-theme .form-select option {
    color: #000000;
    /* Texto preto */
    background-color: #ffffff;
    /* Fundo preto */
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-icon-wrapper .form-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    display: none;
}

/* Ícone em branco no tema dark */
.dark-theme .input-icon-wrapper .input-icon {
    color: #ffffff;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
}


.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.dark-theme .form-textarea {
    min-height: 200px;
    width: 100%;
    resize: vertical;
    background: var(--fundodarkinput);
    color: var(--text_dark_theme);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #0072ff;
}

.form-check-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}


/* Responsividade */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
    }

    .sidebar.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Restaurando o visual original para mobile (anulando o hover do desktop) */
    .sidebar-title,
    .sidebar-subtitle,
    .category-title {
        opacity: 1 !important;
    }

    .switch-label {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        opacity: 1 !important;
    }

    .header-text {
        display: block !important;
    }

    .header-icon {
        display: none !important;
    }

    .sidebar-menu {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .menu-link {
        justify-content: flex-start !important;
        padding: 12px 15px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1rem !important;
    }

    .menu-link.active {
        color: #ffffff !important;
    }

    .menu-icon {
        margin-right: 15px !important;
        font-size: 1.2rem !important;
    }

    .theme-switch {
        justify-content: space-between !important;
        padding: 10px 15px !important;
    }

    .logout-btn {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 12px 15px !important;
        color: #ff5e5e !important;
        font-size: 1rem !important;
    }

    .logout-icon {
        margin-right: 15px !important;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .nav-container {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 10px;
    }

    .nav-item {
        padding: 10px 15px;
        white-space: nowrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .filters-container {
        flex-direction: column;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

/* Efeitos de glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Efeitos de neon */
.neon-text {
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.7), 0 0 20px rgba(0, 198, 255, 0.5), 0 0 30px rgba(0, 198, 255, 0.3);
}

.neon-border {
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.7), 0 0 20px rgba(0, 198, 255, 0.5), inset 0 0 10px rgba(0, 198, 255, 0.3);
}

/* Efeitos de gradiente */
.gradient-text {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
}

/* Efeitos de hover 3D */
.card-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Tela de login */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(135deg, #0a1128 0%, #1a2a6c 100%); */
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-card {
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    /* background: linear-gradient(45deg, #00c6ff, transparent, #0072ff, transparent, #00c6ff); */
    z-index: -1;
    border-radius: 22px;
}

/* FIX: Update Section Layout - Dark Theme */
.update-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-info {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* File Upload Drag & Drop Style */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
    padding: 20px;
    border: 2px dashed rgb(255, 255, 255);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    margin-bottom: 15px;
    height: 120px;
}

.file-upload:hover {
    border-color: #0072ff;
    background: rgba(0, 114, 255, 0.05);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.file-label i {
    font-size: 2rem;
    color: #0072ff;
    margin-bottom: 10px;
}

.file-name {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Changelog Styling - Dark */
.changelog-list {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.changelog-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    color: #ffffff !important;
}

.changelog-list li i {
    margin-right: 10px;
    margin-top: 4px;
    color: #2ecc71;
    /* Brighter green for dark theme */
    flex-shrink: 0;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .update-section {
        padding: 15px;
    }

    .file-upload {}

    .upload-title {
        font-size: 1rem;
    }

    /* Tab Header Scroll */
    .tab-header {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    .tab-header::-webkit-scrollbar {
        height: 4px;
        background: transparent;
    }

    .tab-header::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .tab-item {
        flex: 0 0 auto;
    }
}

@keyframes borderAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
    margin-bottom: 10px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(10, 17, 40, 0.5);
    border-radius: 15px;
    padding: 5px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.login-tab.active {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.login-form {
    margin-bottom: 30px;
}

.forgot-password {
    display: block;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: -25px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #00c6ff;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
    margin-top: 20px;
}

.login-button:hover {
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 30px;
}

.remember {
    margin-top: 20px;
}

.remember span {
    color: white;
}

/* Floating elements animation */
.floating {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    /* animation: float 15s infinite ease-in-out; */
}

.floating:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.floating:nth-child(4) {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/*animação tela load*/
.total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Overlay de carregamento */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 25%, #2a5298de 70%, #1e3c72 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* Animação de fundo com circuitos */
.background-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 200, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: circuitPulse 4s ease-in-out infinite alternate;
}

@keyframes circuitPulse {
    0% {
        opacity: 0.05;
    }

    100% {
        opacity: 0.15;
    }
}

/**loading*/
/* Container do loading (AGORA DENTRO DO MODAL) */
.loading-container-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 26, 53, 0.8);
    display: flex;
    flex-direction: column;
    /* empilha os itens em coluna */
    align-items: center;
    /* centraliza horizontalmente */
    justify-content: flex-start;
    /* joga para o topo */
    padding-top: 200px;
    /* distância do topo do modal */
    z-index: 10;
    backdrop-filter: blur(3px);
    border-radius: 8px;
}

/* Adicione uma classe para esconder/mostrar o loading */
.loading-container-modal .hidden {
    display: none;
}

/* Título */
.loading-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff, #b0bec5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.spinner-ring {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    border-top-color: #3f51b5;
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-right-color: #5c6bc0;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-bottom-color: #7986cb;
    animation-duration: 1s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ajusta o spinner */
.main-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 20px;
    /* espaço entre spinner e barra */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra de progresso */
.progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a237e, #3f51b5, #5c6bc0);
    border-radius: 3px;
    width: 0%;
    animation: loadProgress 4s ease-in-out infinite;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s linear infinite;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Container principal */
.loading-container {
    text-align: center;
    z-index: 10;
    position: relative;
}

/* Logo/Ícone principal */
.logo-container {
    margin-bottom: 40px;
    position: relative;
}

.car-icon {
    width: 120px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
    animation: carBounce 2s ease-in-out infinite;
}

.car-body {
    width: 100%;
    height: 50px;
    background: linear-gradient(45deg, #ff6b35, #ff8e35);
    border-radius: 25px 25px 10px 10px;
    position: relative;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.car-windows {
    width: 60px;
    height: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px 15px 5px 5px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.car-wheel {
    width: 25px;
    height: 25px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    bottom: -12px;
    border: 3px solid #666;
    animation: wheelSpin 1s linear infinite;
}

.car-wheel.left {
    left: 15px;
}

.car-wheel.right {
    right: 15px;
}

@keyframes carBounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Título */
.title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
}

@keyframes titleGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    100% {
        text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.3);
    }
}

/* Barra de progresso */
.progress-container {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar-load {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ffeb3b, #4caf50);
    border-radius: 10px;
    width: 0%;
    animation: progressFill 4s ease-out forwards;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.5);
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    25% {
        width: 30%;
    }

    50% {
        width: 60%;
    }

    75% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

/* Texto de status */
.loading-text {
    color: white;
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: textFade 2s ease-in-out infinite alternate;
}

@keyframes textFade {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Indicadores elétricos */
.electric-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.electric-bolt {
    width: 20px;
    height: 30px;
    background: #ffeb3b;
    clip-path: polygon(20% 0%, 80% 0%, 60% 40%, 100% 40%, 0% 100%, 40% 60%, 0% 60%);
    animation: boltFlash 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #ffeb3b);
}

.electric-bolt:nth-child(2) {
    animation-delay: 0.3s;
}

.electric-bolt:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes boltFlash {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .progress-container {
        width: 250px;
    }

    .car-icon {
        width: 100px;
        height: 65px;
    }
}

/* Animação de saída */
.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-value {
    font-weight: bold;
}

.summary-total {
    font-size: 16px;
    font-weight: bold;
    border-top: 1px solid #ccc;
    padding-top: 8px;
}

/*estatiticas*/
.orcamento-header {
    display: flex;
    /* Aplica o flex no container PAI */
    justify-content: space-between;
    /* Alinha os filhos (h3 e div) nas extremidades */
    align-items: center;
    /* Centraliza os filhos verticalmente */
    margin-bottom: 20px;
}

/* Opcional: ajustar a largura do select se necessário */
.orcamento-header .form-select {
    max-width: 200px;
}

/* ==========================================================================
   AGENDAMENTO / FULLCALENDAR STYLES (Styles.css Merge)
   ========================================================================== */

/* Calendar Container */
#calendar {
    background: rgba(10, 17, 40, 0.4);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Toolbar */
.fc-toolbar-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    text-shadow: 0 0 10px rgba(0, 114, 255, 0.4);
}

.fc-button-primary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e6e6ff !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
}

.fc-button-primary:hover {
    background: rgba(0, 114, 255, 0.2) !important;
    border-color: #0072ff !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.2);
}

.fc-button-active {
    background: linear-gradient(135deg, #0072ff, #00c6ff) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3) !important;
}

.fc-button-primary:disabled {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Grid & Headers */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.fc-col-header-cell {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 0 !important;
}

.fc-col-header-cell-cushion {
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.fc-col-header-cell-cushion:hover {
    color: #00c6ff !important;
}

/* Day Cells */
.fc-daygrid-day-number {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
    padding: 8px 8px !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.3s;
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
    color: #fff !important;
}

/* Today Highlight */
.fc-day-today {
    background: rgba(0, 114, 255, 0.08) !important;
    position: relative;
}

.fc-day-today::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(0, 114, 255, 0.4);
    border-radius: 4px;
    pointer-events: none;
}

/* Events */
.fc-event {
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem !important;
    padding: 2px 4px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.fc-event:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.fc-event-title,
.fc-event-time {
    font-weight: 500;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* List View */
.fc-list {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fc-list-day-cushion {
    background: rgba(255, 255, 255, 0.05) !important;
}

.fc-list-day-text,
.fc-list-day-side-text {
    color: #fff !important;
    font-weight: 600;
}

.fc-list-event:hover td {
    background: rgba(255, 255, 255, 0.05) !important;
}

.fc-list-event-title a {
    color: #e6e6ff !important;
    text-decoration: none;
}

/* Timeline History List */
.history-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 10px;
}

/* Linha vertical da timeline */
.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.history-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.history-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Indicador (bolinha) na timeline */
.history-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -21px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0072ff;
    border: 2px solid rgba(10, 17, 40, 1);
    /* Cor de fundo para 'cortar' a linha */
    box-shadow: 0 0 0 2px rgba(0, 114, 255, 0.3);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.history-card-body {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.history-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.history-value {
    font-weight: 700;
    color: #00c6ff;
}

.history-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Varia��es de cor para o indicador lateral baseadas no status (opcional) */
.history-card.status-concluido::before {
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.history-card.status-pendente::before {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.history-card.status-cancelado::before {
    background: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.3);
}