
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f5f5f5;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: row;
}


:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --disabled-color: #9ca3af;
    --border-color: #e0e0e0;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: 0.2s;
    --white: #ffffff;
    --secondary-color: #f3f4f6;
}



.control-panel {
    width: 350px;
    background: white;
    padding: 20px;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex-shrink: 0;
}


.project-info-section {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}


.current-project-info {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
}


.current-project-info p {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
}


.current-project-info .project-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}


.current-project-info .city-name {
    font-size: 16px;
    color: var(--text-secondary);
}

.current-project-info .project-note {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 5px;
    padding: 5px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 3px solid #2196f3;
}


#changeProjectBtn {
    width: 100%;
    margin-top: 10px;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}


#changeProjectBtn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}


#updateCacheBtn {
    width: 100%;
    margin-top: 10px;
    background: var(--info-color, #17a2b8);
    color: var(--white);
    border: 1px solid var(--info-color, #17a2b8);
    transition: var(--transition);
}


#updateCacheBtn:hover {
    background: var(--info-hover, #138496);
    border-color: var(--info-hover, #138496);
}



.map-container {
    flex: 1;
    width: 100%;
    background: #f0f0f0;
    position: relative;
}



.search-section h3,
.route-section h3 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}



.search-section {
    margin-bottom: 20px;
}



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


.search-input input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}


.search-input button {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color var(--transition);
    white-space: nowrap;
}


.search-input button:hover:not(:disabled) {
    background: var(--primary-hover);
}


.search-input button:disabled {
    background: var(--disabled-color);
    cursor: not-allowed;
}



.search-results {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 200px; 
    overflow-y: auto;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.search-result {
    padding: 10px 12px; 
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}


.search-result:hover {
    background: #f8f9fa;
}


.search-result:active {
    background: #e9ecef;
}


.search-result:last-child {
    border-bottom: none;
}



.route-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}



.route-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px; 
    width: 100%;
}


.route-inputs input {
    padding: 10px 12px; 
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    width: 100%;
}


.route-inputs input:focus {
    outline: none;
    border-color: #3b82f6;
}



#buildRouteBtn {
    background: #fc3f1d;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#buildRouteBtn:hover {
    background: #e6351a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 63, 29, 0.3);
}

#buildRouteBtn:active {
    background: #d12f17;
    transform: translateY(0);
}



.route-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}


.route-buttons button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}



.route-buttons #buildRouteBtn {
    margin-bottom: 0;
}



.clear-btn {
    background: #6b7280;
    color: white;
}


.clear-btn:hover {
    background: #4b5563;
}


.clear-btn:active {
    background: #374151;
}


.yandex-icon {
    font-size: 16px;
}



.route-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px; 
    margin-top: 10px;
}



.route-header h4 {
    margin: 0 0 12px 0; 
    color: #1f2937;
    font-size: 15px; 
    font-weight: 600;
    text-align: center;
}



.route-main-info {
    margin-bottom: 12px; 
    padding-bottom: 12px; 
    border-bottom: 2px solid #e5e7eb;
}


.route-stat.primary {
    background: #eff6ff;
    border-radius: 6px;
    padding: 10px; 
    margin-bottom: 6px; 
    border: 1px solid #dbeafe;
}


.route-stat.primary:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid #dbeafe;
}



.route-alternatives {
    margin-bottom: 0;
    padding-bottom: 12px; 
    border-bottom: none;
}



.route-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; 
    border-bottom: 1px solid #f3f4f6;
}


.route-stat:last-child {
    border-bottom: none;
    padding-bottom: 8px; 
}


.stat-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}


.stat-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}



.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 25px 35px;
    border-radius: 16px;
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 280px;
    max-width: 400px;
    text-align: center;
}


.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}


.loading-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}


.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}




@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.loading-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}



.store-info-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: white;
    border-left: 1px solid var(--border-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}


.store-info-panel.show {
    transform: translateX(0);
}


.store-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
}


.store-info-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}


.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}


.close-btn:hover {
    background: #e9ecef;
    color: var(--text-color);
}


.store-info-content {
    padding: 20px;
}


.store-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}


.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    word-wrap: break-word;
    line-height: 1.4;
}



