/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.container {
    background-color: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin-bottom: 20px;
    flex-shrink: 0;
    position: relative; /* Para posicionar el botón de modo oscuro */
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    width: 100px;
}

h1 {
    color: #044c3b;
    margin-bottom: 10px;
    font-size: 18px;
}

input[type="text"], select {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    width: calc(100% - 24px); /* Ajuste del ancho */
    box-sizing: border-box;
    font-size: 14px; /* Tamaño de fuente ajustado */
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Estilo específico para el menú desplegable */
select {
    -webkit-appearance: none; /* Quitar la apariencia predeterminada en Safari */
    -moz-appearance: none; /* Quitar la apariencia predeterminada en Firefox */
    appearance: none; /* Quitar la apariencia predeterminada */
    background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000000" class="bi bi-chevron-down" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/> </svg>') no-repeat right 10px center;
    background-size: 16px 16px;
}

input[type="text"]:focus, select:focus {
    border-color: #4bcc8c;
    box-shadow: 0 0 5px rgba(75, 204, 140, 0.5);
    outline: none;
}

button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: #FF6B0A;
    color: black;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

/* Estilo de hover solo para los botones normales, no para el botón de modo oscuro */
button:not(.toggle-button):hover {
    background-color: #fbad79;
    transform: scale(1.05);
}

#qrCode {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.qr-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
}

.qr-container svg {
    width: 100%;
    height: 100%;
}

/* Modo oscuro */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode input[type="text"], body.dark-mode select {
    background-color: #2e2e2e;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode input[type="text"]:focus, body.dark-mode select:focus {
    border-color: #4bcc8c;
    box-shadow: 0 0 5px rgba(75, 204, 140, 0.5);
}

body.dark-mode button {
    color: #fff;
}

body.dark-mode button:not(.toggle-button):hover {
    background-color: #666;
}

/* Botón de modo oscuro */
.toggle-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    width: 24px; /* Tamaño del icono */
    height: 24px; /* Tamaño del icono */
    outline: none;
}

.toggle-button img {
    width: 100%;
    height: 100%;
    transition: none; /* Sin efectos de hover */
}

body.dark-mode .toggle-button img {
    filter: brightness(0) invert(1);
}