/* Global Reset and Base Styles */
body, h1, h2, h3, p, ul, li, a, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
    color: #333;
    overflow: hidden;
}

.faq-title {
    text-align: center;
}

.faq-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background-color: #f0f0f0;
    border-radius: 8px;
    width: 80%;
    height: 400px;
    place-content: start space-evenly;
    padding: 20px;
    margin: 0 auto;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2),
                2px 2px 5px rgba(0, 0, 0, 0.2);

    overflow-y: auto;
    overflow-x: hidden;
}


.faq-box {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 40%;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    color: #555;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle {
    font-size: 20px;
}

/* password requirements */


.requirements-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: 86%;
}

.requirements-hidden {
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.requirements-show {
    display: none;
    margin-top: 10px;
    color: #555;
}

.requirements-item.active .requirements-show {
    display: block;
}

.requirements-toggle {
    font-size: 20px;
}

.requirement-element {
    margin-top: 5px;
    margin-left: 15px;
    font-size: 14px;
    color: green;
    font-weight: normal;
}

.requirements-hidden.unsatisfied {
    color: red;
    font-weight: bold;
}

.warning-icon {
    color: red;
    margin-left: 5px;
    font-size: 1.2em;
    vertical-align: middle;
}

.requirement-element.unsatisfied {
    color: red;
    font-weight: bold;
}

.requirements-hidden {
    color: black;
}

.requirements-hidden.satisfied {
    color: green;
    font-weight: bold;
}

.requirements-hidden.unsatisfied {
    color: red;
    font-weight: bold;
}

.warning-icon {
    color: red;
    margin-left: 5px;
    font-size: 1.2em;
    vertical-align: middle;
}

.requirement-element.satisfied {
    color: green;
    font-weight: bold;
}

.requirement-element.unsatisfied {
    color: red;
    font-weight: bold;
}



/* Header */
header {
    background-color: #721080;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main Layout */
main {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
}

/* Left Container */
.left-container {
    position: relative;
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.logo-container, .logo-desc {
    flex-shrink: 0; /* Don't shrink these items */
}

.logo-desc {
    text-align: center;
    color: #333;
    padding-bottom: 5%;
}

.logo-desc h2,
.logo-desc p {
    margin: 0;
}

.logo-desc h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    color: #721080;
}

.logo-desc p {
    font-size: 1rem;
    color: #721080;
}

.form-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2),
                2px 2px 5px rgba(0, 0, 0, 0.2);
}

.form-container h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #721080;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 10px;
}

#address-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
}

/* Buttons */
#menu-toggle {
    display: none;
}
#calculate-button, #help-button, #logout-button, #change-password-button, #back-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #721080;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s ease-in-out;
}


#help-button {
    margin: 10px;
    width: 120px;
    font-size: 0.9rem;
}

#back-button {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 10px;
    width: 120px;
    font-size: 0.9rem;
}

#calculate-button {
    align-self: center;
    margin-top: auto;
    width: 200px;
}

#logout-button {
    margin: 10px;
    width: 120px;
    font-size:0.9rem;
}

#change-password-button {
    margin: 10px;
    width: 120px;
    font-size:0.9rem;
}

.message {
    text-align: center;
    color: red;
    font-size: 1rem;
    margin-top: 10px;
    padding-bottom: 10px;
}

.message-container {
    margin-top: 10px;
    font-size: 14px;
    color: red;
    margin-bottom: 10px;
}

.message-container.success {
    color: green;
}

#calculate-button:hover, #help-button:hover, #logout-button:hover, #change-password-button:hover, #back-button:hover {
    background-color: #63096f;
}

#calculate-button:active, #help-button:active, #logout-button:active, #change-password-button:active, #back-button:active {
    background-color: #450060;
    transform: scale(0.98);
}
/* Middle Container */
.middle-container {
    flex: 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.user-info {
    text-align: center;
    margin-bottom: 10px;
    color: #888; /* Light gray text */
}

.user-info p {
    color:#8b929a
}

.user-info strong {
    color: #333; /* Darker for username */
}


/* Map */
#map {
    width: 100%;
    height: calc(100vh - 20px);
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #f4f4f4;
    border-top: 1px solid #ccc;
    font-size: 0.9rem;
    color: #555;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 80%;
    height: auto;
    max-height: 100px;
}


