body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #2e2e2e;
}

h3{
    color: white;
}

#login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    margin: auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#login-container:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

#login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333333;
}

#app-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    gap: 30px;
}

#calendar-container {
    flex-shrink: 0;
    width: 280px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    margin-right: 100px; /* Espai entre el calendari i el grid */
}

#custom-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnes */
    gap: 8px; /* Reduïm l'espai entre bombolletes */
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-sizing: border-box;
}

#custom-calendar .header {
    font-weight: bold;
    color: #555;
    font-size: 12px; /* Reduïm el text dels dies de la setmana */
}

#custom-calendar div {
    width: 30px; /* Reduïm la mida de les bombolletes */
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px; /* Reduïm la mida del text */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

#custom-calendar .past {
    background-color: lightgray;
    color: #666;
    cursor: not-allowed;
}

#custom-calendar .future {
    background-color: lightblue;
    color: #007bff;
}

#custom-calendar .future:hover {
    background-color: #0056b3;
    color: white;
}

#custom-calendar .selected {
    background-color: #0056b3;
    color: white;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 16px;
    color: #007bff;
    cursor: pointer;
    transition: color 0.2s;
}

.calendar-header button:hover {
    color: #0056b3;
}

#plano {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bloc-esquerra {
    display: flex;
    justify-content: flex-start; /* Alinea els elements a l'esquerra */
    flex: 1;
}

.bloc-dreta {
    display: flex;
    justify-content: flex-start; /* Alinea els elements a la dreta */
    flex: 1;
}

.fila {
    display: flex;
    justify-content: space-between; /* Separa els blocs de l'esquerra i dreta */
    width: 100%; /* Assegura que ocupi tota l'amplada disponible */
    gap: 20px;
}

.fila-segona {
    justify-content: flex-start;
}

.gran-quadrat {
    display: grid;
    grid-template-columns: repeat(2, 100px);
    grid-template-rows: repeat(2, 100px);
    gap: 5px;
}

.gran-quadrat-alt {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(2, 100px);
    gap: 5px;
}

.quadrat {
    width: 100px;
    height: 100px;
    background-color: lightgray;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 15px;
}

.quadrat.reservat {
    background-color: red;
    cursor: not-allowed;
    border-radius: 15px;
}

.quadrat.seleccionat {
    background-color: green;
    border-radius: 15px;
}

/* Botó de sortir */
#logout-button {
    margin-top: 50px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    align-self: center;
}

#logout-button:hover {
    background-color: #0056b3;
}

input[type="text"], input[type="password"] {
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: inset 0px 4px 10px rgba(0, 123, 255, 0.2);
    outline: none;
}

#login-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#login-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Missatge d'error */
#error-missatge {
    margin-top: 10px;
    color: #ff4d4d;
    font-size: 14px;
}

.quadrat-doble {
    grid-row: span 2; 
    height: 100%;
}