
body {
    margin: 0;
    padding: 0;
    background-color: #0a1a36; /* Более темный синий фон */
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.mapboxgl-popup-content {
    padding: 20px;
    border-radius: 8px;
    background: #152a47; /* Более глубокий синий */
    color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.model-panel-container {
    scrollbar-width: none;
}

.mapboxgl-popup-tip {
    border-top-color: #152a47 !important; /* Совпадает с фоном popup */
}

.mapboxgl-popup h3 {
    color: #6b9fff; /* Ярко-синий для заголовков */
}

.mapboxgl-popup strong {
    color: #93c5ff; /* Светло-синий для выделения */
}

.map-controls {
    position: absolute;
    top: 60px;
    right: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 40px;
}

.login-control {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 0;
    margin: 10px 0 25px 0;
}

.control-button i {
    font-size: 18px;
}

.map-style-menu {
    position: absolute;
    top: 140px;
    right: 60px;
    background: #152a47;
    border-radius: 4px;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1;
}

.map-style-menu.active {
    display: block;
}

.map-style-menu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.map-style-menu button:hover {
    background: #1d3456; /* Синий темный для эффекта hover */
}

.search-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 10, 30, 0.5); /* Темно-синий полупрозрачный */
    display: none;
    z-index: 1000;
}

.search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #152a47;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-button {
    padding: 10px 20px;
    background: #1e58d7; /* Ярко-синий */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #184bb8; /* Немного темнее синий */
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    color: #e2e8f0;
}

.address-item {
    padding: 10px;
    border-bottom: 1px solid #2d4268;
    cursor: pointer;
    transition: background 0.3s;
}

.address-item:hover {
    background: #1d3456;
}

.address-main {
    font-weight: bold;
    margin-bottom: 5px;
}

.address-details {
    font-size: 0.9em;
    color: #a3b8da; /* Светло-синий для деталей */
}

.error {
    color: #ef4444;
    padding: 10px;
}

.loading {
    color: #4a72c4; /* Синий для загрузки */
    padding: 10px;
}

.results-count {
    padding: 10px;
    color: #4a72c4;
    border-bottom: 1px solid #2d4268;
}

.modal-show {
    display: block;
}

.wms-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.wms-dialog-content {
    color: #e2e8f0;
    background: #152a47;
    padding: 20px;
    border-radius: 12px;
    width: 400px;
    min-width: 300px;
    max-width: 90vw;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

.wms-url-input {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #3b6ef6; /* Более синий акцент */
    border-radius: 8px;
    background: #1a305a;
    color: #fff;
    margin-bottom: 10px;
}

.load-wms-btn {
    width: 100%;
    padding: 10px;
    background: #3b6ef6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.close-dialog-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #e2e8f0;
    z-index: 10;
}

.close-dialog-btn:hover {
    color: #f87171;
}

.control-button {
    background: #152a47;
    border: none;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.login-button {
    position: relative;
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    z-index: 2;
}

.login-button:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2d3748 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.control-button:hover {
    background: #1d3456;
    transform: translateY(-1px);
}

/* WMS Layers Modal */
.wms-layers-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.wms-layers-content {
    background: #152a47;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;

    h3 {
        color: #fff;
    }
}

/* Button Styles */
.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.cancel-btn {
    background: #2d4268; /* Темно-синий для кнопки отмены */
    color: white;
}

.save-btn,
.apply-btn {
    background: #3b6ef6;
    color: white;
}

.gml-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.gml-file-input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #3b6ef6;
    border-radius: 8px;
    background: #1a305a;
    color: #fff;
}

.load-gml-btn {
    width: 100%;
    padding: 10px;
    background: #3b6ef6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.search-title {
    background: #152a47;
    padding: 1px 15px;
    width: 100%;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 15px;
    max-width: 90vw;
    box-sizing: border-box;
}

.load-gml-btn:hover {
    background: #184bb8;
}

.wms-links-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.wms-links-content {
    background: #152a47;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: #e2e8f0;
}

.wms-link-item {
    padding: 15px;
    border-bottom: 1px solid #203759; /* Синяя разделительная линия */
    margin-bottom: 10px;
}

.wms-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    margin-left: 10px;
}

.info-btn:hover {
    background-color: #374151;
}

.wms-link-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #6b9fff;
    flex-grow: 1;
}

.wms-link-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.wms-link-btn,
.add-wms-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wms-link-btn {
    background: #184bb8;
    color: white;
    text-decoration: none;
}

.add-wms-btn {
    background: #1e58d7;
    color: white;
}

.wms-link-btn:hover,
.add-wms-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.close-modal-btn:hover {
    color: #a3b8da;
}

