body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Zapobieganie poziomemu przewijaniu */
}

header {
    background-color: #2C3E50; /* Ciemniejszy i bardziej nowoczesny kolor */
    color: white;
    text-align: center;
    padding: 1em 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.header-content h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

.header-content p {
    margin: 10px 0 0;
    font-size: 1.2em;
    font-weight: 400;
}

.container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 100px); /* Zmniejszono wysokość o wysokość nagłówka */
    width: 100%; /* Kontener zajmuje pełną szerokość */
}

#sidebar, #sidebar-right {
    width: 300px;
    padding: 10px;
    background: #f4f4f4;
    overflow-y: auto;
}

#sidebar {
    border-right: 1px solid #ddd;
}

#sidebar-right {
    border-left: 1px solid #ddd;
}

.map-container {
    flex-grow: 1;
    height: 100%;
}

.filters {
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.filter-group select, 
.filter-group input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

#callsignFilter {
    width: calc(100% - 22px); /* Dostosowanie szerokości pola wyszukiwania */
}

.reset-filters {
    display: block;
    width: 100%;
    padding: 10px;
    background: #2C3E50; /* Dopasowanie do nagłówka */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.reset-filters:hover {
    background: #1A252F;
}

#legend {
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
}

#exportMenu {
    padding: 10px;
    background: #f4f4f4;
    border-top: 1px solid #ddd;
}

#exportMenu h3 {
    margin-top: 0;
}

#exportMenu button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #2C3E50; /* Dopasowanie do nagłówka */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

#exportMenu button:hover {
    background: #1A252F;
}

.qth-input {
    margin-top: 10px;
}

.qth-input label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.qth-input input {
    width: calc(100% - 22px); /* Dostosowanie szerokości pola */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.qth-input button {
    width: 100%;
    padding: 10px;
    background: #2C3E50; /* Dopasowanie do nagłówka */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.qth-input button:hover {
    background: #1A252F;
}

.route-input {
    margin-top: 20px;
}

.route-input label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.route-input input {
    width: calc(100% - 22px); /* Dostosowanie szerokości pola */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.route-input button {
    width: 100%;
    padding: 10px;
    background: #2C3E50; /* Dopasowanie do nagłówka */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif; /* Dodano czcionkę */
}

.route-input button:hover {
    background: #1A252F;
}

/* Style dla celownika snajperskiego */
.sniper-crosshair {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Sprawia, że element jest "przezroczysty" dla kliknięć */
}

.sniper-circle {
    stroke: red;
    stroke-width: 2;
    fill: none;
}
.distance-label {
    background: none;
    border: none;
    box-shadow: none;
    font-weight: bold;
    font-size: 14px;
    color: black;
    text-shadow: 1px 1px 2px white;
}

.sniper-line {
    stroke: red;
    stroke-width: 1;
}

.sniper-text {
    fill: red;
    font-size: 12px;
    text-anchor: middle;
}

@media (max-width: 768px) {
    header {
        display: none; /* Ukrycie nagłówka na telefonach i małych tabletach */
    }

    .container {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        order: 2;
        border-right: none;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .map-container {
        order: 1;
        height: 99vh; /* Zwiększenie wysokości mapy na małych tabletach i telefonach */
        width: 100%; /* Mapa zajmuje pełną szerokość */
    }

    #sidebar-right {
        width: 100%;
        order: 3;
        border-right: none;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .filters,
    #exportMenu {
        margin-bottom: 20px;
    }

    .filter-group,
    .qth-input,
    .route-input {
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) {
    .container {
        flex-direction: row;
    }

    header {
        display: block; /* Pokaż nagłówek na komputerach stacjonarnych i dużych tabletach */
    }

    #sidebar {
        order: 1;
        width: 300px;
    }

    .map-container {
        order: 2;
        height: calc(100vh - 100px); /* Mapa zajmuje resztę wysokości */
    }

    #sidebar-right {
        order: 3;
        width: 300px;
    }
	.header-content p a {
    color: white; /* Biały kolor dla linku */
    text-decoration: none; /* Usunięcie podkreślenia */
}

.header-content p a:hover {
    text-decoration: underline; /* Podkreślenie linku po najechaniu */
}
.header-content p a {
    color: white; /* Biały kolor dla linku */
    text-decoration: none; /* Usunięcie podkreślenia */
}

.header-content p a:hover {
    text-decoration: underline; /* Podkreślenie linku po najechaniu */
}
.cta-section {
    background-color: #f8f9fa;
    border: 2px solid #6c757d;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    max-width: 90%;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-section h2 {
    color: #343a40;
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}



}
