/* Sistema de Orçamentos - Estilos Customizados */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Layout Principal */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Centralização de Conteúdo */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Formulários Centralizados */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Cards Centralizados */
.card-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Cabeçalho de Página Elegante */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none; /* Permitir cliques através do pseudo-elemento */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-icon i {
    font-size: 1.5rem;
    color: white;
}

.header-text {
    color: white;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 0.95rem;
    margin: 0.3rem 0 0 0;
    opacity: 0.9;
    font-weight: 400;
}

.header-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 140px;
    max-width: 200px;
}

.header-btn:hover {
    background: white !important;
    color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Estado Vazio Elegante */
.empty-state {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    position: relative;
    z-index: 2;
}

.empty-icon i {
    font-size: 2rem;
    color: white;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.empty-text {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.empty-btn {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 2;
}

.empty-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
}

/* Responsividade do Cabeçalho */
@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-icon {
        margin-right: 0.75rem;
        width: 45px;
        height: 45px;
    }
    
    .header-icon i {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .page-subtitle {
        font-size: 0.85rem;
        margin: 0.2rem 0 0 0;
    }
    
    .header-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem;
        min-width: 120px;
        max-width: 150px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 0.75rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .header-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .header-icon i {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .header-btn {
        width: auto;
        margin-top: 0.5rem;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem;
        min-width: 100px;
        max-width: 130px;
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .page-header {
        padding: 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        margin-bottom: 0.75rem;
        justify-content: center;
    }
    
    .header-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 35px;
        height: 35px;
    }
    
    .header-icon i {
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
        margin: 0.2rem 0 0 0;
    }
    
    .header-btn {
        width: auto;
        margin-top: 0.5rem;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem;
        min-width: 80px;
        max-width: 110px;
    }
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.25);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 10px 10px 0 0 !important;
}

/* Botões */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
}

/* Tabelas */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fc;
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
    color: #5a5c69;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fc;
}

/* Formulários */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d3e2;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
}

/* Alertas */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Paginação */
.pagination {
    border-radius: 10px;
}

.page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #d1d3e2;
    color: #5a5c69;
    font-weight: 500;
}

.page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Estatísticas */
.border-left-primary {
    border-left: 4px solid #007bff !important;
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 4px solid #ffc107 !important;
}

