/* Estilos exactos del proyecto antiguo - Pagos Masivos */

:root { 
    color-scheme: light dark; 
}

body { 
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; 
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0e8ff 100%);
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(107, 0, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-title {
    color: #6B00FF;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
    text-align: center;
    margin: 0 0 2rem 0;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

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

.form-label {
    color: #6B00FF;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6B00FF;
}

.form-select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 3px rgba(107, 0, 255, 0.1);
}

.form-select option {
    color: #333;
    background: white;
    padding: 8px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 0, 255, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

/* Estilos para inputs de archivo */
.file-input-container {
    border: 2px dashed #C21DE0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f4ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-input-container:hover {
    border-color: #6B00FF;
    background: #f0e8ff;
}

.file-input {
    display: none;
}

.file-label {
    color: #6B00FF;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

.file-info {
    margin-top: 1rem;
    display: none;
}

.file-name {
    font-weight: 600;
    color: #6B00FF;
}

.file-size {
    color: #666;
    font-size: 14px;
}

.file-input-container-small {
    border: 1px dashed #C21DE0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: #f8f4ff;
    cursor: pointer;
}

.file-label-small {
    color: #6B00FF;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Sistema de búsqueda y filtrado */
.search-filter-container {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

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

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
}

.search-stats {
    margin-top: 0.5rem;
    color: #666;
    font-size: 14px;
}

.filter-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
}

.filter-options {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.filter-label {
    color: #6B00FF;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.upload-ids-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Tabla de pagos */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.pagos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px;
}

.pagos-table th,
.pagos-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.pagos-table th {
    background: linear-gradient(135deg, #6B00FF 0%, #C21DE0 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pagos-table tbody tr:hover {
    background-color: rgba(107, 0, 255, 0.05);
}

.pago-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendiente {
    background: #fff3cd;
    color: #856404;
}

.status-procesado {
    background: #d4edda;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-completado {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
        margin: 0 1rem;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .pagos-table {
        font-size: 12px;
        min-width: 800px;
    }
}

/* Clases para CSP compliance */
.form-help-text {
    color: #666;
    margin-top: 0.5rem;
    display: block;
}

.hidden-card {
    display: none;
    margin-top: 1rem;
}

.btn-group-margin {
    margin-top: 1rem;
}

/* Estilos para paginación */
.pagination-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 16px;
    background: #6B00FF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.pagination-btn:hover:not(:disabled) {
    background: #5a00d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 0, 255, 0.3);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 120px;
    text-align: center;
}

.pagination-per-page {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
}

.pagination-per-page:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 2px rgba(107, 0, 255, 0.2);
}

.stats-info {
    text-align: center;
    margin: 0.5rem 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 8px;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 4px solid #6B00FF;
}

/* Responsive para paginación */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        min-width: 80px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pagination-info {
        min-width: 100px;
        font-size: 12px;
    }
    
    .pagination-per-page {
        min-width: 120px;
        font-size: 12px;
    }
}

/* Estilos para sección de valor */
.valor-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.valor-section .filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.filter-input:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 2px rgba(107, 0, 255, 0.25);
}

/* Estilos para inputs de valor en la tabla */
.valor-input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    background-color: #fff;
    min-width: 80px;
}

.valor-input:focus {
    outline: none;
    border-color: #6B00FF;
    box-shadow: 0 0 0 2px rgba(107, 0, 255, 0.25);
}

.valor-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Estilos para sección de cuentas no encontradas */
.no-encontrados-section {
    margin: 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.no-encontrados-section .alert {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.no-encontrados-section h5 {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 700;
}

.no-encontrados-section p {
    color: #856404;
    margin: 0 0 1rem 0;
    font-size: 14px;
}

.no-encontrados-list {
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.no-encontrados-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.no-encontrados-list li {
    padding: 8px 12px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #495057;
    border-left: 3px solid #ffc107;
}

.no-encontrados-list li:hover {
    background: #e9ecef;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}