.feature-info-popup {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.feature-info-item {
    margin-bottom: 10px;
}

.feature-info-row {
    margin: 5px 0;
    font-size: 14px;
}

.feature-info-row strong {
    color: #6b9fff;
    margin-right: 5px;
}

.wfs-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.wfs-dialog-content {
    background: #152a47;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: #e2e8f0;
}

.wfs-url-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #3b6ef6;
    border-radius: 8px;
    background: #1a305a;
    color: #fff;
}

.load-wfs-btn {
    width: 100%;
    padding: 10px;
    background: #3b6ef6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.mapboxgl-ctrl-group {
    display: none;
}

.feature-table-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: #152a47;
    color: #e2e8f0;
    max-height: 300px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 990;
    transition: transform 0.3s ease, width 0.3s ease, left 0.3s ease;
    border-radius: 8px 8px 0 0;
    overflow: auto;
}

.feature-table-container.active {
    transform: translateX(-50%) translateY(0);
}

.feature-table-container table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    min-width: 800px;
}

.feature-table-container th,
.feature-table-container td {
    padding: 8px 12px;
    white-space: nowrap;
    text-align: left;
}

.feature-table-container th:last-child,
.feature-table-container td:last-child {
    width: 120px;
    text-align: center;
}

.feature-table-container button {
    min-width: 30px;
    padding: 4px 8px;
    margin: 0 2px;
}

.feature-table-container th {
    background-color: #1a305a;
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (max-width: 1024px) {
    .feature-table-container {
        width: 95%;
    }
}

.feature-table-title {
    font-size: 1.1em;
    color: #6b9fff;
    font-weight: 500;
}

.feature-table-close {
    background: none;
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 20px;
    padding: 0 10px;
}

.feature-table {
    transition: width 0.3s ease, margin-left 0.3s ease !important;
    max-width: 100% !important;
}

.feature-table th,
.feature-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #203759;
    font-size: 0.9em;
}

.feature-table th {
    background: #1a305a;
    color: #6b9fff;
    font-weight: 500;
    white-space: nowrap;
}

.feature-table tr:hover {
    background: #1a305a;
}

.feature-table .link-button {
    background: #1e58d7;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8em;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.feature-table .link-button:hover {
    background: #184bb8;
}

.feature-table td.no-data {
    color: #a3b8da;
    font-style: italic;
}

.favorite-btn,
.searchWms-btn {
    background-color: #102447; /* Темно-синий */
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.favorite-btn:hover,
.searchWms-btn:hover {
    background-color: #1a305a;
}

.favorite-btn i {
    color: #ff4136;
}

.searchWms-btn {
    background-color: #1a305a;
}

.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 16px;
    background: #1a305a;
    color: #e2e8f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.tab-btn:hover {
    background: #1d3456;
}

.tab-btn.active {
    background: #3b6ef6;
    color: white;
}

.hidden {
    display: none;
}

.edit-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    background: #152a47;
    color: #e2e8f0;
    z-index: 1000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.edit-panel-content {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.edit-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-edit-panel {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 24px;
    cursor: pointer;
}

.mini-map-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
}

.mini-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #93c5ff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    background: #1a305a;
    border: 1px solid #2d4268;
    border-radius: 4px;
    color: #e2e8f0;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.save-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3168ce 0%, #1a4282 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(26, 66, 130, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.save-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.save-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Add a container with padding to ensure button is visible */
/*.button-container {*/
/*    padding: 20px 0 40px 0;*/
/*    margin-top: 20px;*/
/*    text-align: center;*/
/*}*/


.button-group {
    display: flex;
    gap: 8px;
}

.edit-button {
    background: #3b49c4 !important; /* Синяя кнопка редактирования */
}

.feature-table-header {
    padding: 10px 20px;
    background: #1a305a;
    border-bottom: 1px solid #203759;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
    display: none;
    transition: transform 0.3s ease-in-out;
}

.export-buttons {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.export-btn {
    background: #3b6ef6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.export-btn:hover {
    background: #184bb8;
}

.show-all-btn {
    background: #3b6ef6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.show-all-btn:hover {
    background: #184bb8;
}

.delete-button {
    background-color: #ef4444 !important;
}

.delete-button:hover {
    background-color: #dc2626 !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 10, 30, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    display: grid;
    grid-template-columns: 1.2fr 1px 0.8fr;
    max-width: 1000px;
    width: 90%;
    margin: 10vh auto;
    background-color: rgba(13, 31, 61, 0.95); /* Насыщенный темно-синий */
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.1); /* Синяя рамка */
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.login-form-section {
    padding: 40px;
    animation: slideIn 0.6s ease-out;
}

.social-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: slideIn 0.6s ease-out 0.2s backwards;
}

