/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #333;
}

/* Contenedor principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Cabecera */
header {
    text-align: center;
    margin-bottom: 30px; /* Aumentado para mejor separación */
}

header h1 {
    font-size: 24px;
    margin-bottom: 20px; /* Aumentado para mejor separación */
}

header a {
    color: #c30c45;
    text-decoration: none;
    font-weight: bold;
}

header a:hover {
    text-decoration: underline;
}

/* Formularios */
form {
    margin-bottom: 30px; /* Aumentado para mejor separación */
}

.form-group {
    margin-bottom: 20px; /* Aumentado para mejor separación */
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px; /* Aumentado para mejor separación */
}

input[type="text"],
input[type="file"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px; /* Añadido para separación entre campos */
}

button {
    background-color: #c30c45;
    color: white;
    padding: 12px 20px; /* Aumentado para mejor visibilidad */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px; /* Añadido para separación superior */
}

button:hover {
    background-color: #a10a39;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px; /* Añadido para separación superior */
}

/* Estilos para la tabla de servicios */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px; /* Aumentado para mayor espacio en la tabla */
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

td {
    vertical-align: top;
    padding-top: 15px;
}

/* Pie de página */
footer {
    margin-top: 50px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

footer .footer-link {
    color: #888;
    text-decoration: none;
}

footer .footer-link:hover {
    text-decoration: underline;
}



/* Estilos para las filas de acciones */
.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.actions-row div {
    margin-right: 20px;
    flex-grow: 1;
}

.actions-row label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.actions-row textarea {
    width: 100%;
    height: 60px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.actions-row input[type="number"],
.actions-row select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.actions-row button {
    width: 100%;
    padding: 10px;
    background-color: #c30c45;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.actions-row button:hover {
    background-color: #a10a39;
}

.actions-row form {
    flex-grow: 1;
    margin-right: 10px;
}

.actions-row form:last-child {
    margin-right: 0;
}







/* Estilos para la página de estado (index.php) */

/* Contenedor principal */
.index-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Cabecera */
.index-header {
    text-align: center;
    margin-bottom: 40px;
}

.index-header img.logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.index-header h1 {
    font-size: 32px;
    margin-top: 0;
    color: #333;
}

/* Resumen del estado */
.status-summary {
    background-color: #f4f4f4; /* Color personalizado */
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.status-summary h2 {
    margin: 0;
    font-size: 24px;
    font-weight: normal;
}

/* Sección de servicios */
.services-section {
    margin-bottom: 40px;
}

.service-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.service-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.service-status {
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.service-status.operativo {
    color: green;
}

.service-status.parcialmente-operativo {
    color: orange;
}

.service-status.fuera-de-servicio {
    color: red;
}

.service-status i {
    margin-right: 8px;
}

.service-details {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Estilos adicionales para centrado */
.index-container,
.service-box,
.status-summary {
    max-width: 800px;
    margin: 0 auto;
}




/* Ajustar tamaño máximo del logo */
.index-header img.logo {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    width: auto;
    margin-bottom: 20px;
}

/* Estilos para los estados con iconos */
.service-status {
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.service-status.operativo {
    color: green;
}

.service-status.operativo::before {
    content: "\f058"; /* Icono de check-circle de FontAwesome */
    font-family: 'FontAwesome';
    margin-right: 8px;
}

.service-status.parcialmente-operativo {
    color: orange;
}

.service-status.parcialmente-operativo::before {
    content: "\f071"; /* Icono de exclamation-triangle de FontAwesome */
    font-family: 'FontAwesome';
    margin-right: 8px;
}

.service-status.fuera-de-servicio {
    color: red;
}

.service-status.fuera-de-servicio::before {
    content: "\f057"; /* Icono de times-circle de FontAwesome */
    font-family: 'FontAwesome';
    margin-right: 8px;
}

/* Otros estilos generales */
.status-summary {
    background-color: #f9f9f9; /* Color personalizado */
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.service-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}





/* Iconos de FontAwesome para Estados */
.service-status i {
    margin-right: 8px;
}

.service-status.operativo::before {
    content: "\f058"; /* Icono de check-circle de FontAwesome */
    font-family: 'FontAwesome';
    margin-right: 8px;
}

.service-status.parcialmente-operativo::before {
    content: "\f071"; /* Icono de exclamation-triangle de FontAwesome */
    font-family: 'FontAwesome';
    margin-right: 8px;
}

.service-status.fuera-de-servicio::before {
    content: "\f057"; /* Icono de times-circle de FontAwesome */
    font-family: 'FontAwesome';
    margin-right: 8px;
}

/* Ocultar cualquier lista de marcador que podría aparecer junto a los iconos */
.service-status {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

/* Remover espacios no deseados */
.service-status i {
    display: inline-block;
    vertical-align: middle;
}
































/* Estilos específicos para el formulario de login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.login-container .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
}

.login-container button {
    padding: 10px 15px;
    background-color: #c70c45; /* Color de contraste */
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

.login-container button:hover {
    background-color: #a10a39; /* Color de contraste más oscuro al pasar el ratón */
}

/* Estilos para el logo en el login */
.logo-login {
    max-width: 150px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos del footer */
footer {
    margin-top: 30px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

footer p {
    margin: 5px 0;
}






















/* Estilos para la política de privacidad */
.privacy-policy {
    text-align: left;
    margin-top: 40px;
}

.privacy-policy h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.privacy-policy p {
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap; /* Asegura que los saltos de línea en la base de datos se respeten */
}

/* Enlaces del footer */
footer .footer-link {
    color: #888;
    text-decoration: none;
}

footer .footer-link:hover {
    text-decoration: underline;
}