.requirements {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-size: 14px;
    line-height: 1.6;
}

.requirements h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.requirements ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirements li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
}

.requirement-element.unsatisfied {
    color: red;
    font-weight: bold;
}

.requirement-element {
    color: green;
    font-weight: normal;
}

/* Leaflet Toggle Button */
.leaflet-control-layers-toggle {
    background-color: #007bff !important;
    border-radius: 5px !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
}


.layers-control-button {
    position: absolute;
    top: 3%; /* Position button slightly down from the top */
    right: 20px; /* Position button on the right */
    background-color: #fff;
    margin-right: 1.2%;
    color: black;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: top 0.3s, right 0.3s;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom: 1px solid #ccc;
}

.leaflet-control-layers {
    display: none;
    position: absolute !important;
    margin-top: 60px !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 1000 !important; /* Ensure it's above the map */
    overflow-y: auto !important;
    width: 25em;
    font-size: 14px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding: 10px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    max-width: 250px !important;
    overflow-y: auto !important;
}


.leaflet-control-layers .leaflet-control-layers-list {
    overflow-y: auto;
}

.leaflet-control-layers label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.leaflet-control-layers span {
    margin-left: 5px;
    font-size: 14px;
    color: #333;
}

.leaflet-control-layers label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
    border: 1px solid #b8b8b8;
    border-bottom: none;
    padding: 5px;
}

.leaflet-control-layers label:hover {
    background-color: rgba(0, 0, 0, 0.1);
    filter: brightness(0.9);
    cursor: pointer;
}

.leaflet-control-layers .leaflet-control-layers-list {
    padding: 0;
}

/* Styl dla dodatkowej ikonki i opisu */
.layer-icon-description {
    margin-top: 5px;
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.layer-icon-description span {
    font-size: 16px;
}

.leaflet-control-layers.visible {
    display: block;
    top: 50px; /* Move the control panel slightly down */
}

/* Login Page */

body.login-page {
    background-color: #f4f4f4;
}

.login-page {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

/* Header */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
/* 
.logo-container img {
    width: 80px;
    height: auto;
} */

.logo-desc h2 {
    margin-top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo-desc p {
    font-size: 14px;
    color: #666;
}

/* Input Boxes */
.input-box {
    width: 100%;
    margin-bottom: 20px;
}
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: #721080;
    outline: none;
}

.input-submit {
    width: 100%;
    text-align: center;
}

.submit-btn, #password-change-button {
    background-color: #721080;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #721080;
}


@media (max-width: 600px) {
    .login-box {
        padding: 20px;
        max-width: 90%;
    }

    .logo-desc h2 {
        font-size: 20px;
    }

    .logo-desc p {
        font-size: 12px;
    }

    .input-field {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 14px;
    }
    body, html {
        height: 100%;
        overflow: hidden;
    }

    main {
        flex-direction: column;
    }

    .left-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: white;
        color: white;
        /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
        padding: 5px;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .logo-container img {
        margin-top: 15px;
        height: 30px;
    }

    .logo-desc {
        display: none;
    }

    body.login-page .logo-desc {
        display: block;
        width:75%;

    }
    
    body.login-page .logo-container img {
        margin-top: 0;
        height: 50px;
    }

    .form-container {
        flex: 1;
        margin-right: 15px;
        padding: 3px;
    }

    .form-container h3 {
        display: none;
    }

    .form-group {
        display: flex;
        width: 80%;
    }
    
    .form-group input {
        margin-top: 20px;
        flex: 1;
        font-size: 0.9rem;
        border: 1px solid #ccc;
        border-radius: 4px 0 0 4px;
        box-sizing: border-box;
        margin-bottom: 5px;
        margin-left: 5px;
        margin-right: 20px;
        height: 30px;
    }
    
    .button-container {
        display: flex;
        align-items: center;
    }
    
    #menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    #calculate-button {
        padding: 8px;
        font-size: 0.9rem;
        border: 1px solid #ccc;
        border-radius: 4px 4px 4px 4px;
        background-color: #721080;
        color: white;
        margin-bottom: 5px;
        margin-right: 10px;
        height: 30px;
        width: 100%;
    }


    .middle-container {
        position: absolute;
        top: 60px;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .layers-control-button {
        position: absolute;
        top: 7%;
        right: 10px;
        background-color: #fff;
        margin-right: 1.2%;
        color: black;
        border: none;
        border-radius: 4px;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: top 0.3s, right 0.3s;
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
        border-bottom: 1px solid #ccc;
    }

    #map {
        height: calc(100vh - 60px);
        width: 100%;
    }

    .leaflet-control-layers {
        display: none;
        margin-top: 100px !important;
        width: 50em;
        max-height: 30em !important;
    }

    .leaflet-top, leaflet-left {
        padding-top: 9%;
    }



    .menu-toggle {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #721080;
        cursor: pointer;
        z-index: 1001;
        margin-right: 10px;
    }

    .user-info {
        margin-left: 5px;
        margin-top: 20px;
    }
    
    #help-button {
        width: 120px;
        font-size:0.9rem;
    }
    
    #logout-button {
        width: 120px;
        font-size:0.9rem;
    }

    #change-password-button {
        width: 120px;
        font-size: 0.9rem;
    }
}

