* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
}

body.dark-mode {
    background: #121212;
    color: #eee;
}

/* Navbar Layout */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #222;
    color: #fff;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1100;
}

.navbar-section {
    display: flex;
    align-items: center;
}

.navbar-left {
    flex: 1;
}

.navbar-center {
    flex: 2;
    justify-content: center;
}

.navbar-right {
    flex: 1;
    justify-content: flex-end;
}

.logo {
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 1px;
    color: #ff9800;
}

/* Center nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-links li a,
.nav-links li button {
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 17px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav-links li button:hover,
.nav-links li a:hover {
    text-decoration: underline;
}

/* Dropdown menu */
.dropdown {
    position: relative;
    margin-right: 8px;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 10px;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #222;
    padding: 13px 18px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: #ffecb3;
    color: #ff9800;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dark mode & dropdown close together */
.dark-mode-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-left: 0;
    margin-right: 0;
    user-select: none;
}

/* Container */
.container {
    padding: 0;
    margin: 0;
    max-width: 100vw;
    background: none;
    box-shadow: none;
    padding-top: 60px;
    /* To offset fixed navbar */
    height: calc(100vh - 60px);
    position: relative;
}

/* Header */
.header {
    text-align: center;
    margin: 15px 0;
}

/* Map */
#map {
    position: absolute;
    top: 60px;
    /* height of navbar */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    z-index: 1;
    border-radius: 0;
}

/* Modal & Add Parcel Form */
.modal,
.add-parcel-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1300;
    max-width: 420px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
}

body.dark-mode .modal,
body.dark-mode .add-parcel-modal {
    background: #222;
    color: #eee;
    border-color: #444;
}

.modal .close-button,
.add-parcel-modal .close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    color: #000;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 18px;
}

body.dark-mode .modal .close-button,
body.dark-mode .add-parcel-modal .close-button {
    color: #eee;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1250;
}

/* Form inputs */
.add-parcel-modal input,
.add-parcel-modal textarea,
.add-parcel-modal select {
    width: 100%;
    padding: 6px;
    margin: 6px 0;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #bbb;
}

body.dark-mode .add-parcel-modal input,
body.dark-mode .add-parcel-modal textarea,
body.dark-mode .add-parcel-modal select {
    background: #333;
    border-color: #555;
    color: #eee;
}

.add-parcel-modal button[type="submit"],
.add-parcel-modal button.mark-coordinates {
    background: #8e9191;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.add-parcel-modal button[type="submit"]:hover,
.add-parcel-modal button.mark-coordinates:hover {
    background: #b2b3b1;
}

/* Coordinates display */
.coordinates-display {
    margin: 10px 0;
    padding: 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    max-height: 100px;
    overflow-y: auto;
    font-size: 12px;
    border-radius: 4px;
    font-family: monospace;
}

body.dark-mode .coordinates-display {
    background: #333;
    border-color: #555;
    color: #eee;
}

/* Drawing controls */
.drawing-controls {
    position: absolute;
    top: 70px;
    left: 10px;
    z-index: 1400;
    display: none;
}

.drawing-controls button {
    background: #0078A8;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.drawing-controls button:hover {
    background: #005f80;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 80px;
    /* below navbar */
    right: 30px;
    z-index: 1500;
    width: 320px;
}

.notification {
    background: #222;
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 12px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0.95;
    font-size: 15px;
    animation: fadeIn 0.3s;
}

.notification.success {
    background: #2ecc40;
}

.notification.error {
    background: #e74c3c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Auth (login/signup/staff) forms center */
.auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.auth-container {
    background: #fff;
    padding: 32px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    min-width: 340px;
    max-width: 95vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-container h2 {
    margin-bottom: 18px;
}

.auth-container form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-container input,
.auth-container select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #bbb;
}

/* Staff Dashboard Warm Design */
.staff-dashboard-bg {
    background: linear-gradient(120deg, #ffe0b2 0%, #ffcc80 100%);
    min-height: 100vh;
    padding-top: 60px;
}

.staff-dashboard-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 18px;
}

.staff-request-card {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(255, 152, 0, 0.08);
    margin-bottom: 28px;
    padding: 22px 24px;
    font-size: 16px;
    color: #6d4c00;
    transition: box-shadow 0.2s;
}

.staff-request-card:hover {
    box-shadow: 0 4px 24px rgba(255, 152, 0, 0.16);
}

.staff-request-card strong {
    color: #e65100;
}

.staff-request-actions {
    margin-top: 18px;
    display: flex;
    gap: 18px;
}

.staff-approve-btn {
    background: #43a047;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.staff-approve-btn:hover {
    background: #388e3c;
}

.staff-reject-btn {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.staff-reject-btn:hover {
    background: #b71c1c;
}

/* Responsive */
@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px 6px;
    }

    .navbar-section {
        flex: unset;
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        gap: 16px;
    }

    .container {
        padding-top: 60px;
        height: auto;
    }

    .staff-dashboard-container {
        padding: 8px;
    }
}

/* Add these at the end for bidding/role dashboards */
.bid-card {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 8px 0;
    font-size: 15px;
    color: #6d4c00;
}

.bid-timer {
    font-weight: bold;
    color: #ff9800;
}

.property-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}