/* Base Styles */
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; /* Светло-синий для выделения */
}

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

@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);
    }
}

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

.style-buttons {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    justify-content: space-between; /* Distribute evenly */
    gap: 5px; /* Reduced gap */
    margin: 8px 0;
}

.style-btn {
    padding: 5px 8px; /* Reduced padding */
    background-color: #1e3a70;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px; /* Reduced gap */
    transition: background-color 0.2s;
    font-size: 12px; /* Smaller font */
    flex: 1; /* Make each button take equal width */
}

.style-btn:hover {
    background-color: #2d4d8a;
}

.style-btn i {
    font-size: 12px; /* Smaller icons */
}

/* Style Management Modal - Dark Blue Theme */
.style-management-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.style-modal-content {
    background-color: #f6f8fa;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.style-modal-header {
    background-color: #1e293b; /* Ciemny granatowy */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.style-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.style-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.style-modal-tabs {
    display: flex;
    background-color: #1e293b; /* Ciemny granatowy */
}

.tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    flex: 1;
    font-size: 16px;
    position: relative;
    transition: all 0.2s;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: white;
    background-color: #4663ac; /* Niebieski akcent */
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4a72c4; /* Jaśniejszy niebieski */
}

.style-modal-body {
    background-color: #f6f8fa;
    padding: 0;
}

.tab-content {
    display: none;
    padding: 20px;
}

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

.drop-area {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.drop-area:hover, .drop-area.drag-over {
    border-color: #4a72c4; /* Niebieski */
    background-color: rgba(74, 114, 196, 0.05);
}

.drop-area.has-file {
    border-color: #4a72c4; /* Niebieski */
    background-color: rgba(74, 114, 196, 0.05);
}

.upload-icon {
    font-size: 36px;
    color: #4a72c4; /* Niebieski */
    margin-bottom: 15px;
}

.drop-area p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(74, 114, 196, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.selected-file-name {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.download-options {
    margin-bottom: 20px;
}

.download-options label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}

.format-selector {
    position: relative;
}

.download-format {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background-color: white;
    color: #1e293b;
    font-size: 14px;
    appearance: none;
}

.format-selector::after {
    content: '\25BC';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5568;
    font-size: 12px;
    pointer-events: none;
}

.style-action-btn {
    width: 100%;
    padding: 12px;
    background-color: #4663ac; /* Niebieski przycisk */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.style-action-btn:hover {
    background-color: #3b549d; /* Ciemniejszy niebieski */
}

.import-tab, .download-tab {
    background-color: #f6f8fa;
    min-height: 250px;
}