* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-color: #111;
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Map takes full screen */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Leaflet podkład */
}

/* Przycisk GPS w prawym dolnym rogu (Google Maps style ale nowoczesny) */
#locate-btn {
    position: absolute;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #4facfe;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, box-shadow 0.2s;
    outline: none;
}

#locate-btn:hover {
    transform: scale(1.05);
    background: rgba(36, 36, 36, 0.95);
    box-shadow: 0 12px 40px rgba(0, 153, 255, 0.4);
    color: #00f2fe;
}

#locate-btn:active {
    transform: scale(0.95);
}

/* Pływki panel szkłopodobny (Glassmorphism) */
.glass-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000;
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-panel.collapsed .panel-content {
    display: none;
}

.panel-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
}

#toggle-panel {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: transform 0.3s, background 0.3s;
}

#toggle-panel:hover {
    background: rgba(255, 255, 255, 0.25);
}

.glass-panel.collapsed #toggle-panel {
    transform: rotate(-90deg);
}

.panel-content {
    padding: 20px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Nowoczesny suwak */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #4facfe;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
}

.coord-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.coord-inputs label {
    font-size: 11px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.6);
}

/* Nowoczesne wejścia tekstowe */
input[type=number] {
    width: 100%;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    /* Usuwamy strzałki ze spinnerów numerycznych */
    -moz-appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number]:focus {
    border-color: #4facfe;
}

/* Przyciski premium */
.primary-btn {
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.5);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Pulse animation GPS */
@keyframes pulseGps {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 153, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 153, 255, 0);
    }
}

.gps-marker-icon {
    background-color: #0099ff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: pulseGps 2s infinite;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.gps-active-state {
    color: #00f2fe !important;
}

/* Responsywność */
@media (max-width: 600px) {
    .glass-panel {
        top: auto;
        bottom: 100px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 350px;
        border-radius: 16px;
    }
    
    #locate-btn {
        bottom: 25px;
        right: 25px;
    }
}
