body { margin: 0; padding: 0; background: #f4f7f9; font-family: 'Segoe UI', Tahoma, sans-serif; overflow: hidden; }
#map { height: 100vh; width: 100%; }

.user-location-dot {
	width: 12px; height: 12px;
	background: #007bff; border: 3px solid white;
	border-radius: 50%; box-shadow: 0 0 10px rgba(0,123,255,0.8);
	animation: gpsPulse 2s infinite;
}

@keyframes gpsPulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.imgw-radar-layer { image-rendering: pixelated; image-rendering: crisp-edges; transition: opacity 0.15s ease-in-out; }

.control-group {
	display: flex; flex-direction: column;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 14px; 
	padding: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.custom-control-btn {
	background: transparent; width: 44px; height: 44px;
	border: none; border-radius: 10px;
	cursor: pointer; display: flex; align-items: center;
	justify-content: center; font-size: 18px; color: #2c3e50;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 600; margin: 2px 0;
}

.custom-control-btn:hover { background: rgba(0, 0, 0, 0.05); color: #000; }
.custom-control-btn.active { background: #007bff; color: white; box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); }

.sub-control-group {
	display: flex; flex-direction: column; gap: 4px; 
	padding: 6px 0; margin: 2px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sub-control-btn {
	background: rgba(0, 0, 0, 0.03); border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 8px;
	width: 44px; height: 30px; font-size: 10px; cursor: pointer; font-weight: bold;
	display: flex; align-items: center; justify-content: center; color: #555;
	transition: all 0.2s ease;
}
.sub-control-btn:hover { background: rgba(0, 0, 0, 0.08); }
.sub-control-btn.active { background: #2c3e50; color: white; border-color: #2c3e50; }

.zoom-btn { font-size: 22px; }

.loc-btn-wrapper {
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 50%; padding: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.4);
	display: flex; justify-content: center; align-items: center;
}
.loc-btn { border-radius: 50% !important; }

.menu-toggle-btn {
	display: none;
	background: #2c3e50; color: white;
	box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}
.menu-toggle-btn.active { background: #e74c3c; }

/* Oś czasu */
.timeline-container {
	position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
	z-index: 1000; background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	padding: 12px 20px; border-radius: 20px; display: flex;
	align-items: center; gap: 15px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.4); width: 85%; max-width: 800px;
}

.slider-wrapper { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }

#radarSlider { 
	width: 100%; cursor: pointer; height: 8px; -webkit-appearance: none; appearance: none;
	background: transparent; border-radius: 50px; outline: none;
	background-image: repeating-linear-gradient(to right, #ccc, #ccc 1px, transparent 1px, transparent 7.14%);
}

#radarSlider::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
	background: #007bff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.3); border: 2.5px solid white;
	transition: transform 0.1s;
}
#radarSlider::-webkit-slider-thumb:active { transform: scale(1.15); }
#radarSlider::-moz-range-thumb {
	width: 22px; height: 22px; border-radius: 50%; background: #007bff; cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3); border: 2.5px solid white; transition: transform 0.1s;
}
#radarSlider::-moz-range-thumb:active { transform: scale(1.15); }

.time-labels { display: flex; justify-content: space-between; font-size: 11px; color: #444; font-weight: 600; padding: 0 4px; }
.time-info { display: flex; justify-content: space-between; font-size: 14px; font-weight: bold; }

.status-container { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; font-weight: normal; }
#statusLabel { font-weight: bold; }
#countdownLabel { font-family: monospace; font-weight: bold; background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 6px; color: #555; }

.play-btn {
	background: #28a745; color: white; border: none; min-width: 44px; height: 44px;
	border-radius: 50%; cursor: pointer; font-size: 20px; display: flex;
	align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
	transition: all 0.2s ease;
}

.leaflet-labels-pane { filter: brightness(0.9) contrast(2) drop-shadow(1px 1px 0px white); pointer-events: none; }

/* --- WYŁADOWANIA --- */
.strike-plus { font-size: 16px; font-weight: 900; display: flex; align-items: center; justify-content: center; pointer-events: none; line-height: 1; }
.strike-inner { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.strike-pulsing { animation: strikePulse 1.2s infinite ease-in-out; border-radius: 50%; padding: 1px; }

@keyframes strikePulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.8); transform: scale(1); }
	50% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); transform: scale(1.15); }
	100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); transform: scale(1); }
}

