/* ===== ZÁKLAD ===== */
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: #1a1a1a; 
    color: #fff; 
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- TOP BLOCK --- */
.topBlock {
  background-color: #252525;
  height: 55px;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  border-bottom: 2px solid #00d4ff;
  box-sizing: border-box;
}

.pageTitle { 
    font-size: 20px; 
    font-weight: 900; 
    color: #00d4ff; 
    text-transform: uppercase; 
}

.topInfo { font-size: 13px; color: #888; }

/* --- OBSAH --- */
.contentArea {
    margin-top: 80px;
    padding: 20px;
    padding-bottom: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- KARTA --- */
.card { 
    background: #252525; 
    padding: 30px; 
    margin-bottom: 30px;
    border-radius: 4px; 
    border: 1px solid #333;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4); 
}

h2 { 
    color: #00d4ff; 
    margin-top: 0; 
    border-bottom: 1px solid #333; 
    padding-bottom: 15px;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

/* --- LAYOUT PRO IP CHECKER --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

@media (max-width: 900px) {
    .main-layout { grid-template-columns: 1fr; }
    #map { height: 300px !important; }
}

h3 { 
    font-size: 12px; 
    color: #00d4ff; 
    margin-bottom: 15px;
    text-transform: uppercase; 
    letter-spacing: 2px; 
    opacity: 0.8;
}

.info { 
    margin-bottom: 15px; 
    border-bottom: 1px solid #333; 
    padding-bottom: 8px; 
}

.label { 
    font-weight: bold; 
    color: #666; 
    font-size: 11px; 
    text-transform: uppercase;
}

.value { 
    color: #fff; 
    font-size: 16px; 
    font-family: 'Consolas', monospace; 
}

.speed-val { color: #00d4ff; font-weight: bold; font-size: 24px; }

/* --- BEZPEČNOSTNÍ BAR --- */
.safety-bar-container { 
    background: #111; 
    height: 6px; 
    width: 100%; 
    margin-top: 10px; 
    border-radius: 10px;
    overflow: hidden;
}

.safety-bar { 
    height: 100%; 
    width: 0%; 
    background-color: #00d4ff; 
    transition: width 1.5s ease; 
}

/* --- MAPA --- */
#map { 
    height: 100%; 
    min-height: 400px; 
    border-radius: 4px; 
    border: 1px solid #333;
    filter: invert(100%) hue-rotate(180deg) brightness(0.7); /* Dark Mode pro Leaflet */
}

#loader { 
    text-align: center; 
    padding: 50px; 
    color: #00d4ff; 
    font-family: monospace;
}

.flag { height: 12px; margin-left: 10px; border-radius: 2px; }

/* --- TLAČÍTKO --- */
.btn-container { text-align: center; margin-top: 20px; }

.ts-button {
    background: #00d4ff;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.4s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ts-button:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- SPEED GRID --- */
.speed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

/* --- VYCENTROVANÝ FOOTER --- */
.bottomBar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 55px;
    background-color: #252525;
    border-top: 2px solid #00d4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-sizing: border-box;
    z-index: 2000;
}

.backBtnFixed {
  color: #00d4ff !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 13px;
  transition: 0.2s;
}
.backBtnFixed:hover { text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); transform: translateX(-5px); }

.bottomBarInfo { color: #555; font-size: 10px; text-transform: uppercase; }

@media screen and (max-width: 600px) {
    .bottomBarInfo { display: none; }
    .bottomBar { gap: 0; }
}