/**
 * Estilos para el Verificador TSA - Estilo LegallyMail
 */

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #f8f9fc;
}

.upload-area.drag-over {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-area h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-input {
    display: none;
}

.file-info {
    padding: 0.75rem;
    background-color: #e7f1ff;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.file-info.show {
    display: block;
}

/* Cards */
.card {
    border-radius: 8px;
    border: none;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Buttons */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border-left-width: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Info Cards */
.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    line-height: 1.6;
    color: #5a5c69;
}

/* List styling */
.list-unstyled li {
    line-height: 1.8;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Display utilities */
.display-4 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
}

/* Verification Output Styles */
.verification-output {
    background-color: #fff;
    border-radius: 6px;
}

.verification-pre {
    background-color: #f8f9fa;
    border: 1px solid #e3e6f0;
    border-radius: 6px;
    padding: 16px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 0;
}

.verification-pre .text-success {
    color: #198754 !important;
    font-weight: 600;
}

.verification-pre .text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

.verification-pre .text-warning {
    color: #ffc107 !important;
    font-weight: 600;
}

.verification-pre .text-primary {
    color: #0d6efd !important;
}

.verification-pre .fw-bold {
    font-weight: 700 !important;
}

.verification-pre .fs-5 {
    font-size: 1.1rem !important;
}

/* Status Badge inside verification output */
.verification-pre .badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.verification-pre .bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.verification-pre .bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}