.form-group select {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    margin-bottom: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23721080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

/* Map selection styling */
.map-selection label {
    display: block;
    margin-bottom: 10px;
    color: #721080;
}

.map-options {
    display: grid;
    grid-template-columns: repeat(2, 20%);
    gap: 5px;
}

.map-option {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: background-color 0.2s;
    cursor: pointer;
}

.map-option:hover {
    background-color: #f0f0f0;
}

.map-option input {
    margin-right: auto;
    accent-color: #721080;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .map-options {
        grid-template-columns: 1fr;
    }
    
    .form-group select {
        font-size: 0.9rem;
        padding: 8px;
    }
}

/* Add this to your CSS file */
.gas-coverage-overlay {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background-color: white;
    border: 2px solid #888;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
}

.gas-coverage-button {
    font-weight: bold;
    background-color: #f8f9fa;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.close-gas-coverage {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
}

.loading, .error {
    text-align: center;
    padding: 20px;
}

.error {
    color: red;
}

/* Distance Measurement Container Styles */
.measurement-control {
    background-color: transparent;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
}

.measurement-header {
    display: none;
}

.measurement-header h3 {
    color: #721080;
    font-size: 1.2rem;
    margin: 0;
}

.measurement-body p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.infrastructure-section {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    padding: 10px;
}

.infrastructure-section h4 {
    color: #721080;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    accent-color: #721080;
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-item label {
    color: #333;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.measurement-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.measurement-actions h3 {
    color: #721080;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#clear-measurement {
    background-color: #6c757d;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 8px 15px;
    transition: background-color 0.3s;
    width: 100%;
}

#clear-measurement:hover:not([disabled]) {
    background-color: #5a6268;
}

#clear-measurement:disabled {
    background-color: #b0b5b9;
    cursor: not-allowed;
    opacity: 0.7;
}

.measurement-results {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    padding: 12px;
}

.measurement-results h4 {
    color: #721080;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
}

#distance-display p {
    color: #333;
    font-size: 0.9rem;
    margin: 5px 0;
}

#distance-display span {
    font-weight: bold;
    color: #721080;
}

/* Responsive styles for mobile */
@media (max-width: 600px) {
    .measurement-control {
        padding: 10px;
    }
    
    .infrastructure-section {
        padding: 8px;
    }
    
    .checkbox-item label {
        font-size: 0.85rem;
    }
    
    .measurement-actions h3 {
        font-size: 1rem;
    }
    
    #clear-measurement {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .measurement-results {
        padding: 10px;
    }
}

.user-info {
    margin: 0;
    /* Remove your inline styles and adjust here if needed */
}

.user-info p {
    margin: 0;
    color: #8b929a;
}

.user-info strong {
    color: #333;
}