.vertical-divider {
    width: 1px;
    background: linear-gradient(
            to bottom,
            transparent,
            rgba(100, 150, 255, 0.1),
            transparent
    );
    height: 100%;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #a3b8da;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e2e8f0;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 150, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(10, 20, 40, 0.6); /* Темно-синий фон */
    color: #e2e8f0;
    font-size: 16px;
    height: 48px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3b6ef6;
    box-shadow: 0 0 0 2px rgba(59, 110, 246, 0.2);
    outline: none;
}

.form-label {
    color: #a3b8da;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    height: 48px;
    background: linear-gradient(
            135deg,
            #3168ce 0%,
            #1a4282 100%
    ); /* Синий градиент */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 0;
}

.btn-secondary {
    margin: 8px 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 104, 206, 0.3);
}

.social-button {
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
}

.btn-google {
    background: linear-gradient(135deg, #db4437 0%, #c53030 100%);
}

.btn-facebook {
    background: linear-gradient(
            135deg,
            #3b5998 0%,
            #2f477a 100%
    ); /* Более синий Facebook */
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-button i {
    margin-right: 12px;
    font-size: 18px;
}

.forgot-password {
    font-size: 14px;
    color: #a3b8da;
    text-decoration: none;
    display: block;
    text-align: right;
    margin: -10px 0 20px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #3b6ef6;
}

.text-center h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #e2e8f0;
}

.register-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 150, 255, 0.1);
    text-align: center;
}

.register-section a {
    color: #3b6ef6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-section a:hover {
    color: #6b9fff;
    text-decoration: underline;
}

.text-secondary {
    color: #a3b8da;
}

.import-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.import-dialog-content {
    position: relative;
    background: #152840; /* Темно-синий */
    color: #e2e8f0;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.import-dialog h3 {
    color: white;
    margin: 0;
    padding: 20px;
    font-weight: 500;
    font-size: 18px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}

.dialog-tabs {
    display: flex;
    flex-direction: row;
    padding: 20px;
}

.tabs-container {
    display: flex;
    flex-direction: column;
}

