/* Fondo general */
body, .main-bg {
    background-color: #c6eafd !important;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Contenedor principal */
.main-container {
    max-width: 1100px;
    margin: 30px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px #0001;
    padding: 28px 20px;
}

/* Título principal */
.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a4b6e;
    margin-bottom: 18px;
    text-align: center;
}

/* Tablas principales */
.main-table, .horario-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background: #eaf6fb;
    border-radius: 8px;
    overflow: hidden;
}

.main-table td, .main-table th,
.horario-table td, .horario-table th {
    padding: 8px 10px;
    border: none;
    font-size: 1rem;
}

.main-table label, .horario-table label {
    font-size: 1rem;
    font-weight: 500;
}

.main-table input[type="text"],
.main-table input[type="date"] {
    width: 120px;
    border: 1px solid #b5d6e7;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 1rem;
    font-family: inherit;
}

.horario-table input[type="time"], .horario-table select {
    width: 90px;
    border: 1px solid #b5d6e7;
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 1rem;
    font-family: inherit;
}

.horario-table .semana-row { background: #d1eaf7; }
.horario-table .dia-row { background: #f5fbfd; }
.horario-table .no-work-col { text-align: center; }
.horario-table .no-work input { margin-left: 5px; }
.horario-table .no-work label { margin-left: 2px; }
.horario-table .row-separator { height: 8px; }
.horario-table .no-work { background: #fbeee6; }
.horario-table .readonly { background: #f0f0f0; }
.horario-table input[readonly] { background: #f0f0f0; }
.horario-table input[type="checkbox"] { transform: scale(1.2); }

.contrata-col, .idioma-col, .servicio-col {
    min-width: 140px;
    vertical-align: top;
}

/* Botones */
button, .btn {
    background: #1a4b6e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s;
}
button:hover, .btn:hover {
    background: #2186c4;
}

/* Alertas */
.alert {
    padding: 10px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container { padding: 10px 2px; }
    .main-title { font-size: 1.3rem; }
    .main-table td, .main-table th,
    .horario-table td, .horario-table th { padding: 6px 2px; font-size: 0.95rem; }
    .contrata-col, .idioma-col, .servicio-col { min-width: 100px; }
}
@media (max-width: 600px) {
    .main-container { padding: 4px 1px; }
    .main-title { font-size: 1.1rem; }
    .main-table, .horario-table { font-size: 0.95rem; }
}

/* ...tus estilos anteriores... */

/* Tabla de formulario de trabajadores (view_workers) */
.worker-form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background: #eaf6fb;
    border-radius: 8px;
    overflow: hidden;
}
.worker-form-table td, .worker-form-table th {
    padding: 8px 10px;
    border: none;
    font-size: 1rem;
}
.worker-form-table label {
    font-size: 1rem;
    font-weight: 500;
}
.worker-form-table input[type="text"],
.worker-form-table input[type="date"] {
    width: 120px;
    border: 1px solid #b5d6e7;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Responsive para .worker-form-table */
@media (max-width: 900px) {
    .worker-form-table td, .worker-form-table th { padding: 6px 2px; font-size: 0.95rem; }
}
@media (max-width: 600px) {
    .worker-form-table { font-size: 0.95rem; }
}