#help-button,
#change-password-button, 
#logout-button {
    padding: 8px 12px;
    white-space: nowrap;
    /* Your existing button styles */
    background-color: #721080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#help-button:hover,
#change-password-button:hover,
#logout-button:hover {
    background-color: #63096f;
}

.user-info {
    margin: 0;
    /* Remove your inline styles and adjust here if needed */
}

.user-info p {
    margin: 0;
    color: #8b929a;
}

.user-info strong {
    color: #333;
}

.login-dropdown-menu {
    padding: 10px;
    margin-right: 160px;
}

.login-dropdown-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.login-dropdown-buttons-container {
    display: flex;
    gap: 10px;
}

.login-dropdown-buttons-container form {
    margin: 0;
}

#help-button,
#change-password-button, 
#logout-button {
    padding: 8px 12px;
    white-space: nowrap;
    /* Your existing button styles */
    background-color: #721080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#help-button:hover,
#change-password-button:hover,
#logout-button:hover {
    background-color: #63096f;
}

.dropdown-section {
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-header:hover {
    background-color: #e4e4e4;
}

.dropdown-header h3 {
    margin: 0;
    color: #721080;
    font-size: 1.2rem;
}

.dropdown-icon {
    font-size: 12px;
    color: #721080;
    transition: transform 0.3s;
}

.dropdown-content {
    padding: 0 15px 15px 15px;
    transition: max-height 0.3s ease-in-out, 
                opacity 0.3s ease-in-out, 
                padding 0.3s ease-in-out;
    overflow-y: auto;
    opacity: 1;

}



.dropdown-content.collapsed {

    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
    pointer-events: none; /* Disable interaction with the collapsed content */
    visibility: hidden; /* Completely hide it when collapsed */
    transform: scaleY(0); /* Collapse vertically */
    transform-origin: top; /* Collapse from the top */
    display: none; /* Ensure it takes no space */
}

.form-container::-webkit-scrollbar {
    width: 8px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Ensure the dropdown sections don't grow too large */
.layer-section, .infrastructure-section {
    margin-bottom: 10px;
}

/* Custom data upload section styling */
#custom-data-upload {
    margin-top: 10px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload-container label {
    font-weight: 500;
    margin-bottom: 5px;
}

#custom-geojson-file {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 100%;
}

#upload-custom-data {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

#upload-custom-data:hover {
    background-color: #45a049;
}

.upload-status {
    margin-top: 10px;
    padding: 5px;
    font-size: 14px;
    min-height: 20px;
}

/* Style dla sekcji pobierania pliku */
.download-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.download-section h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
}

.download-info {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* Progress bar styles */
.progress-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.progress-percentage {
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

.progress-details {
    color: #6c757d;
    font-size: 12px;
    text-align: center;
}

/* Style dla przycisku pobierania */
.btn-download {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-download:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-download:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-download:disabled:hover {
    background-color: #6c757d;
    transform: none;
}

.download-icon {
    font-size: 16px;
}

/* Responsywność */
@media (max-width: 768px) {
    .download-section {
        margin: 15px 0;
        padding: 12px;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Animacja ładowania dla przycisku */
.btn-download.loading {
    position: relative;
    color: transparent;
}

.btn-download.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.instruction-container {
    margin-bottom: 20px;
    text-align: center;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.btn-info:hover {
    background-color: #138496;
}

.faq-box.custom-bg .faq-question {
    background: #17a2b8;
    color: white;
}
        
.faq-box.custom-bg .faq-question:hover {
    background: #138496;
}

/* ============================================== */
/* DODAJ TE STYLE NA KOŃCU style.css             */
/* Style dla sekcji Punkty PSG                   */
/* ============================================== */

.psg-points-upload {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-upload-small,
.btn-clear-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-upload-small {
    background-color: #4CAF50;
    color: white;
}

.btn-upload-small:hover {
    background-color: #45a049;
}

.btn-clear-small {
    background-color: #f44336;
    color: white;
}

.btn-clear-small:hover:not(:disabled) {
    background-color: #da190b;
}

.btn-clear-small:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.psg-points-status {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.status-loading {
    background-color: #fff3cd;
    color: #856404;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.file-format-info {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 11px;
}