.border-left-danger {
    border-left: 4px solid #dc3545 !important;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Utilitários */
.text-primary {
    color: #007bff !important;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Sistema de Toast Elegante e Moderno */
.toast-container {
    z-index: 1055;
}

.toast {
    position: relative;
    min-width: 320px;
    max-width: 420px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    position: relative;
    z-index: 2;
}

.toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.toast-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.toast:hover .toast-icon::before {
    transform: translateX(100%);
}

.toast-icon i {
    font-size: 1.4rem;
    color: white;
    z-index: 1;
    position: relative;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: #5a6c7d;
    word-wrap: break-word;
}

.toast-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #8e9aaf;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 0.75rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    transform: scale(1.05);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
    border-radius: 0 0 16px 16px;
    animation: toast-progress 5s linear forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes toast-progress {
    from { 
        width: 100%; 
        opacity: 1;
    }
    to { 
        width: 0%; 
        opacity: 0.3;
    }
}

/* Tipos de Toast - Design Moderno */
.toast-success {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.toast-error {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.toast-warning {
    border-left: 5px solid #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #ffc107, #f39c12);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.toast-info {
    border-left: 5px solid #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f5fcff 100%);
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #17a2b8, #3498db);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

/* Toast de Permissão Especial */
.toast-permission {
    border-left: 5px solid #6f42c1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f5ff 100%);
}

.toast-permission .toast-icon {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

/* Animações Modernas */
.toast {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.toast:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 12px 35px rgba(0, 0, 0, 0.1);
}

/* Modal de Confirmação Elegante */
.modal-confirm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-confirm .modal-dialog {
    max-width: 450px;
    margin: 1.75rem auto;
}

.modal-confirm .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 12px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.modal-confirm .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 1.5rem 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.modal-confirm .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.modal-confirm:hover .modal-header::before {
    transform: translateX(100%);
}

.modal-confirm .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.modal-confirm .modal-title i {
    margin-right: 0.75rem;
    font-size: 1.4rem;
}

.modal-confirm .btn-close {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    filter: none !important;
}

.modal-confirm .btn-close i {
    color: white !important;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.modal-confirm .btn-close:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.modal-confirm .modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-confirm .modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-confirm .modal-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.modal-confirm:hover .modal-icon::before {
    transform: translateX(100%);
}

.modal-confirm .modal-icon i {
    font-size: 2.5rem;
    color: white !important;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.modal-confirm .modal-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-confirm .modal-warning {
    font-size: 0.9rem;
    color: #6c757d;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-top: 1rem;
}

.modal-confirm .modal-footer {
    background: #f8f9fa;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-confirm .btn {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-confirm .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.modal-confirm .btn:hover::before {
    transform: translateX(100%);
}

.modal-confirm .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.modal-confirm .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.modal-confirm .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.modal-confirm .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Responsividade */
@media (max-width: 576px) {
    .toast {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }
    
    .toast-content {
        padding: 0.875rem 1rem;
    }
    
    .toast-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
    
    .modal-confirm .modal-dialog {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .modal-confirm .modal-header,
    .modal-confirm .modal-body,
    .modal-confirm .modal-footer {
        padding: 1.25rem;
    }
    
    .modal-confirm .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-confirm .modal-icon i {
        font-size: 1.5rem;
    }
    
    .modal-confirm .btn-close {
        width: 28px;
        height: 28px;
    }
    
    .modal-confirm .btn-close i {
        font-size: 0.8rem;
    }
    
    .modal-confirm .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-confirm .modal-title i {
        font-size: 1.2rem;
    }
    
    .toast-icon i {
        font-size: 1rem;
    }
    
    .toast-message {
        font-size: 0.9rem;
    }
}

/* Efeitos especiais */
.toast:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.toast-success:hover {
    border-left-color: #1e7e34;
}

.toast-error:hover {
    border-left-color: #c82333;
}

.toast-warning:hover {
    border-left-color: #e0a800;
}

.toast-info:hover {
    border-left-color: #138496;
}

/* Botões de Ícone no Header */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.header-icon-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    z-index: 10 !important;
    cursor: pointer !important;
}

.header-icon-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.header-icon-btn i {
    font-size: 1.2rem !important;
    margin: 0 !important;
}

/* Responsividade para botões de ícone */
@media (max-width: 768px) {
    .header-actions {
        gap: 0.4rem !important;
    }
    
    .header-icon-btn {
        width: 45px !important;
        height: 45px !important;
    }
    
    .header-icon-btn i {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .header-actions {
        gap: 0.3rem !important;
    }
    
    .header-icon-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .header-icon-btn i {
        font-size: 1rem !important;
    }
}

/* Botões de Ação Elegantes */
.action-btn {
    position: relative;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 2px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.action-btn:hover::before {
    transform: translateX(100%);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.action-btn:active {
    transform: translateY(0) scale(0.95) !important;
}

.action-btn i {
    font-size: 14px !important;
    margin: 0 !important;
    z-index: 1;
    position: relative;
}

/* Cores específicas para cada ação */
.action-btn-view {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
}

.action-btn-view:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
}

.action-btn-edit {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: white !important;
}

.action-btn-edit:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00) !important;
    color: white !important;
}

.action-btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.action-btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: white !important;
}

/* Botões adicionais */
.action-btn-approve {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: white !important;
}

.action-btn-approve:hover {
    background: linear-gradient(135deg, #1e7e34, #155724) !important;
    color: white !important;
}

.action-btn-reject {
    background: linear-gradient(135deg, #6c757d, #545b62) !important;
    color: white !important;
}

.action-btn-reject:hover {
    background: linear-gradient(135deg, #545b62, #3d4449) !important;
    color: white !important;
}

.action-btn-duplicate {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white !important;
}

.action-btn-duplicate:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    color: white !important;
}

/* Botões de toggle status */
.action-btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: white !important;
}

.action-btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155724) !important;
    color: white !important;
}

.action-btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.action-btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: white !important;
}

.action-btn-pdf {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

.action-btn-pdf:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: white !important;
}

.action-btn-email {
    background: linear-gradient(135deg, #6f42c1, #5a32a3) !important;
    color: white !important;
}

.action-btn-email:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a8a) !important;
    color: white !important;
}

/* Grupo de botões de ação */
.action-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    justify-content: center !important;
}

/* Tooltip personalizado */
.action-btn[data-bs-toggle="tooltip"] {
    position: relative;
}

.action-btn[data-bs-toggle="tooltip"]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Remover ícones de validação do Bootstrap */
.was-validated .form-control:valid,
.form-control.is-valid {
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.was-validated .form-select:valid,
.form-select.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
}

.was-validated .form-select:invalid,
.form-select.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.25rem !important;
}

/* Melhorias de Alinhamento e Espaçamento */
.table td, .table th {
    padding: 0.75rem 1rem !important;
    vertical-align: middle !important;
}

.table th {
    padding: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.table td:first-child {
    text-align: center !important;
    font-weight: 600 !important;
}

.table td:last-child {
    text-align: center !important;
}

.table td:nth-child(2) {
    text-align: left !important;
    padding-left: 1.5rem !important;
}

.table td:nth-child(3),
.table td:nth-child(4),
.table td:nth-child(5),
.table td:nth-child(6) {
    text-align: center !important;
}

/* Espaçamento para seções de categorias */
.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Melhorar espaçamento dos títulos das seções */
.text-primary, .text-info {
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
}

/* Melhorar espaçamento do alerta de orientação */
.alert {
    padding: 1rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 8px !important;
}

/* Melhorar espaçamento dos botões de ação */
.action-group {
    gap: 0.5rem !important;
    justify-content: center !important;
    padding: 0.25rem !important;
}

/* Melhorar espaçamento dos cards */
.card-body {
    padding: 1.5rem !important;
}

.card-header {
    padding: 1rem 1.5rem !important;
}

/* Responsividade para botões de ação */
@media (max-width: 768px) {
    .action-btn {
        width: 32px !important;
        height: 32px !important;
        margin: 0 1px !important;
    }
    
    .action-btn i {
        font-size: 12px !important;
    }
    
    .table td, .table th {
        padding: 0.5rem 0.75rem !important;
    }
}

/* =====================================================
   ESTILOS PARA CONFIGURAÇÕES - MELHOR DISTRIBUIÇÃO
   ===================================================== */

/* Grid de informações da empresa */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.info-value {
    color: #212529;
    font-size: 0.95rem;
    word-break: break-word;
}

/* Logo preview */
.logo-preview-container {
    position: relative;
    display: inline-block;
}

.logo-preview {
    transition: transform 0.2s ease;
    object-fit: contain;
}

.logo-preview:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    position: relative;
    display: inline-block;
}

.logo-placeholder:hover {
    opacity: 0.8;
}

/* Endereço */
.address-info {
    line-height: 1.6;
}

.address-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.address-line i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Melhorias para cards de configuração */
.card-header h5 {
    font-weight: 600;
}

/* Responsividade para configurações */
@media (max-width: 768px) {
    .info-grid {
        gap: 0.75rem;
    }
    
    .logo-preview,
    .logo-placeholder > div {
        max-height: 80px !important;
        max-width: 150px !important;
    }
    
    .address-line {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .address-line i {
        margin-top: 0;
    }
}

/* Animações suaves */
.info-item {
    transition: background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: 4px;
}

.info-item:hover {
    background-color: #f8f9fa;
}

/* Melhorias para links */
.info-value a {
    color: #007bff;
    transition: color 0.2s ease;
}

.info-value a:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

@media (max-width: 576px) {
    .action-btn {
        width: 30px !important;
        height: 30px !important;
        margin: 0 1px !important;
    }
    
    .action-btn i {
        font-size: 11px !important;
    }
}

/* Estilos para Paginação */
.pagination {
    margin: 0;
}

.pagination .page-link {
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Efeito especial para botões Anterior/Próximo */
.pagination .page-link i {
    margin: 0 0.25rem;
    transition: transform 0.2s ease;
}

.pagination .page-link:hover i {
    transform: scale(1.1);
}

/* Responsividade da paginação */
@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
        margin: 1px;
    }
    
    .pagination .page-item:not(.active):not(.disabled) {
        display: none;
    }
    
    .pagination .page-item.active,
    .pagination .page-item:first-child,
    .pagination .page-item:last-child {
        display: block;
    }
}

/* Alinhamento específico para coluna NOME em serviços */
.table td.text-start {
    text-align: left !important;
}

.table td.text-start div {
    text-align: left !important;
}

/* Sobrescrever regra global que centraliza primeira coluna */
.table td:first-child.text-start {
    text-align: left !important;
}

.table td:first-child.text-start div {
    text-align: left !important;
}

/* CSS para modais de confirmação (materiais) */
.modal-confirm .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-confirm .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-confirm .modal-header .btn-close {
    filter: none !important;
}

.modal-confirm .modal-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-confirm .modal-icon i {
    font-size: 3rem;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.modal-confirm .modal-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal-confirm .modal-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 0.75rem;
    color: #856404;
    font-size: 0.9rem;
}

.modal-confirm .modal-footer {
    border: none;
    padding: 1.5rem;
}

.modal-confirm .btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.modal-confirm .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
}

.modal-confirm .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ============================================
   SIDEBAR LATERAL
   ============================================ */

/* Sidebar Principal */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.sidebar-brand:hover {
    color: #fff;
    opacity: 0.8;
}

.sidebar-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
    display: none; /* Oculto por padrão, visível apenas quando necessário */
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin: 0.25rem 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #3498db;
}

