body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4ff, #dfe9f3);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.navbar {
    width: 100%;
    background: #2c662d;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    background: #2c662d;
    color: #fff;
    font-size: 14px;
    margin-top: auto;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 20px 10px 15px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 10px 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    background: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    max-width: 95%;
}

.legend-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #555;
    margin-right: 6px;
    border-radius: 4px;
}

.legend-box.available {
    background: #66cc66;
}

.legend-box.booked {
    background: #e63946;
}

.legend-box.blocked {
    background: #f1c40f;
}

svg {
    border: 2px solid #ccc;
    border-radius: 12px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 95vw;
    height: auto;
}

.plot {
    stroke-width: 0.75;
    fill: #66cc6627;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plot:hover {
    fill: #a6d8a880;
    stroke: #2c662d;
    stroke-width: 1.5;
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    font-weight: bold;
    color: #ff0000;
    cursor: pointer;
    transition: color 0.2s ease;
}
.btn-close:hover {
    color: #000;
}
.modal-content {
    position: relative; 
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto; 
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    max-width: 100%;
    max-height: 80vh; 
    overflow-y: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
    margin: auto;
}

.modal-content h3 {
    margin: 0 0 15px;
    text-align: center;
    font-size: 20px;
    color: #333;
}

.modal-content label {
    display: block;
    margin: 8px 0 4px;
    font-weight: 500;
    color: #555;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.modal-content button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
    transition: 0.2s ease;
}

.btn-submit {
    background: #28a745;
    color: #fff;
}

.btn-submit:hover {
    background: #218838;
}

.btn-cancel {
    background: #dc3545;
    color: #fff;
    float: right;
}

.btn-cancel:hover {
    background: #b52a37;
}

.navbar button {
    background: #fff;
    color: #2c662d;
    border: none;
    padding: 6px 12px;
    margin-left: 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.navbar button:hover {
    background: #eaf5ea;
}

#deleteBtn {
    background: #e63946 !important;
    color: #fff;
    margin-right: 10px;
}

#deleteBtn:hover {
    background: #c92d39 !important;
}

#loginModal .modal-content {
    width: 300px;
    text-align: center;
}

#loginModal input {
    margin-bottom: 10px;
}

#plotDetails {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    text-align: left;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
}

#plotDetails p {
    margin: 6px 0;
    line-height: 1.4;
}

#plotDetails b {
    color: #2c662d;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 22px;
    }

    .legend {
        font-size: 13px;
        gap: 10px;
    }

    .modal-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

    .legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .legend-box {
        width: 16px;
        height: 16px;
    }

    svg {
        max-width: 100%;
    }
}