@media (max-width: 768px) {
    .store-info-panel {
        width: 100%;
        height: 60vh;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    
    .store-info-panel.show {
        transform: translateY(0);
    }

}



@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }
    
    .control-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        max-height: 300px;
    }
    
    .search-input {
        flex-direction: column;
    }
}



.search-results::-webkit-scrollbar {
    width: 6px;
}


.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}


.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}


.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}



.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}


.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}


@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}


.modal-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}


.modal-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}


.modal-body {
    padding: 30px;
}


.selection-section {
    margin-bottom: 40px;
    position: relative;
}


.selection-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}



.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}


.project-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}


.project-card.selected {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
}


.project-card.selected .project-description {
    color: rgba(255, 255, 255, 0.8);
}


.project-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}


.project-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}


.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}



.city-search {
    margin-bottom: 25px;
    margin-top: 10px;
}


.city-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}


.city-search input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}



.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    position: relative;
}


.city-item {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}


.city-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}


.city-item.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}


.no-cities {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #dee2e6;
}



.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    gap: 15px;
}

.project-mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 200px;
}

.btn-switch {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-switch:active {
    transform: translateY(0);
}

.switch-text {
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}


.btn-switch.single-project {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-switch.single-project:hover {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.btn-switch.single-project .switch-text {
    transform: translateX(-20px);
    opacity: 0;
}

.btn-switch::before {
    content: "Один проект";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(20px);
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.btn-switch.single-project::before {
    transform: translate(-50%, -50%) translateX(0);
    opacity: 1;
}

/* Анимация иконки для "Один проект" */


.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.btn-primary {
    background: #007bff;
    color: white;
}


.btn-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}


.btn-secondary {
    background: #6c757d;
    color: white;
}


.btn-secondary:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-2px);
}



@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-mode-switch {
        max-width: none;
        width: 100%;
    }
    
    .btn-switch {
        width: 100%;
        min-width: auto;
    }
    
    .btn {
        width: 100%;
    }
}



.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    max-width: 400px;
    word-wrap: break-word;
    border-left: 4px solid #3498db;
    animation: slideInRight 0.3s ease-out;
    transition: top 0.3s ease-out;
}


.notification.success {
    border-left-color: #27ae60;
    background: #d4edda;
    color: #155724;
}


.notification.error {
    border-left-color: #e74c3c;
    background: #f8d7da;
    color: #721c24;
}


.notification.info {
    border-left-color: #3498db;
    background: #d1ecf1;
    color: #0c5460;
}


.notification.warning {
    border-left-color: #f39c12;
    background: #fff3cd;
    color: #856404;
}


@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}


@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }

}



.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 15px;
    backdrop-filter: blur(2px);
}


.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}




.store-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.store-tk {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.4;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.store-address {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.4;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


.store-route-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.route-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 70px;
    text-align: center;
}

.route-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.start-btn {
    color: #2c3e50;
}

.end-btn {
    color: #2c3e50;
}


.search-marker-info {
    padding: 12px;
    min-width: 200px;
}

.search-marker-address {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.search-marker-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.search-route-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.search-route-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.search-route-btn.start-btn {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.search-route-btn.start-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.search-route-btn.end-btn {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.search-route-btn.end-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}


.store-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.detail-item:hover::before {
    width: 6px;
}

.vacancy-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 4px;
}

.vacancy-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vacancy-detail {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.vacancy-detail strong {
    color: var(--primary-color);
    font-weight: 700;
}


.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-modal-overlay.show {
    opacity: 1;
}

.error-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: errorModalSlideIn 0.3s ease-out;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.error-modal-overlay.show .error-modal-content {
    transform: scale(1);
}

@keyframes errorModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 20px 20px 0 0;
}

.error-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.error-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.error-modal-body {
    padding: 30px;
}

.error-modal-body p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.error-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
}

.error-item {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.error-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.error-item:first-child {
    border-radius: 12px 12px 0 0;
}

.error-item:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}


.error-project {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #bbdefb;
}

.error-address {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.error-fields {
    font-size: 14px;
    color: #666;
    background: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}



.error-list::-webkit-scrollbar {
    width: 8px;
}

.error-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.error-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.error-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}