:root {
    --primary-color: #1AC0C4;
    --secondary-color: #2C3E50;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --dark-text: #2c3e50;
    --light-text: #6c757d;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-text);
    line-height: 1.6;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #47368C 0%, #5a4a9c 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container {
    background: white;
    padding: 2rem 1.5rem;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #47368C;
    justify-content: center;
}

.logo i {
    font-size: 2rem;
    margin-right: 0.5rem;
    color: #47368C;
}

.logo-image {
    height: 3rem;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.nav-link.active {
    background-color: rgba(26, 192, 196, 0.2);
    color: white;
    border-left-color: var(--primary-color);
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 2rem;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
}

/* Dashboard */
.dashboard-container {
    width: 100%;
    margin: 0;
}

.dashboard-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.dashboard-header h1 i {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.dashboard-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2.5rem 4.5rem;
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.metric-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.metric-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.metric-info h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.metric-info p {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
}

.chart-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.chart-card h3 i {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Page Headers */
.page-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.page-header h1 i {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.page-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Analysis Container */
.analysis-container {
    width: 100%;
    margin: 0;
}

.case-selector {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.selector-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.selector-label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.case-info {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.info-header h3 i {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-item span {
    color: var(--dark-text);
    font-size: 1rem;
}

.info-description label {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: block;
}

.info-description p {
    color: var(--dark-text);
    line-height: 1.6;
    margin: 0;
}

.analysis-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.response-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.response-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.response-label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.response-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.response-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 192, 196, 0.1);
}

.email-actions {
    text-align: center;
}

/* Cases Container */
.cases-container {
    width: 100%;
    margin: 0;
}

.filters-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-input-group {
    position: relative;
    max-width: 500px;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.search-input-group .form-control {
    padding-left: 3rem;
}

.filters-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    align-items: end;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-text);
}

.table-header h3 i {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: var(--dark-text);
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
}

.title-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.categoria-badge {
    background-color: #e3f2fd;
    color: #1976d2;
}

.prioridad-badge {
    color: white;
}

.prioridad-critica {
    background-color: #dc3545;
}

.prioridad-alta {
    background-color: #fd7e14;
}

.prioridad-media {
    background-color: #ffc107;
    color: #212529;
}

.prioridad-baja {
    background-color: #28a745;
}

.estado-badge {
    color: white;
}

.estado-nuevo {
    background-color: #6c757d;
}

.estado-en_proceso {
    background-color: #FEF3C7;
    color: #92400E;
}

.estado-resuelto {
    background-color: #28a745;
}

.estado-cerrado {
    background-color: #6c757d;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Botones de acción en la tabla - más pequeños y compactos */
.table .action-buttons .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.table .action-buttons .btn i {
    font-size: 0.75rem;
    margin: 0;
}

/* Create Container */
.create-container {
    width: 100%;
    margin: 0;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
}

.form-grid {
    display: grid;
    gap: 2rem;
}

.form-section {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fafbfc;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
}

.form-section h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    display: block;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 192, 196, 0.1);
}

.form-help {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-text);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: #fafbfc;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(26, 192, 196, 0.05);
}

.file-upload-content {
    text-align: center;
}

.file-upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin: 0 auto;
    display: block;
}

.file-upload-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.file-upload-content p {
    color: var(--light-text);
    margin: 0;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.file-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.file-size {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-left: auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Edit Container */
.edit-container {
    width: 100%;
    margin: 0;
}

.edit-form .form-grid {
    display: grid;
    gap: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-item span {
    color: var(--dark-text);
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #17a2a8;
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-danger {
    background-color: transparent;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Custom Modals */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
}

.modal-title.success {
    color: #28a745;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    text-align: center;
    margin: 0;
    color: var(--dark-text);
}

.modal-footer {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Import Container */
.import-container {
    width: 100%;
    margin: 0;
}

.title-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.title-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.title-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-text);
}

.title-header h1 i {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.title-card p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin: 0;
}

.instruction-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-bottom: 2rem;
}

.upload-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-section {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Estilos mejorados para la página de importar */
.instruction-header h3 i,
.upload-header h3 i,
.results-header h3 i {
    color: var(--primary-color) !important;
    margin-right: 0.5rem;
}

.instruction-header h3,
.upload-header h3,
.results-header h3 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
}

.upload-section {
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: #fafbfc;
    margin-bottom: 1rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(26, 192, 196, 0.05);
    transform: translateY(-2px);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.upload-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-text p {
    margin: 0 0 1rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.file-types {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.file-type-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.file-info {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.file-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0.75rem 0;
}

.file-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.file-name {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
}

.file-size {
    display: none;
}

.remove-file-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.remove-file-btn i {
    color: white !important;
    font-size: 0.9rem;
}

.remove-file-btn:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.upload-options {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.option-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.option-text {
    color: var(--dark-text);
    font-size: 0.95rem;
}

.upload-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-buttons .btn {
    min-width: 150px;
}

.format-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.format-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.format-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.format-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.format-table tr:last-child td {
    border-bottom: none;
}

.format-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.required {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.optional {
    background-color: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.format-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.format-notes h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-text);
    font-size: 1rem;
}

.format-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.format-notes li {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.results-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-right: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 2rem;
    margin-top: 2rem;
}

.results-content {
    margin-top: 1rem;
}

.result-summary {
    margin-bottom: 1.5rem;
}

.result-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff5f5;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.error-details h4 {
    margin: 0 0 1rem 0;
    color: #dc3545;
    font-size: 1rem;
}

.error-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-details li {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.9rem;
}

/* Responsive para la página de importar */
@media (max-width: 768px) {
    .upload-content {
        padding: 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .format-table {
        font-size: 0.8rem;
    }
    
    .format-table th,
    .format-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
}
