body {
    font-family: Lato, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f7f7f7;
    margin: 0;
    text-align: center;
}

h1, h2, h3 {
    color: #333;
}

h1 {
    margin-bottom: 20px;
}


/* Estilos para formularios (login) */
form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 280px;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}


.missatge {
    margin-top: 15px;
    font-weight: bold;
    color: red;
}

/* Estilos para la página de inicio (inici.php) */
header {
    background: #fff;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

header a {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    color: #2d7a46;
}

.pas {
    display: none;
  
}

.pas.actiu {
    display: flex;
}

select {
    width: 90%;
	text-align: center;
    padding: 12px;
    font-size: 1.1em;
	padding:var(--pad);
	
	border:0;
	border-radius:var(--pad);
	
}

.botons {
    display: flex;
    gap: 15px;
}


.circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

#stopBtn {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #dc3545;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    color: #fff;
    cursor: pointer;
}

#stopBtn:hover {
    background: #b52d3a;
}

#timer {
    font-size: 2em;
}


/* Panell de connexió inferior */


footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    color: #777;
}

/* Popups e interfaz de admin */
.popup, .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
}


.thumb{
	display:flex;gap:var(--pad)
	
}
.thumb .text{ flex-grow:1;}
.btn{
	text-decoration: none;
}

.appt{
	display:block;
}
.hidden{
	display: none!important;
}

.thumb .text{
	text-align: left;
	font-weight: 600;
	
}
.thumb .detail{
	font-weight:300;
}
header{
	--icos:2rem;
}
:root {
    /* Layout Helpers */
    --pad: 1rem;
    --icos:3rem;

    /* Textos y Primer Plano (Jerarquía de lectura) */
    --color-fore1: #1A1C19;      /* Negro orgánico para títulos */
    --color-fore2: #43493E;      /* Gris verdoso para cuerpo de texto */
    --color-fore3: #8C9388;      /* Muted: para labels y textos secundarios */

    /* Superficies y Fondos (El esqueleto visual) */
    --color-surface: #F8F9F5;    /* Fondo base (White Sage) */
    --color-surface2: #F2EDE4;   /* Surface Tierra: Contenedores claros */
    --color-surface3: #E7F0E7;   /* Surface Verde: Sidebar o zonas activas */
    --color-surface4: #DDE1D7;   /* Líneas de división y bordes sutiles */

    /* Colores de Destacado (Acciones y Branding) */
    --color-fore-dest: #2D5A27;  /* Verde bosque: Botones primarios */
    --color-fore-dest2: #5D8A4E; /* Verde medio: Hover o iconos importantes */
    --color-fore-dest3: #A67C52; /* Ocre/Tierra: Acento para alertas o datos de suelo */
}

.btn.btn-danger{
	background-color:var(--color-surface2);
}
.btn{
	padding: var(--pad);
	border-radius: var(--pad);
	border:1px solid var(--color-surface4);
	
}
.btn.primary{
	background: var(--color-surface4);
}

select{
	border:1px solid var(--color-surface4);
	background-color:#fff;
}
.apt{
	padding:var(--pad);
	background:var(--color-surface2);
	border-radius:var(--pad);
}

.thumb .icon{
	width:var(--icos);height:var(--icos);
	border-radius:50%;display:flex;align-items: center;
	justify-content: center;
	
	background: var(--color-surface4);
	
}