/* ========================================
   Estilos para Consulta de Obras Sociales
   ======================================== */

/* Fecha de actualización */
.fecha-actualizacion {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Mensajes de resultado */
.result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 6px;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.result.error {
    background: #fff8e1;
    border-left-color: #F9B233;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.result.error .result-title {
    color: #f57c00;
}

.result-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #666;
}

/* Panel de resultados */
.results-panel {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-out;
}

.results-title {
    font-size: 20px;
    font-weight: 600;
    color: #242C4F;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Tabla de resultados */
.cons-table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
}

.cons-table thead tr th {
    background: linear-gradient(135deg, #242C4F 0%, #1a1f38 100%);
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    text-align: left;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.cons-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.cons-table tbody tr:last-child {
    border-bottom: none;
}

.cons-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cons-table tbody tr td {
    padding: 18px 20px;
    vertical-align: middle;
    font-size: 15px;
    color: #333;
}

.cons-table tbody tr td.ooss_name {
    text-align: left;
}

.cons-table tbody tr td:first-of-type {
    width: 120px;
}

/* Estilos para filas alternadas */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

/* Estilos para los enlaces de código de obra social */
.cons-table td .btn-codigo {
    background-color: #242C4F;
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 150px;
}

.cons-table td .btn-codigo:hover {
    background-color: #1a1f38;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(36, 44, 79, 0.3);
    color: white;
    text-decoration: none;
}

.cons-table td .btn-codigo:active {
    transform: translateY(0);
}

/* Mejoras de accesibilidad */
.cons-table td .btn-codigo:focus {
    outline: 2px solid #242C4F;
    outline-offset: 2px;
}

.input-group .form-control:focus {
    position: relative;
    z-index: 3;
}

/* Mejora del contenedor */
.container {
    max-width: 1200px;
}

/* Responsive */
@media (max-width: 768px) {
    .subtitle {
        font-size: 14px;
    }

    .cons-table thead tr th,
    .cons-table tbody tr td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .cons-table thead tr th {
        font-size: 13px;
    }

    .cons-table td .btn-codigo {
        padding: 6px 15px;
        font-size: 13px;
    }

    .results-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .cons-table {
        font-size: 13px;
    }

    .cons-table thead tr th,
    .cons-table tbody tr td {
        padding: 10px 8px;
    }

    .result {
        padding: 20px;
    }

    .result-title {
        font-size: 18px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cons-table tbody tr td.actions-column {
    text-align: center;
    width: 120px;
}

.cons-table td .btn-view {
    background-color: #242C4F;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cons-table td .btn-view:hover,
.cons-table td .btn-view:focus {
    background-color: #1a1f38;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(36, 44, 79, 0.3);
}

.cons-table td .btn-view:focus {
    outline: 2px solid #242C4F;
    outline-offset: 2px;
}