/* Legenda opadów */
.radar-legend {
	position: absolute; right: 15px; top: 15px; z-index: 1000;
	background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
	border-radius: 12px; border: 1px solid rgba(255,255,255,0.4);
	box-shadow: 0 8px 32px rgba(0,0,0,0.12); font-size: 11px;
	max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
}
.legend-toggle { background: transparent; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; cursor: pointer; }
.legend-content { display: none; padding: 12px; width: 160px; overflow-y: auto; max-height: 250px; }
.legend-item { display: flex; align-items: center; margin-bottom: 5px; gap: 8px; }
.legend-color { width: 25px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0; }

/* RESPONSYWNOŚĆ - SMARTFONY DEDYKOWANE UKRYWANIE MENU */
@media (max-width: 767.98px) {
	.menu-toggle-btn { display: flex; }
	.left-controls-wrapper .control-group:not(.always-visible) {
		max-height: 0; opacity: 0; overflow: hidden; padding: 0; border: none; pointer-events: none; transition: all 0.3s ease;
	}
	.left-controls-wrapper.menu-expanded .control-group:not(.always-visible) {
		max-height: 500px; opacity: 1; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.4); pointer-events: auto;
	}
	.timeline-container { width: 92%; padding: 8px 12px; bottom: 15px; gap: 8px; }
	.time-info { font-size: 11px; }
	.custom-control-btn { width: 40px; height: 40px; }
	.sub-control-btn { width: 40px; height: 26px; font-size: 9px; }
	.status-container { gap: 3px; font-size: 11px; }
	#countdownLabel { padding: 1px 4px; font-size: 10px; }
}

/* ABSOLUTNE FIXY DLA PŁYWAJĄCEGO MENU BOCZNEGO */
.left-controls-wrapper {
	position: absolute !important;
	top: 80px !important;
	left: 15px !important;
	z-index: 1000 !important;
	width: 250px !important;
	max-height: calc(100vh - 30px);
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(226, 232, 240, 0.8) !important;
	border-radius: 16px !important;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
	padding: 14px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	box-sizing: border-box !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Paski przewijania dla bardzo małych ekranów pionowych */
.left-controls-wrapper::-webkit-scrollbar {
	width: 4px;
}
.left-controls-wrapper::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.2);
	border-radius: 4px;
}

.menu-section-title {
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin: 6px 0 2px 0;
	padding-bottom: 4px;
	border-bottom: 1px solid #f1f5f9;
	white-space: nowrap !important;
}

/* Przyciski główne */
.custom-control-btn {
	background: #ffffff !important;
	color: #334155 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	padding: 9px 12px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100% !important;
	text-align: left !important;
	box-sizing: border-box !important;
	white-space: nowrap !important;
}

.custom-control-btn:hover {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
}

.custom-control-btn.active {
	background: #2563eb !important;
	color: #ffffff !important;
	border-color: #1d4ed8 !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* Siatka dwukolumnowa (np. dla Przybliż/Oddal) */
.grid-controls {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 6px !important;
	width: 100% !important;
}
.grid-controls .custom-control-btn {
	justify-content: center !important;
	padding: 8px 4px !important;
}

/* Podgrupy (CMAX, ZHAIL, EHT) */
.sub-control-group {
	display: flex !important;
	gap: 4px !important;
	background: #f1f5f9 !important;
	padding: 4px !important;
	border-radius: 8px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}
.sub-control-btn {
	flex: 1 !important;
	background: transparent !important;
	border: none !important;
	color: #64748b !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 7px 2px !important;
	cursor: pointer;
	border-radius: 6px !important;
	transition: all 0.15s ease;
	text-align: center !important;
}
.sub-control-btn:hover {
	color: #1e293b !important;
	background: rgba(255,255,255,0.6) !important;
}
.sub-control-btn.active {
	background: #ffffff !important;
	color: #1e293b !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}
.lightning-filters-panel {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	padding: 8px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}
.filter-section {
	display: flex !important;
	flex-direction: column !important;
	gap: 3px !important;
}
.filter-label {
	font-size: 9px !important;
	font-weight: 700 !important;
	color: #94a3b8 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 2px;
}
.filter-buttons-row {
	display: flex !important;
	gap: 4px !important;
}
.filter-buttons-row .sub-control-btn {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	color: #475569 !important;
}
.filter-buttons-row .sub-control-btn.active {
	background: #0f172a !important;
	color: #ffffff !important;
	border-color: #0f172a !important;
}
.strike-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.strike-circle-inner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8); /* Ciemniejsze tło wewnątrz, by znak był czytelny na jasnej mapie */
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}
.strike-pulsing {
    animation: strikePulse 1.5s infinite alternate;
}
@keyframes strikePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}