.tabs-header {
    display: flex;
    background: #1a2d51; /* Темно-синий фон для вкладок */
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.tab-button:hover {
    color: white;
    background: rgba(59, 110, 246, 0.05);
}

.tab-button.active {
    color: white;
    border-bottom-color: #3b6ef6;
    background: rgba(59, 110, 246, 0.1);
}

.tabs-content {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.input-container {
    display: flex;
    padding: 15px;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-container label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.input-container h3 {
    margin-bottom: 10px;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 500;
}

.separator {
    text-align: center;
    color: #a3b8da;
    margin: 15px 0;
    position: relative;
}

.url-input:focus {
    outline: none;
    border-color: rgba(59, 110, 246, 0.5);
    background: rgba(26, 48, 90, 0.4);
}

.wybierz-plik-btn {
    background: rgba(59, 73, 196, 0.8);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wybierz-plik-btn:hover {
    background: rgba(59, 73, 196, 1);
}

.file-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.file-upload-label {
    display: block;
    cursor: pointer;
}

.drag-drop-area {
    border: 2px dashed rgba(100, 150, 255, 0.2);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.drag-drop-area:hover,
.drag-drop-area.dragover {
    border-color: #3b6ef6;
    background: rgba(59, 110, 246, 0.1);
}

.file-icon {
    display: block;
    font-size: 24px;
    color: #6b9fff;
    margin-bottom: 10px;
}

.file-text {
    color: #a3b8da;
}

.selected-file {
    margin-top: 10px;
    color: #6b9fff;
    font-size: 14px;
    text-align: center;
}

.action-button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    padding: 12px 24px;
    background: #3b6ef6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: #184bb8;
    transform: translateY(-1px);
}

.file-select-btn {
    background: rgba(59, 73, 196, 0.8);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.file-name {
    color: #a3b8da;
    font-size: 14px;
    margin-left: 10px;
}

.file-input {
    display: block;
    width: 100%;
    padding: 8px;
    background: #1a2d51;
    border: 1px solid #2d4268;
    border-radius: 4px;
    color: white;
}

.file-input::-webkit-file-upload-button {
    background: #3b49c4;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.file-input::-webkit-file-upload-button:hover {
    background: #2d3aa1;
}

.url-input:disabled {
    background-color: #162a4d;
    cursor: not-allowed;
    opacity: 0.6;
}

.action-button {
    background: #3b49c4;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    align-self: flex-end;
}

.action-button:hover {
    background: #2d3aa1;
}

.no-layers-message {
    color: rgba(150, 180, 255, 0.5);
    font-style: italic;
    text-align: center;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(10, 20, 40, 0.3);
    border-top: 1px solid rgba(100, 150, 255, 0.05);
}

.secondary-button {
    background: rgba(59, 110, 246, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.secondary-button:hover {
    background: rgba(59, 110, 246, 0.2);
}

.primary-button {
    background: #3b49c4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.primary-button:hover {
    background: #2d3aa1;
}

.close-dialog-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-dialog-btn:hover {
    color: white;
}

.control-panel {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 15px;
    background: rgba(10, 25, 50, 0.95);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
    max-width: 300px;
    border: 1px solid #1a305a;
}

.control-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #6b9fff;
}

.control-group {
    margin: 10px 0;
    padding: 8px;
    background: rgba(26, 48, 90, 0.5);
    border-radius: 4px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    color: #a3b8da;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-container input[type="range"] {
    flex-grow: 1;
    height: 5px;
    background: #1a305a;
    border-radius: 5px;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #6b9fff;
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    min-width: 40px;
    color: #6b9fff;
    font-family: monospace;
}

.instructions {
    font-size: 14px;
    margin-top: 10px;
    color: #a3b8da;
    padding: 8px;
    border-left: 3px solid #6b9fff;
    background: rgba(26, 48, 90, 0.3);
}

input[type="file"] {
    background: #1a305a;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    color: #a3b8da;
}

input[type="file"]::-webkit-file-upload-button {
    background: #6b9fff;
    color: #0a1a36;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        margin: 5vh auto;
        width: 95%;
    }

    .vertical-divider {
        display: none;
    }

    .login-form-section,
    .social-section {
        padding: 20px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* GeoFeature Section Styles */
.geofeature-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.show-all-features-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.show-all-features-btn:hover {
    background: #1d4ed8;
}

.feature-count {
    color: #94a3b8;
    font-size: 0.9em;
    margin-left: 5px;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #94a3b8;
    font-style: italic;
}

.empty-message,
.error-message {
    padding: 10px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

.error-message {
    color: #ef4444;
}

.map-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 14px;
}

.profile-popup {
    position: fixed; /* Zmiana z absolute na fixed, aby popup nie przesuwał się przy przewijaniu strony */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Wyśrodkowanie */
    max-width: 600px;
    width: 80%;
    max-height: 95dvh;
    background-color: #1a365d; /* Niebieski kolor tła */
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    overflow-y: auto;
    color: white;

}

.profile-popup-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.profile-popup-header {
    padding: 20px;
    background: linear-gradient(135deg, #2c5282, #1a365d);
}

.profile-popup-content {
    display: flex;
    flex-direction: column;
}

.profile-info-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 15dvh;
    height: 15dvh;
    border-radius: 50%;
    background-color: #4299e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: bold;
}

.join-date {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #90cdf4; /* Jasnoniebieski */
}

.completion-container {
    width: 100%;
    margin-top: 5px;
}

.completion-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #90cdf4;
    margin-bottom: 4px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4299e1;
    border-radius: 3px;
}

.user-info-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-logout-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.info-box {
    background-color: rgba(26, 54, 93, 0.7);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.info-box h4 {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #90cdf4;
}

.info-box p {
    margin: 0;
    font-size: 14px;
}

.quick-actions-section {
    padding: 15px 20px;
    background-color: #1a365d;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #90cdf4;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    overflow-x: auto;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.2s;
}

.quick-action-item:hover {
    transform: translateY(-3px);
}

.action-icon {
    width: 100px;
    height: 60px;
    background-color: rgba(66, 153, 225, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.action-icon i {
    font-size: 16px;
    color: #90cdf4;
}

.quick-action-item span {
    font-size: 12px;
    color: #90cdf4;
    text-align: center;
}

.logout-section {
    width: 80%;
}

.btn-secondary {
    margin: 8px 0;
}

.logout-button {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: rgba(229, 62, 62, 0.2);
    color: #fc8181;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.logout-button:hover {
    background-color: rgba(229, 62, 62, 0.3);
}

.close-popup-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.close-popup-button:hover {
    color: #d9534f;
}

.close-profile-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.close-profile-popup-btn:hover {
    color: #333;
}

.visitors-counter {
    background: #152a47;
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 20px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.visitors-counter::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b6ef6, transparent, #3b6ef6);
    z-index: -1;
    animation: border-glow 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 9px;
}

.visitors-counter:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1a305a 0%, #243b6b 100%);
}

.visitors-counter:hover::before {
    opacity: 0.6;
}

.visitors-counter i {
    color: #60a5fa;
    font-size: 16px;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.visitors-counter:hover i {
    transform: scale(1.2);
    color: #93c5ff;
}

.visitors-counter span {
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.visitors-counter:hover span {
    color: #ffffff;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes border-glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .visitors-counter {
        padding: 6px 10px;
        min-width: 70px;
    }

    .visitors-counter i {
        font-size: 14px;
    }

    .visitors-counter span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .visitors-counter {
        margin-top: 5px;
    }
}