body, html { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; height: 100%; overflow: hidden; }

/* Layout */
.sidebar {
    position: absolute; top: 0; left: 0; bottom: 0; width: 300px;
    background: #ffffff; z-index: 1000; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
}

#map {
    position: absolute; top: 0; right: 0; bottom: 0; left: 300px;
}

/* Sidebar Elements */
.brand {
    padding: 20px; background: #2c3e50; color: white;
    font-size: 24px; font-weight: bold;
}

.menu { display: flex; background: #f8f9fa; border-bottom: 1px solid #ddd; }
.menu-item {
    flex: 1; padding: 15px; text-align: center; cursor: pointer;
    color: #555; font-size: 14px;
}
.menu-item:hover { background: #e9ecef; }
.menu-item.active { border-bottom: 3px solid #2ecc71; color: #2ecc71; font-weight: bold; }

.content-panel { padding: 20px; flex: 1; }
.instructions { line-height: 1.6; color: #666; font-size: 14px; }
.hidden { display: none !important; }
.small { font-size: 12px; color: #999; margin-top: 15px; }

/* Controls */
input[type="email"] {
    width: 100%; padding: 10px; margin: 10px 0;
    box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px;
}

button {
    width: 100%; padding: 10px; border: none; border-radius: 4px;
    cursor: pointer; font-size: 14px; font-weight: bold; margin-top: 5px;
}
.btn-primary { background: #2ecc71; color: white; }
.btn-primary:hover { background: #27ae60; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-secondary { background: #95a5a6; color: white; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
}
.modal-content {
    background: white; padding: 25px; border-radius: 8px;
    width: 350px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.modal h3 { margin-top: 0; color: #2c3e50; }
.actions { display: flex; gap: 10px; margin-top: 15px; }

/* Leaflet Overrides */
.leaflet-draw-draw-polygon { background-color: #2ecc71 !important; }