.sidebar-menu-item.active .sidebar-menu-link {
    background: rgba(52, 152, 219, 0.2);
    color: #fff;
    border-left-color: #3498db;
    font-weight: 500;
}

.sidebar-menu-icon {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-menu-text {
    flex: 1;
    white-space: nowrap;
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.sidebar-user {
    padding: 0;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.sidebar-user-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-badge {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.sidebar-user-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-user-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.2s;
    width: 100%;
}

.sidebar-user-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-user-link i {
    width: 18px;
    margin-right: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.sidebar-user-link span {
    flex: 1;
}

.sidebar-user-link.text-danger {
    color: rgba(220, 53, 69, 0.9) !important;
}

.sidebar-user-link.text-danger:hover {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.15);
}

.sidebar-divider {
    margin: 0.5rem 0;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Top Header (substitui navbar) */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
    gap: 1rem;
}

.sidebar-toggle-mobile {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #495057;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.sidebar-toggle-mobile:hover {
    background: #f8f9fa;
}

.top-header-title {
    flex: 1;
    min-width: 0;
}

.top-header-title-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-header-user {
    display: flex;
    align-items: center;
}

.top-header-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.top-header-user-info i {
    font-size: 1.5rem;
    color: #6c757d;
}

.top-header-user-name {
    font-weight: 500;
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content Wrapper */
.main-content-wrapper {
    margin-left: 280px;
    margin-top: 60px;
    padding: 1.5rem;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease;
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle-btn {
        display: block;
    }
    
    .sidebar-toggle-mobile {
        display: block;
    }
    
    .main-content-wrapper {
        margin-left: 0;
    }
    
    .sidebar-brand-text {
        display: none;
    }
    
    .sidebar {
        width: 260px;
    }
}

/* Desktop - Sidebar sempre visível */
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0) !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* Scrollbar personalizado para sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.main-footer {
    margin-left: 280px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    transition: margin-left 0.3s ease;
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .main-footer {
        margin-left: 0;
    }
}

/* Ajustar body quando sidebar está aberto no mobile */
body.sidebar-open {
    overflow: hidden;
}