body {
    background: linear-gradient(135deg, #dff4fc, #b8e0f7);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px;
    margin: 0;
    min-height: 100vh;
    color: #333;
    scroll-behavior: smooth;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-container h2 {
    color: #0078D4;
    margin-bottom: 20px;
}

input[type="email"],
input[type="password"],
input[type="date"] {
    width: 90%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 25px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    border-color: #0078D4;
    box-shadow: 0 0 6px rgba(0, 120, 212, 0.4);
    background-color: #eef7ff;
}

button {
    background-color: #0078D4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #005fa3;
    transform: scale(1.04);
}

.user-menu {
    position: absolute;
    top: 20px;
    right: 20px;
}

.user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.user-icon:hover {
    transform: scale(1.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #0078D4;
    text-decoration: none;
    font-weight: bold;
}

.dropdown-menu a:hover {
    background-color: #f0f4ff;
}

.piantina-container {
    display: flex;
    justify-content: center;
    margin-top: 120px;
}

#piantina {
    width: 70%;
    height: auto;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 22px;
    color: #333;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    margin: 20px auto;
    width: fit-content;
    text-align: center;
    border: 1px solid transparent;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

.alert.hide {
    opacity: 0;
}

.alert.success {
    color: #1d7f1d;
    background-color: #e9ffe9;
    border-color: #75d975;
}

.alert.error {
    color: #b10000;
    background-color: #ffe9e9;
    border-color: #ff8a8a;
}

.container {
    max-width: 700px;
    margin: 80px auto;
    text-align: center;
}

.prenotazioni-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.prenotazioni-table th {
    background: #0078D4;
    color: white;
    padding: 14px;
    font-size: 16px;
}

.prenotazioni-table td {
    padding: 14px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.prenotazioni-table tr:hover {
    background: #f5faff;
}

.btn-delete {
    background-color: #d93838;
    color: white;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-delete:hover {
    background-color: #a80000;
    transform: scale(1.05);
}

.logo {
    text-align: center;
    margin-top: 60px;
}

.logo img {
    max-width: 70px;
    margin: 0 15px;
}

.msg-error {
    background-color: #fdeaea;
    color: #cc2f2f;
    border: 1px solid #e18383;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: bold;
    width: fit-content;
    margin: 10px auto;
}

.desk-indicator {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #333;
    pointer-events: none;
}

.desk-free {
    background-color: rgba(0, 200, 0, 0.6);
}

.desk-busy {
    background-color: rgba(255, 0, 0, 0.6);
}

.indicator-container {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
}