

:root {
        --primary-color: #6400df;
        --primary-hover: #5300c2;
        --primary-light: #f0e6ff;
        --success-color: #4caf50;
        --warning-color: #ffc107;
        --danger-color: #f44336;
        --text-primary: #333;
        --text-secondary: #666;
        --border-color: #e0e0e0;
        --bg-secondary: #f8f9fa;
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
        --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
        --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ============================================
            SEVERITY BADGES - PADRÃO GLOBAL
   ============================================ */

.severity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    min-width: 110px; /* Tamanho fixo para consistência */
    text-align: center;
}

.severity-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Severidades - Cores Padrão */
.severity-no-alert {
    background: linear-gradient(135deg, #78867580, #9e9e9e80);
    color: var(--text-secondary);
}

.severity-information,
.severity-warning {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
}

.severity-medium {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: white;
}

.severity-high {
    background: linear-gradient(135deg, #ff9800, #ffa726);
    color: white;
}

.severity-critical,
.severity-disaster {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
}

.severity-error {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    color: white;
}

.severity-success-audit {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

/* Dark Mode */
.dark-mode .severity-no-alert {
    background: linear-gradient(135deg, #78867580, #9e9e9e80);
    color: #ffffff;
}

/* Notification Styles */
.notification-wrapper {
    position: relative;
}

.notification-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mark-all-read {
    background: none;
    border: none;
    color: #6400df;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Poppins';
}



.mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f4ff;
}

.notification-item.unread:hover {
    background: #e8edff;
}

.notification-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ede6ff;
    color: #6400df;
    font-size: 16px;
}

.notification-icon-img {
    object-fit: cover;
    background: #f3f0fb;
}

.notification-item.unread .notification-icon:not(.notification-icon-img) {
    background: #6400df;
    color: #ffffff;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.notification-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.notification-footer a {
    color: #6400df;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

.empty-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.empty-notifications i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* Notification Menu Items */
.notification-menu {
    padding: 8px 0;
}

.notification-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #333;
    gap: 12px;
}

.notification-menu-item:hover {
    background: #f8f9fa;
}

.notification-menu-item i:first-child {
    font-size: 18px;
    color: #6400df;
    width: 24px;
    text-align: center;
}

.notification-menu-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-menu-item i:last-child {
    font-size: 12px;
    color: #999;
}

.notification-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.notification-section-header {
    padding: 12px 20px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-section-header span {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode */

.dark-mode .mark-all-read{
        color: #ffffff;

}

.dark-mode .notification-footer a {
    color: #ffffff;
 
}
.dark-mode .notification-dropdown {
    background: #2d2d2d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .notification-header {
    border-bottom-color: #444;
}

.dark-mode .notification-header h3 {
    color: #fff;
}

.dark-mode .notification-item {
    border-bottom-color: #444;
}

.dark-mode .notification-item:hover {
    background: #3d3d3d;
}

.dark-mode .notification-item.unread {
    background: #3a3a4a;
}

.dark-mode .notification-title {
    color: #fff;
}

.dark-mode .notification-excerpt {
    color: #aaa;
}

.dark-mode .notification-footer {
    border-top-color: #444;
}

.dark-mode .notification-menu-item {
    color: #fff;
}

.dark-mode .notification-menu-item:hover {
    background: #3d3d3d;
}

.dark-mode .notification-menu-item i:first-child {
    color: #8B3DFF;
}

.dark-mode .notification-divider {
    background: #444;
}

.dark-mode .notification-section-header span {
    color: #aaa;
}

/* ============================================
            SEARCH CONTAINER ESPECÍFICO
   ============================================ */

.search-container {
    display: flex;
    align-items: center;
    animation: slideInUp 0.6s ease;
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.dark-mode .search-icon {
    color: #f5f5f5;
}

/* ============================================
            SISTEMA DE NOTIFICAÇÕES
   ============================================ */

/* Container de alertas - posicionamento fixo */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none; /* Permite clicar através do container */
}

/* Alert individual */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;
    pointer-events: auto; /* Permite interação com o alert */
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Animação de entrada */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animação de saída */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.alert.removing {
    animation: slideOut 0.3s ease forwards;
}

/* Tipos de alerta */
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.alert-success i {
    color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.alert-error i {
    color: #dc3545;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 2px solid #2196f3;
}

.alert-info i {
    color: #2196f3;
}

.alert-warning {
    background: #fff8e1;
    color: #f57c00;
    border: 2px solid #ff9800;
}

.alert-warning i {
    color: #ff9800;
}

/* Ícone do alerta */
.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Texto do alerta */
.alert-message {
    flex: 1;
    line-height: 1.4;
}

/* Botão de fechar */
.alert-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Barra de progresso (opcional) */
.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    border-radius: 0 0 12px 12px;
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Dark Mode */
.dark-mode .alert-success {
    background: #1e4620;
    color: #a7f3a7;
    border-color: #28a745;
}

.dark-mode .alert-error {
    background: #4a1e1e;
    color: #f8b4b4;
    border-color: #dc3545;
}

.dark-mode .alert-info {
    background: #1a3a52;
    color: #a7d8f0;
    border-color: #2196f3;
}

.dark-mode .alert-warning {
    background: #4a3a1e;
    color: #f8d48b;
    border-color: #ff9800;
}

/* Responsividade */
@media (max-width: 768px) {
    .alert-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .alert {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ============================================
            BOTÕES PADRONIZADOS
   ============================================ */


/* Split Button Styles with Custom Action Button Base */
.split-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Unified styling for all dropdown toggles */
.split-btn > .dropdown-toggle {
    padding: 10px 20px;
    border: 2px solid #e0e0e0 !important;
    background-color: #fff;
    color: var(--cor-texto);
    border-radius: 20px !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
}

.split-btn > .dropdown-toggle:hover {
    border-color: #6400df !important;
    background-color: #f0e6ff !important;
}

.dark-mode .split-btn > .dropdown-toggle {
    background-color: #2a2a2a;
    border-color: #555555 !important;
    color: #ffffff;
}

.dark-mode .split-btn > .dropdown-toggle:hover {
    border-color: #555555 !important;
    background-color: #3d3d3d !important;
}

.arrow-down {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}


/* Dropdown customizado dentro de formulários - SOBRESCREVE estilos de botão */
.form-group .split-btn {
    width: 100%;
    display: block;
}

.form-group .split-btn > .dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    background-color: white;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: auto;
    text-align: left;
}

.form-group .split-btn > .dropdown-toggle:hover {
    border-color: var(--primary-color) !important;
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(100, 0, 223, 0.1);
    transform: translateY(-2px);
}

.form-group .split-btn > .dropdown-toggle:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(100, 0, 223, 0.1);
    transform: translateY(-2px);
}

.form-group .split-btn > .dropdown-toggle .arrow-down {
    margin-left: auto;
    font-size: 10px;
}

.form-group .dropdown-content {
    width: 100%;
    left: 0;
    right: auto;
    max-width: none;
}

/* Dark mode */
.dark-mode .form-group .split-btn > .dropdown-toggle {
    background-color: #3d3d3d;
    border-color: #555555 !important;
    color: #ffffff;
}

.dark-mode .form-group .split-btn > .dropdown-toggle:hover,
.dark-mode .form-group .split-btn > .dropdown-toggle:focus {
    background-color: #3d3d3d !important;
    border-color: #7c7c7c !important;
    box-shadow: 0 0 0 3px rgba(125, 125, 125, 0.2);
}

/* Disabled state */
.form-group.disabled .split-btn > .dropdown-toggle {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5 !important;
}

.dark-mode .form-group.disabled .split-btn > .dropdown-toggle {
    background: #505050 !important;
}

.form-group.disabled .split-btn > .dropdown-toggle:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
            DROPDOWN CONTENT (STANDARD)
   ============================================ */

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    background: white;
    min-width: 150px;
    max-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    animation: slideInUp 0.3s ease;
}

.dropdown-content.show {
    display: block;
}

.dropdown-header {
    padding: 12px 16px;
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    background: transparent;
}

.dropdown-content a:hover {
    background-color: #f0e6ff !important;
    color: #333;
}

/* Specific adjustment for rightmost dropdown */
#rows-per-page-dropdown {
    right: 0;
    left: auto;
}

/* Dark Mode - Dropdown */
.dark-mode .dropdown-content {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .dropdown-header {
    background: #333;
    color: #aaa;
    border-bottom-color: #444;
}

.dark-mode .dropdown-content a {
    color: #f5f5f5;
}

.dark-mode .dropdown-content a:hover {
    background-color: #555 !important;
    color: #fff;
}

/* Ensure dropdown doesn't overflow viewport */
@media (max-width: 1400px) {
    .dropdown-content {
        right: 0;
        left: auto;
    }
}

/* Specific adjustment for rightmost dropdown to prevent horizontal scroll */
#rows-per-page-dropdown {
    right: 0;
    left: auto;
}

/* Ensure dropdown doesn't overflow viewport */
@media (max-width: 1400px) {
    .dropdown-content {
        right: 0;
        left: auto;
    }
}

.dark-mode .dropdown-content {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: #444;
}

.dark-mode .dropdown-header {
    background: #333;
    color: #aaa;
}

.dark-mode .dropdown-content a {
    color: #f5f5f5;
}

.dark-mode .dropdown-content a:hover {
    background-color: #555 !important;
    color: #fff;
}

/* Botão Principal */
.btn-primary-custom {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    text-decoration: none;
}

.btn-primary-custom:hover {
    border-color: #6400df;
    background-color: #f0e6ff;
    color: #000000;
    text-decoration: none;
}

.btn-primary-custom:active {
    transform: scale(0.98);
}

.btn-primary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary-custom:disabled:hover {
    border-color: #e0e0e0;
    background-color: #ffffff;
}

/* Botão Secundário */
.btn-secondary-custom {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex
;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    border-color: #6400df;
    background-color: #f0e6ff;
    color: #000000;
}

.btn-secondary-custom:active {
    transform: scale(0.98);
}

/* Botão de Sucesso */
.btn-success-custom {
    padding: 10px 20px;
    background-color: #28a745;
    color: #ffffff;
    border: 2px solid #28a745;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-success-custom:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Botão de Perigo */
.btn-danger-custom {
    padding: 10px 20px;
    background-color: #dc3545;
    color: #ffffff;
    border: 2px solid #dc3545;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-danger-custom:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Tamanhos de Botões */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* Botão de Largura Total */
.btn-full-width {
    width: 100%;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark Mode - Botões */
.dark-mode .btn-primary-custom {
    background-color: #3d3d3d;
    border-color: #555555;
    color: #ffffff;
}



.dark-mode .btn-primary-custom:hover  {
    border-color: #555555 !important;
    background-color: #4f4f4f !important;
}

/* Estilos para os botões */
    

.dark-mode .btn-primary-custom:disabled:hover {
    border-color: #555555;
    background-color: #3d3d3d;
}

.dark-mode .btn-secondary-custom {
    background-color: #3d3d3d;
    border-color: #555555;
    color: #ffffff;
}


.dark-mode .btn-success-custom {
    background-color: #1e4620;
    border-color: #28a745;
    color: #a7f3a7;
}

.dark-mode .btn-success-custom:hover {
    background-color: #28a745;
    color: #ffffff;
}

.dark-mode .btn-danger-custom {
    background-color: #4a1e1e;
    border-color: #dc3545;
    color: #f8b4b4;
}

.dark-mode .btn-danger-custom:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* ============================================
            CAMPOS DE INPUT PADRONIZADOS
   ============================================ */

/* Input padrão */
.input-custom {
    width: 100%;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}
.btn:hover, .filter-button:hover{
    border-color: #6400df !important;
    background-color: #f0e6ff !important;
}

.dark-mode .btn:hover, .dark-mode .filter-button:hover{
    border-color: #555555 !important;
    background-color: #4f4f4f !important;
}

.dark-mode select#rowsPerPage{
    background-color: #3d3d3d;
    border-color: #555555 !important;
    color: #ffffff;
}

select#rowsPerPage:hover{
    border-color: #6400df !important;
    background-color: #f0e6ff !important;
}

.dark-mode #rowsPerPage:hover {
    border-color: #555555 !important;
    background-color: #4f4f4f !important;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--cor-texto);
    transition: all 0.3s 
ease;
}

.dark-mode .summary-card,
    .dark-mode .chart-card,
    .dark-mode table,
    .dark-mode .search-input,
    .dark-mode .notes-popup-content {
        background-color: #2a2a2a;
        color: #f5f5f5;
        border-color: #444;
    }

.search-input:focus{
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100, 0, 223, 0.1);
    transform: translateY(-1px);
}

.dark-mode .search-input {
    background-color: #2a2a2a;
    border-color: #444;
    color: #ffffff !important;
}

.dark-mode .search-input:hover {
        background-color: #3e3e3e;
        border-color: #555;
    }

.dark-mode .btn, .dark-mode .filter-button {
    background-color: #3d3d3d;
    border-color: #555555 !important;
    color: #ffffff;
}

.btn, .filter-button{
    padding: 10px 20px !important;
    border: 2px solid #e0e0e0 !important;
    background-color: #ffffff;
    color: var(--cor-texto);
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s 
ease;
    display: flex
;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.summary-card.total .card-icon {
        background: rgba(100, 0, 223, 0.1);
        color: var(--primary-color);
    }

    .summary-card.critical .card-icon {
        background: rgba(244, 67, 54, 0.1);
        color: var(--danger-color);
        animation: blink 1.5s ease-in-out infinite;
    }

    .summary-card.high .card-icon {
        background: rgba(255, 152, 0, 0.1);
        color: var(--medium-color);
        animation: blink 1.5s ease-in-out infinite;
    }

    .summary-card.medium .card-icon {
        background: rgba(255, 193, 7, 0.1);
        color: var(--warning-color);
        animation: blink 1.5s ease-in-out infinite;
    }

    .summary-card.information .card-icon {
        background: rgba(52, 152, 219, 0.1);
        color: #3498db;
    }

.dropdown-content a:hover {

    background-color: #f0e6ff !important;
    color: #333;
}




.dark-mode .dropdown-content a:hover {
    background-color: #555 !important;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}
.input-custom:focus {
    border-color: #6400df;
    box-shadow: 0 0 0 3px rgba(100, 0, 223, 0.1);
}

.input-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.input-custom::placeholder {
    color: #999999;
    opacity: 1;
}

/* Input com ícone */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-custom {
    padding-left: 40px;
}

.input-with-icon .input-icon-left {
    position: absolute;
    left: 15px;
    color: #999999;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
}

.input-with-icon .input-icon-right {
    position: absolute;
    right: 15px;
    color: #999999;
    font-size: 16px;
    z-index: 1;
    cursor: pointer;
}

.input-with-icon .input-icon-right:hover {
    color: #6400df;
}

/* Password Toggle específico */
.password-toggle {
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #6400df !important;
}

/* Input com duplo ícone (esquerda e direita) */
.input-with-double-icon .input-custom {
    padding-left: 40px;
    padding-right: 40px;
}

/* Textarea padrão */
.textarea-custom {
    width: 100%;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.textarea-custom:focus {
    border-color: #6400df;
    box-shadow: 0 0 0 3px rgba(100, 0, 223, 0.1);
}

/* Select/Dropdown padrão */
.select-custom {
    width: 100%;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    box-sizing: border-box;
}



.select-custom:focus {
    border-color: #6400df;
    box-shadow: 0 0 0 3px rgba(100, 0, 223, 0.1);
}

/* Override form-group select styles for select-custom */
.form-group .select-custom {
    border-radius: 20px;
    padding: 10px 20px;
    padding-right: 40px;
}

/* Grupo de formulário */
.form-group-custom {
    margin-bottom: 20px;
}

.form-actions {
        display: flex;
        gap: 10px;
	justify-content: center;
        margin-top: 20px;
    }

.form-group-custom label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.form-group-custom .helper-text {
    margin-top: 5px;
    font-size: 12px;
    color: #666666;
}

.form-group-custom .error-text {
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

/* Estados de validação */
.input-custom.is-valid,
.textarea-custom.is-valid,
.select-custom.is-valid {
    border-color: #28a745;
}

.input-custom.is-valid:focus,
.textarea-custom.is-valid:focus,
.select-custom.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.input-custom.is-invalid,
.textarea-custom.is-invalid,
.select-custom.is-invalid {
    border-color: #dc3545;
}

.input-custom.is-invalid:focus,
.textarea-custom.is-invalid:focus,
.select-custom.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Dark Mode - Inputs */
.dark-mode .input-custom,
.dark-mode .textarea-custom,
.dark-mode .select-custom {
    background-color: #3d3d3d;
    border-color: #555555;
    color: #ffffff;
}

.dark-mode .form-actions {
        background-color: #333333;
    }

.dark-mode .input-custom:focus,
.dark-mode .textarea-custom:focus,
.dark-mode .select-custom:focus {
    border-color: #7c7c7c;
    box-shadow: 0 0 0 3px rgba(125, 125, 125, 0.2);
}

.dark-mode .input-custom:disabled,
.dark-mode .textarea-custom:disabled,
.dark-mode .select-custom:disabled {
    background-color: #2d2d2d;
    opacity: 0.5;
}

.dark-mode .input-custom::placeholder,
.dark-mode .textarea-custom::placeholder {
    color: #999999;
}

.dark-mode .form-group-custom label {
    color: #ffffff;
}

.dark-mode .form-group-custom .helper-text {
    color: #aaaaaa;
}

.dark-mode .form-group-custom .error-text {
    color: #ff6b6b;
}

.dark-mode .input-with-icon .input-icon-left,
.dark-mode .input-with-icon .input-icon-right {
    color: #aaaaaa;
}

.dark-mode .input-with-icon .input-icon-right:hover {
    color: #ffffff;
}

.dark-mode .select-custom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Estados de validação no Dark Mode */
.dark-mode .input-custom.is-valid,
.dark-mode .textarea-custom.is-valid,
.dark-mode .select-custom.is-valid {
    border-color: #28a745;
}

.dark-mode .input-custom.is-invalid,
.dark-mode .textarea-custom.is-invalid,
.dark-mode .select-custom.is-invalid {
    border-color: #dc3545;
}

/* ============================================
            MODE SELECTION CARDS
   ============================================ */

.mode-cards-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mode-card-button {
    flex: 1;
    padding: 12px 20px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.mode-card-button:hover {
    border-color: #6400df;
    background-color: #f0e6ff;
    transform: translateY(-2px);
}

.mode-card-button.active {
    border-color: #6400df;
    background-color: #f0e6ff;
    color: #6400df;
}

.mode-card-button i,
.mode-card-button svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mode-card-button[data-mode="light"] i,
.mode-card-button[data-mode="light"] svg {
    color: #27283a;
}

.mode-card-button[data-mode="dark"] i {
    color: #27283a;
}

.mode-card-button.active[data-mode="light"] i,
.mode-card-button.active[data-mode="light"] svg,
.mode-card-button.active[data-mode="dark"] i {
    color: #6400df;
}

/* Dark Mode - Mode Cards */
.dark-mode .mode-card-button {
    background-color: #3d3d3d;
    border-color: #555555;
    color: #ffffff;
}

.dark-mode .mode-card-button:hover {
    border-color: #7c7c7c;
    background-color: #4f4f4f;
}

.dark-mode .mode-card-button.active {
    border-color: #555555 !important;
    background-color: #4f4f4f !important;
}

.dark-mode .mode-card-button[data-mode="light"] i,
.dark-mode .mode-card-button[data-mode="light"] svg {
    color: #ffffff;
}

.dark-mode .mode-card-button[data-mode="dark"] i {
    color: #ffffff;
}

.dark-mode .mode-card-button.active i,
.dark-mode .mode-card-button.active svg {
    color: #ffffff;
}

/* ============================================
            MODAL SYSTEM
   ============================================ */

/* Modal Overlay - Apenas para modais customizados (não Bootstrap) */
.modal:not(.fade):not([role="dialog"]) {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal:not(.fade):not([role="dialog"]).show {
    display: block;
}

/* Bootstrap Modal Enhancement */
.modal-backdrop {
    backdrop-filter: blur(5px);
}

/* Modal Content */
.modal-content {
    background: white;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Para modais não-Bootstrap */
.modal:not(.fade) .modal-content {
    margin: 3% auto;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    animation: slideInUp 0.4s ease;
}

/* Para modais Bootstrap - tamanho controlado */
.modal.fade .modal-dialog {
    max-width: 600px;
}

.modal.fade .modal-content {
    max-height: 90vh;
}

/* Modal Header */
.modal-header {
    background: #4f4f4f;
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2,
.modal-header h5 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* Close Button */
.close,
.btn-close {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

/* Close button inside modal header */
.modal-header .close,
.modal-header .btn-close {
    color: white;
    font-size: 32px;
    font-weight: 300;
    opacity: 1;
    background-image: none;
    filter: brightness(1) invert(0);
}

/* Adiciona o X para botões que não têm conteúdo */
.modal-header .btn-close:empty::before {
    content: '×';
    font-size: 32px;
    line-height: 1;
    color: white;
}

.close:hover,
.btn-close:hover,
.modal-header .close:hover,
.modal-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    opacity: 1;
}

/* Modal Body */
.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Ajuste para inputs com ícones dentro de modais */
.modal .input-wrapper input {
    padding-left: 40px;
}

/* Form Styles inside Modal */
.modal .form-group,
.modal .input-group {
    margin-bottom: 24px;
}

.modal .form-group label,
.modal .input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.dark-mode .modal .form-group label,
.modal .input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}





/* Input with Icons */
.modal .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal .input-icon {
    position: absolute;
    left: 14px;
    color: #999;
    z-index: 1;
}

.modal .input-group input {
    padding-left: 40px;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group,
.form-row .input-group {
    flex: 1;
}

/* Modal Footer / Form Actions */
.modal-footer,
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-center;
    padding: 25px 30px;
    background: #ffffff;
    border-radius: 0 0 20px 20px;
}




/* ============================================
            DROPDOWN FIXED (ACTIONS)
   ============================================ */

.dropdown-content-fixed {
    position: fixed;
    background: white;
    min-width: 210px;
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
    animation: slideInUp 0.3s ease;
}

.dropdown-content-fixed.show {
    display: block;
}

.dropdown-content-fixed a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
}
.dropdown-content-fixed a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #8B3DFF;
    transition: width 0.3s;
}

.dropdown-content-fixed a i {
    width: 20px;
    font-size: 14px;
}

.dropdown-content-fixed a:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: translateX(2px);
}

/* Dark Mode - Fixed Dropdown */
.dark-mode .dropdown-content-fixed {
    background: #2a2a2a;
    border-color: #444;
}

.dark-mode .dropdown-content-fixed a {
    color: #f5f5f5;
}

.dark-mode .dropdown-content-fixed a:hover {
    background-color: #555 !important;
    color: #fff;
}

.dropdown-content-fixed a:hover::after {
    width: 100%;
}

.dropdown-content-fixed a i {
    width: 20px;
}

/* Dark Mode - Fixed Dropdown */
.dark-mode .dropdown-content-fixed {
    background-color: #363636;
}

.dark-mode .dropdown-content-fixed a {
    color: #fff;
}

.dark-mode .dropdown-content-fixed a:hover {
    background-color: #444;
    color: #fff;
}




.modal .btn-secondary,
.modal .btn-cancel {
    padding: 12px 24px;
    background-color: #ffffff;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .btn-secondary:hover,
.modal .btn-cancel:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Responsivo */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-header {
        border-radius: 0;
    }

    .modal-footer,
    .form-actions {
        border-radius: 0;
    }

    .form-row {
        flex-direction: column;
    }
}



.form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        transition: all var(--transition-normal);
        background: white;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(100, 0, 223, 0.1);
        transform: translateY(-2px);
    }

    .dark-mode .form-group input,
    .dark-mode .form-group select,
    .dark-mode .form-group textarea {
        background-color: #2a2a2a;
        border-color: #444;
        color: #f5f5f5;
    }

/* Adicionar ao new-styles.css ou manter no My Dashboards */

/* Specific dashboard styles */
.dashboard-info-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.dashboard-description-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.dark-mode .dashboard-description-text {
    color: #aaaaaa;
}

.widget-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e8f4f8;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.dark-mode .widget-count-badge {
    background-color: rgba(25, 118, 210, 0.2);
    color: #64b5f6;
}

.favorite-star-icon {
    font-size: 20px;
    color: #dddddd;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.favorite-star-icon:hover {
    color: #F59E0B;
    transform: scale(1.2);
}

.favorite-star-icon.favorited {
    color: #F59E0B;
}

.creator-info-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.dark-mode .creator-info-container {
    color: #aaaaaa;
}

.user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #7300e6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dark-mode .user-avatar-circle {
    background-color: #bb86fc;
}

.dark-mode button.section-btn:hover {
    background-color: #282828;
}

button.section-btn:hover {
    background-color: #ececec;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    
}

table th {
    padding: 5px !important;
}
