html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    /* margin: 0; REMOVED */
    /* padding: 20px; REMOVED */
}

/* Generic container for content on pages other than login */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px; /* Apply padding here */
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.menu-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card a {
    text-decoration: none;
    color: inherit;
}

.menu-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.menu-card h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.menu-card p {
    font-size: 0.9em;
    color: #666;
}

/* Login page styles */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Ocupar el 100% del alto del viewport */
    width: 100%;
    overflow: hidden; /* Evita el scroll si el contenido es un poco más grande */
}

.login-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box; /* Asegura que el padding no cause overflow */
}

.login-form h1 {
    color: #005f73;
    margin-bottom: 20px;
}

.login-logo {
    max-width: 200px;
    margin-bottom: 20px;
    display: block; /* Ensures margin auto works */
    margin-left: auto;
    margin-right: auto;
}

.login-form label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #005f73;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #8fbc53; /* Nuevo color de fondo */
    color: #5a5a5a; /* Nuevo color de texto */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.2s;
}

.login-form button:hover {
    background-color: #7a9c47; /* Un tono más oscuro para el hover */
}

.app-version-watermark {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #a0a0a0; /* Color tenue */
    font-size: 0.8em;
    opacity: 0.6;
    pointer-events: none; /* Permite hacer clic a través de él */
    white-space: nowrap; /* Evita que el texto se rompa */
}

/* Wizard styles */
.wizard-container {
    max-width: 800px;
    margin: auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wizard-progress-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.progress-step {
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

.progress-step.active {
    background-color: #0a9396;
}

.wizard-step h2 {
    color: #005f73;
    margin-bottom: 10px;
}

.wizard-step p {
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #005f73;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.radio-option {
    margin-bottom: 10px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.navigation-buttons button {
    padding: 12px 20px;
    background-color: #0a9396;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

.navigation-buttons button:hover {
    background-color: #005f73;
}

.home-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0a9396;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    z-index: 1000;
}

.home-button:hover {
    background-color: #005f73;
}

.logout-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #d90429;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    z-index: 1000;
}

.logout-button:hover {
    background-color: #ef233c;
}

/* Graphical radio button styles */
.radio-card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-card {
    flex: 1 1 200px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.radio-card:hover {
    border-color: #0a9396;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card.selected {
    background-color: #0a9396;
    border-color: #0a9396;
    color: white;
    box-shadow: 0 0 10px rgba(10, 147, 150, 0.5);
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
}

.modal-header h2 {
    color: #005f73;
}

.modal-body p {
    color: #333;
}

.modal-footer .close-button {
    background-color: #0a9396;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Menu Header Styles */
.menu-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.menu-header h1 {
    color: #005f73;
    margin-bottom: 5px;
}

.menu-header p {
    color: #666;
}

.back-link {
    position: absolute;
    left: 0;
    top: 10px;
    text-decoration: none;
    color: #0a9396;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: #005f73;
}

/* File Preview Styles */
.file-upload-wrapper {
    margin-bottom: 1rem;
}

.file-preview-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    max-width: 100%;
}

.file-preview-container.hidden {
    display: none;
}

.preview-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
    border: 1px solid #ccc;
    background-color: #fff;
}

.file-info {
    flex-grow: 1;
    overflow: hidden;
}

.file-name-display {
    display: block;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    transition: color 0.2s;
}

.remove-file-btn:hover {
    color: #a71d2a;
}

/* Zoom Modal (Lightbox) */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.zoom-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
}

.zoom-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.zoom-close:hover,
.zoom-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Caption of Zoom Modal */
#zoom-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* PDF Preview Icon */
.preview-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fce4ec; /* Light red background for PDF feeling */
    border: 1px solid #f8bbd0;
    border-radius: 4px;
    cursor: zoom-in;
    font-size: 2rem;
    color: #c62828; /* PDF red color */
}

/* Modal Content Adjustment for PDF */
.zoom-modal-content-pdf {
    margin: auto;
    display: block;
    width: 90%;
    height: 90vh; /* Full height for PDF reading */
}