/* Estilos del Sistema de Gestión de Facturas */

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 700;
}

.card {
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.login-container {
    max-width: 420px;
    margin: 80px auto;
}

.login-container .card {
    border-top: 4px solid #0d6efd;
}

.login-container .card-body {
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo i {
    font-size: 3rem;
    color: #0d6efd;
}

.stat-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-pendiente { background-color: #ffc107; color: #000; }
.badge-aceptada { background-color: #198754; }
.badge-rechazada { background-color: #dc3545; }

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin: 0 2px;
}

.form-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.form-section h5 {
    color: #0d6efd;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.file-preview {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-preview:hover {
    border-color: #0d6efd;
}

.file-preview.dragover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
}

.timeline-item.accion-creacion::before { background: #198754; }
.timeline-item.accion-aceptada::before { background: #198754; }
.timeline-item.accion-rechazada::before { background: #dc3545; }
.timeline-item.accion-editada::before { background: #ffc107; }

.filter-panel {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.catalogo-tab {
    border-left: 3px solid #0d6efd;
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .stat-card .stat-number {
        font-size: 1.8rem;
    }
    .container-fluid {
        padding: 0 10px;
    }
}
