@charset "UTF-8";
/* Extraído de templates/base.html (linha 880). Mantenha a ordem dos <link> no template. */
        :root {
            --bs-primary: #1a1a1a;
            --bs-primary-rgb: 26, 26, 26;
            --bs-secondary: #4a4a4a;
            --bs-success: #28a745;
            --bs-info: #2d2d2d;
            --bs-warning: #dc3545;
            --bs-danger: #c0392b;
            --bs-light: #f8f9fa;
            --bs-dark: #212529;
        }
        
        body {
            font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
            font-size: 1.125rem !important; /* Aumentado de 1rem (16px) para 1.125rem (18px) */
            background-color: #f5f5f5;
            color: #1a1a1a;
        }
        
        /* Títulos com Roboto Bold */
        h1, h2, h3, h4, h5, h6,
        .h1, .h2, .h3, .h4, .h5, .h6,
        .card-title,
        .navbar-brand,
        .page-title,
        .sidebar-brand,
        .alert-heading,
        .modal-title,
        .dropdown-header,
        .breadcrumb-item.active,
        .list-group-item.active {
            font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
            font-weight: 700 !important;
        }
        
        body.dark {
            background-color: #1a1d20;
            color: #e9ecef;
        }
        
        .dark .card {
            background-color: #2c3034;
            border-color: #373b3e;
            color: #e9ecef;
        }
        
        .dark .navbar {
            background-color: #2c3034 !important;
            border-bottom: 1px solid #373b3e;
        }
        
        .dark .navbar-brand,
        .dark .nav-link {
            color: #e9ecef !important;
        }
        
        /* PWA Styles */
        body.pwa-installed {
            /* Estilos específicos quando instalado como PWA */
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
        
        /* Estilo para botão de instalação PWA - DESATIVADO
        #pwa-install-button {
            animation: slideInUp 0.3s ease-out;
        }
        */
        
        @keyframes slideInUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        /* Estilo para notificações de atualização */
        .alert.position-fixed {
            animation: slideInRight 0.3s ease-out;
        }
        
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        /* Estilo para splash screen (se necessário) */
        .pwa-splash {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            color: white;
            font-family: 'Roboto', sans-serif;
        }
        
        .pwa-splash .logo {
            width: 120px;
            height: 120px;
            margin-bottom: 2rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            backdrop-filter: blur(10px);
        }
        
        .pwa-splash .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-top: 1rem;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .dark .nav-link:hover {
            color: #fff !important;
        }
        
        .dark .footer {
            background-color: #2c3034;
            color: #e9ecef;
            border-top: 1px solid #373b3e;
        }

        /* Links do rodapé: apenas texto branco, sem botão */
        .footer a.footer-link {
            background: none !important;
            border: none !important;
            color: #fff !important;
            padding: 0 !important;
            box-shadow: none !important;
        }
        .footer a.footer-link:hover {
            color: rgba(255,255,255,0.9) !important;
            background: transparent !important;
        }
        .footer a.footer-link i {
            color: #fff !important;
        }
        .footer .footer-brand {
            color: rgba(255, 255, 255, 0.72);
        }

        .dark .form-control {
            background-color: #2c3034;
            border-color: #373b3e;
            color: #e9ecef;
        }
        
        .dark .form-control:focus {
            background-color: #2c3034;
            border-color: #1a1a1a;
            color: #e9ecef;
        }
        
        /* Sistema de Notificações */
        .notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            max-width: 400px;
        }
        
        .notification {
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            margin-bottom: 10px;
            overflow: hidden;
            animation: slideInRight 0.3s ease-out;
            border-left: 4px solid #28a745;
            max-width: 400px;
        }
        
        .notification.error {
            border-left-color: #dc3545;
        }
        
        .notification.warning {
            border-left-color: #ffc107;
        }
        
        .notification.info {
            border-left-color: #17a2b8;
        }
        
        .notification-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
        }
        
        .notification-title {
            font-weight: 600;
            font-size: 14px;
            color: #495057;
            margin: 0;
        }
        
        .notification-actions {
            display: flex;
            gap: 8px;
        }
        
        .notification-btn {
            background: none;
            border: none;
            padding: 4px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: background-color 0.2s;
        }
        
        .notification-btn:hover {
            background-color: #e9ecef;
        }
        
        .notification-btn.copy {
            color: #6c757d;
        }
        
        .notification-btn.close {
            color: #dc3545;
        }
        
        .notification-body {
            padding: 12px 16px;
            color: #495057;
            font-size: 14px;
            line-height: 1.4;
            word-wrap: break-word;
        }
        
        .notification.success .notification-header {
            background: #d4edda;
        }
        
        .notification.error .notification-header {
            background: #f8d7da;
        }
        
        .notification.warning .notification-header {
            background: #fff3cd;
        }
        
        .notification.info .notification-header {
            background: #d1ecf1;
        }
        
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }
        
        .notification.removing {
            animation: slideOutRight 0.3s ease-in forwards;
        }
        
        /* Dark mode para notificações */
        .dark .notification {
            background: #2c3034;
            color: #e9ecef;
        }
        
        .dark .notification-header {
            background: #343a40;
            border-bottom-color: #495057;
        }
        
        .dark .notification-title {
            color: #e9ecef;
        }
        
        .dark .notification-body {
            color: #e9ecef;
        }
        
        .dark .notification-btn:hover {
            background-color: #495057;
        }
        
        .dark .table {
            color: #e9ecef;
        }
        
        .dark .table td, 
        .dark .table th {
            border-color: #373b3e;
        }
        
        .dark .dropdown-menu {
            background-color: #2c3034;
            border-color: #373b3e;
        }
        
        .dark .dropdown-item {
            color: #e9ecef;
        }
        
        .dark .dropdown-item:hover {
            background-color: #373b3e;
            color: #fff;
        }
        
        /* Preservar cor vermelha no hover do botão Sair */
        .dark .dropdown-item.text-danger:hover {
            color: #dc3545 !important;
        }
        
        .dropdown-item.text-danger:hover {
            color: #dc3545 !important;
        }
        
        .dark .dropdown-divider {
            border-color: #373b3e;
        }
        
        .dark .toast {
            background-color: #2c3034;
            color: #e9ecef;
        }
        
        .dark .btn-close {
            filter: invert(1) grayscale(100%) brightness(200%);
        }
        
        .dark .alert {
            background-color: #2c3034;
            border-color: #373b3e;
            color: #e9ecef;
        }
        
        .dark .alert-danger {
            background-color: #2c1f1f;
            border-color: #dc3545;
            color: #ff6b6b;
        }
        
        .dark .alert-success {
            background-color: #1f2c1f;
            border-color: #198754;
            color: #75b798;
        }
        
        .dark .alert-warning {
            background-color: #2c281f;
            border-color: #ffc107;
            color: #ffda6a;
        }
        
        .dark .alert-info {
            background-color: #1f2c2c;
            border-color: #2d2d2d;
            color: #6edff6;
        }
        
        /* Estilos para submenus em cascata */
        .dropdown-submenu {
            position: absolute;
            left: 100%;
            top: 0;
            display: none;
        }
        
        .dropend:hover > .dropdown-menu {
            display: block;
        }
        
        .dropend .dropdown-toggle::after {
            vertical-align: middle;
            margin-left: 0.5em;
        }
        
        /* Estilo específico para o menu da biblioteca */
        #navbarBiblioteca + .dropdown-menu {
            margin-top: 10px !important;
            padding-top: 15px !important;
        }
        
        /* Estilo global para todos os menus dropdown da navbar */
        .navbar .dropdown-menu {
            margin-top: 10px !important;
        }
        
        @media (max-width: 992px) {
            .dropdown-submenu {
                position: static;
                margin-left: 1rem;
            }
            
            .dropend .dropdown-toggle::after {
                transform: rotate(-90deg);
            }
        }
    
