/* Estilos personalizados para o Backup Manager */

/* Navbar personalizada - sempre visível */
.navbar {
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand i {
    font-size: 1.8rem;
}

/* Indicador de página ativa */
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    font-weight: 600;
}

/* Hover nos links da navbar */
.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

/* Dropdown do usuário */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* Botão mobile da navbar */
.navbar-toggler:focus {
    box-shadow: none;
}

/* Espaçamento para navbar fixa */
body {
    padding-top: 0;
}

/* Cards com sombras suaves */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Botões com transições suaves */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Tabelas responsivas */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Paginação personalizada */
.pagination .page-link {
    border: none;
    color: #6c757d;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Alertas com bordas arredondadas */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Formulários com foco melhorado */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Badges com transições */
.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

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

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

/* Responsividade para mobile */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Melhorias para o dashboard */
.dashboard-stats .card {
    border-left: 4px solid;
}

.dashboard-stats .card.border-primary {
    border-left-color: #0d6efd;
}

.dashboard-stats .card.border-success {
    border-left-color: #198754;
}

.dashboard-stats .card.border-warning {
    border-left-color: #ffc107;
}

.dashboard-stats .card.border-danger {
    border-left-color: #dc3545;
}

/* Filtros com melhor aparência */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Estatísticas em cards */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.stats-card .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filtros de data */
.filter-section .form-control[type="date"] {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-section .form-control[type="date"]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.filter-section .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Melhorias nos filtros */
.filter-section .card-body {
    padding: 1.5rem;
}

.filter-section .btn {
    min-width: 100px;
}

/* Responsividade dos filtros */
@media (max-width: 768px) {
    .filter-section .col-md-2,
    .filter-section .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .filter-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
