/* Estilos gerais */
body {
    background-color: #f8f9fa;
    padding-top: 50px !important; /* Força o espaçamento abaixo da navbar fixa */
}

/* Estilos da navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Estilos dos cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Estilos dos botões */
.btn {
    border-radius: 0.25rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Estilos das tabelas */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
}

/* Estilos dos formulários */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 0;
    }
}

/* Estilos para o visualizador de arquivos */
.file-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: #fff;
}

/* Estilos para mensagens de alerta */
.alert {
    border: none;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Estilos para ícones */
.fas {
    margin-right: 0.25rem;
}

/* Estilos para o upload de arquivos */
.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 0.25rem;
}

/* Estilos para o loader */
.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para botões de ação na tabela */
.table .btn-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.table .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .table .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table .btn-group .btn {
        width: 100%;
    }
}

/* Dashboard Moderno */
.dashboard-card {
    min-height: 120px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 0.5rem;
    transition: box-shadow 0.2s;
}
.dashboard-card .fs-5 {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.dashboard-card .display-6 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0;
}
.dashboard-card.bg-primary {
    background: linear-gradient(135deg, #2563eb 60%, #60a5fa 100%);
    color: #fff;
}
.dashboard-card.bg-success {
    background: linear-gradient(135deg, #059669 60%, #34d399 100%);
    color: #fff;
}
.dashboard-card.bg-info {
    background: linear-gradient(135deg, #06b6d4 60%, #67e8f9 100%);
    color: #fff;
}
.dashboard-card.bg-warning {
    background: linear-gradient(135deg, #f59e42 60%, #fde68a 100%);
    color: #333;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.dashboard-card.bg-secondary {
    background: linear-gradient(135deg, #6b7280 60%, #d1d5db 100%);
    color: #fff;
}
.dashboard-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    max-height: 110px;
    overflow-y: auto;
    font-size: 0.98rem;
}
.dashboard-card ul li {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
}
.dashboard-card ul li i {
    margin-right: 0.5rem;
}
@media (max-width: 991px) {
    .dashboard-card {
        min-height: 100px;
        padding: 0.7rem 0.2rem;
    }
    .dashboard-card .display-6 {
        font-size: 1.5rem;
    }
}
@media (max-width: 767px) {
    .dashboard-card {
        min-height: 90px;
        padding: 0.5rem 0.1rem;
    }
    .dashboard-card .display-6 {
        font-size: 1.2rem;
    }
}

.recent-files-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    max-height: 140px;
    overflow-y: auto;
    text-align: left;
    font-size: 0.95rem;
}
.recent-files-list li {
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.2rem;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
}
.recent-files-list li:hover {
    background: #fffbe6;
}
.file-name {
    font-weight: 500;
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 220px;
    color: #1d3557;
    text-decoration: underline dotted;
    cursor: pointer;
}
.file-name:hover {
    color: #0d47a1;
    text-decoration: underline;
}
.file-date {
    font-size: 0.85rem;
    color: #888;
    margin-left: 1.5rem;
}

/* Estilos para o indicador de força da senha */
.password-strength {
    margin-top: 10px;
}
.strength-criteria {
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.strength-criteria.invalid {
    color: #721c24 !important;
    background-color: #f8d7da !important;
}
.strength-criteria.valid {
    color: #155724 !important;
    background-color: #d4edda !important;
}
.strength-criteria i {
    margin-right: 8px;
} 