/* Header Styles */
.top-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.breadcrumb .current-page {
    color: #334155;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Notifications */
.notification-dropdown {
    position: relative;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.notification-dropdown:hover .notification-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.notification-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.notification-count {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 1rem;
    transition: background 0.3s ease;
}

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

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0369a1;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: #94a3b8;
    font-size: 0.8rem;
}

.notification-footer {
    padding: 1rem 1.25rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.view-all {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: #f1f5f9;
}

.user-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info-header {
    text-align: left;
}

.user-name-header {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.user-role-header {
    color: #64748b;
    font-size: 0.8rem;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

/* Page Header */
.page-header {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-title-section .page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.page-title-section .page-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #ea580c;
}

.alert-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-header {
        padding: 0 1rem;
    }
    
    .search-box {
        display: none;
    }
    
    .user-info-header {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .page-header {
        padding: 1.5rem 1rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .notification-dropdown-content {
        width: 300px;
        right: -50px;
    }
}
/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
}

.footer-left .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    font-size: 2rem;
}

.footer-logo-text .footer-logo-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.footer-logo-text .footer-logo-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.footer-middle .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #3b82f6;
}

.footer-right .footer-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.info-item i {
    width: 16px;
    color: #3b82f6;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.5rem 2rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.copyright p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #3b82f6;
}

.footer-actions {
    display: flex;
    gap: 0.5rem;
}

.footer-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Dark Mode Styles */
.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

.dark-mode .top-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

.dark-mode .sidebar {
    background: #1e293b;
    border-right-color: #334155;
}

.dark-mode .main-content {
    background: #0f172a;
}

/* Dropdown Show States */
.notification-dropdown-content.show,
.user-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-left .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-middle .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 2rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-middle .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Loading Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .main-footer {
        display: none;
    }
}

/* End of Footer Styles */

/* Custom Styles */
/* Estilos para o control sidebar personalizado */
.control-sidebar-content .form-group {
    margin-bottom: 1rem;
}

.control-sidebar-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.control-sidebar-content h6 {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.control-sidebar-content input[type="checkbox"] {
    margin-right: 0.5rem;
}

.control-sidebar-content .custom-select {
    font-size: 0.875rem;
}

/* Estilos para as variantes de brand */
.brand-primary { background-color: #007bff !important; }
.brand-secondary { background-color: #6c757d !important; }
.brand-success { background-color: #28a745 !important; }
.brand-info { background-color: #17a2b8 !important; }
.brand-warning { background-color: #ffc107 !important; color: #212529 !important; }
.brand-danger { background-color: #dc3545 !important; }
.brand-dark { background-color: #343a40 !important; }
.brand-light { background-color: #f8f9fa !important; color: #212529 !important; }
.brand-white { background-color: #ffffff !important; color: #212529 !important; }

/* Ajuste para texto em navbar colorida */
.navbar-primary .navbar-nav .nav-link,
.navbar-secondary .navbar-nav .nav-link,
.navbar-success .navbar-nav .nav-link,
.navbar-info .navbar-nav .nav-link,
.navbar-danger .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link,
.navbar-indigo .navbar-nav .nav-link,
.navbar-purple .navbar-nav .nav-link,
.navbar-pink .navbar-nav .nav-link,
.navbar-navy .navbar-nav .nav-link,
.navbar-lightblue .navbar-nav .nav-link,
.navbar-teal .navbar-nav .nav-link,
.navbar-cyan .navbar-nav .nav-link,
.navbar-gray-dark .navbar-nav .nav-link,
.navbar-gray .navbar-nav .nav-link,
.navbar-orange .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-primary .navbar-nav .nav-link:hover,
.navbar-secondary .navbar-nav .nav-link:hover,
.navbar-success .navbar-nav .nav-link:hover,
.navbar-info .navbar-nav .nav-link:hover,
.navbar-danger .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-indigo .navbar-nav .nav-link:hover,
.navbar-purple .navbar-nav .nav-link:hover,
.navbar-pink .navbar-nav .nav-link:hover,
.navbar-navy .navbar-nav .nav-link:hover,
.navbar-lightblue .navbar-nav .nav-link:hover,
.navbar-teal .navbar-nav .nav-link:hover,
.navbar-cyan .navbar-nav .nav-link:hover,
.navbar-gray-dark .navbar-nav .nav-link:hover,
.navbar-gray .navbar-nav .nav-link:hover,
.navbar-orange .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* Fim dos Estilos Personalizados */