/* Estilos personalizados para Validador ICT */

/* General */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Progress bars */
.progress {
    border-radius: 0.5rem;
}

/* Tables */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Status colors */
.status-cumple {
    color: #198754;
}

.status-no_cumple {
    color: #dc3545;
}

.status-revisar {
    color: #ffc107;
}

.status-pendiente {
    color: #6c757d;
}

/* Upload area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.upload-area i {
    font-size: 3rem;
    color: #dc3545;
}

/* Animations */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result rows */
.result-row {
    transition: background-color 0.2s ease;
}

.result-row:hover {
    background-color: #f8f9fa;
}

/* Quick action buttons */
.quick-status {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.quick-status:hover {
    opacity: 1;
}

/* Modal */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Checklist items */
.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Code blocks */
code {
    padding: 0.2rem 0.4rem;
    font-size: 0.875em;
    color: #d63384;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
    }
    
    .progress-bar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header h5 {
        font-size: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
    }
}

/* Confidence bar colors */
.confidence-high {
    background-color: #198754;
}

.confidence-medium {
    background-color: #ffc107;
}

.confidence-low {
    background-color: #dc3545;
}

/* Alert customization */
.alert {
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-success {
    border-left-color: #198754;
}

/* Tooltip styles */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
