body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

header {
    background-color: #0047ba;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.logo-header {
    height: 150px;
    margin-bottom: 10px;
}

main {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 300px;
}

.form-container input,
.form-container button {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.form-container input {
    border: 1px solid #ccc;
}

.form-container button {
    background-color: #0047ba;
    color: white;
    border: none;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #00368a;
}

.registro-link {
    margin-top: 15px;
}

.input-error {
    color: red;
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 10px;
    text-align: left;
}
.admin-header {
    background-color: #0047ba;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

/* Menú desplegable oculto por defecto */
.dropdown-content {
    display: none;
    position: relative;
    top: 110px;
    right: 0;
    background-color: white;
    color: black;
    min-width: 140px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
    border-radius: 6px;
    font-size: 14px;
}

.dropdown-content a {
    color: black;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.main-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.estado-mqtt-container {
    border: 1px solid #ddd;
    padding: 14px 20px;
    font-size: 1.2rem;
    text-align: left;
    background-color: #f9f9f9; /* 🎨 Gris muy suave */
    margin-top: 20px;
    border-radius: 4px;
}

.reiniciar-btn {
    width: 100%; /* ✅ Ocupa todo el ancho disponible */
    background-color: #0047ba;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
}

#overlayCargando {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 6px solid #ddd;
    border-top: 6px solid #0047ba;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: girar 1s linear infinite;
}

.botones-accion-panel {
    display: flex;
    gap: 18px;
    width: 100%;
    margin: 0 auto;
}

.reiniciar-btn, .verlogs-btn {
    flex: 1 1 0;
    height: 56px;
    min-height: 56px;
    border: none;
    border-radius: 7px;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 400;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.buscar-btn {
    background-color: #0047ba;
	border-radius: 7px;
    color: #fff;
	padding: 0 20px;
	font-size: 1rem;
	border: none;
}
.buscar-btn:hover {
    background-color: #00368a;
}

.actualizar-btn {
    background-color: #139a39;
	border-radius: 7px;
    color: #fff;
	padding: 0 10px;
	font-size: 1rem;
	border: none;
}
.actualizar-btn:hover {
    background-color: #008739;
}
/* Azul */
.reiniciar-btn {
    background-color: #0047ba;
    color: #fff;
}
.reiniciar-btn:hover {
    background-color: #00368a;
}

/* Verde custom */
.verlogs-btn {
    background-color: rgb(30, 127, 111);
    color: #fff;
}
.verlogs-btn:hover {
    background-color: #185e54;
}

.botones-accion-panel > button {
    margin: 0 !important;
}

.logs-btn {
    width: 100%;
	margin-top: 5px;
	padding: 18px 28px;
	background-color: #0047ba;
	color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.logs-btn:hover {
	background-color: #00368a;
}

input[type="text"], input[type="date"], select {
    width: 100%;
    padding: 10px 10px;
    font-size: 1.12rem;
    border: 1.5px solid #ccc;   /* O igual que el de input:text */
    border-radius: 7px;
    box-sizing: border-box;
    background: #fff;           /* Igual a los otros */
    outline: none;
    transition: border 0.18s;
}

input[type="date"] {
    height: 44px;        /* Ajusta a 44px, 48px o el valor que te guste */
    font-size: 1.1rem;   /* Opcional: agranda el texto si lo deseas */
    padding: 0 10px;     /* Ajusta si necesitas más espaciado lateral */
    border-radius: 7px;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}