* {
    box-sizing: border-box;
}

.web-title.light {
    font-size: 28px;
    color: #2c3e50;
}

.web-title.dark {
    color: #cbd5f5;
}

body {
    padding: 20px;
    padding-bottom: 90px;
    font-family: 'Segoe UI', sans-serif;
    max-width: 900px;
    margin: auto;
    transition: background 0.3s, color 0.3s;
}

body.light {
    background: linear-gradient(30deg, #e6e7ff, #acffe6);
    color: #1f2937;
}

body.dark {
    background: linear-gradient(180deg, #450e79, #010827);
    color: #e5e7eb;
}

h2 {
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

form {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.dark form {
    background: #020617;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

label {
    font-weight: 600;
    margin-top: 14px;
    display: block;
    font-size: 0.95rem;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #22c55e;
}

body.dark input,
body.dark textarea {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
}

button {
    margin-top: 16px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#map {
    height: 320px;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#logContainer {
    margin-top: 32px;
}

.log {
    background: #ffffff;
    padding: 16px;
    margin-top: 14px;
    border-radius: 12px;
    border-left: 5px solid #22c55e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body.dark .log {
    background: #020617;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.log img {
    max-width: 50%;
    margin-top: 12px;
    border-radius: 10px;
}

body.dark .log img {
    border: 1px solid #334155;
}

.log button {
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff;
    border: none;
    cursor: pointer;
}

#darkModeToggle {
    z-index: 999;
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}


footer {
    z-index: 999;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
    font-size: 14px;
}

body.dark footer {
    background: #1e1e1e;
    color: #95a5a6;
}

.footer_dev {
    margin-left: 6px;
    color: #27ae60;
    font-weight: 600;
}

.leaflet-control-attribution {
    display: none !important;
}

.leaflet-control-geocoder {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-control-geocoder-icon {
    display: none !important;
}

.leaflet-control-geocoder-form {
    display: block !important;
}

.leaflet-control-geocoder-form input {
    width: 220px;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

body.dark .leaflet-control-geocoder-form input {
    background: #020617;
    color: #e5e7eb;
}

.leaflet-control-geocoder-alternatives {
    margin-top: 6px;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

body.dark .leaflet-control-geocoder-alternatives {
    background: #020617;
}

body.dark .leaflet-control-geocoder-alternatives,
body.dark .leaflet-control-geocoder-alternatives li,
body.dark .leaflet-control-geocoder-alternatives a,
body.dark .leaflet-control-geocoder-alternatives span {
    color: #f8fafc !important;
}

body.dark .leaflet-control-geocoder-alternatives li span {
    color: #cbd5f5 !important;
}

.leaflet-control-geocoder-alternatives li {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
}

body.dark .leaflet-control-geocoder-alternatives li:hover {
    background: #022c22;
}
