/* ===================================
   Map Settings Page Styles
   =================================== */

.map-settings-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Settings Card */
.settings-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.settings-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.settings-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.settings-card-body {
    padding: 32px;
}

/* Setting Item */
.setting-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.setting-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.setting-info label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.setting-info label i {
    color: #667eea;
    font-size: 1.2rem;
}

.setting-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.setting-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-input-group > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-input {
    width: 150px;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.setting-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
}

/* Range Slider */
.range-display {
    width: 100%;
    padding-top: 8px;
}

.setting-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e5e7eb 0%, #667eea 50%, #764ba2 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.setting-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.setting-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    border-color: #764ba2;
}

.setting-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.setting-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    border-color: #764ba2;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.settings-actions .btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Info Card */
.settings-info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.info-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-header i {
    font-size: 1.5rem;
}

.info-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-content {
    padding: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    background: #f3f4f6;
    border-left-color: #667eea;
    transform: translateX(4px);
}

.info-item i {
    font-size: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Utility Classes */
.text-warning {
    color: #f59e0b !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* Loading State */
.settings-actions .btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.settings-actions .btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .map-settings-container {
        grid-template-columns: 1fr;
    }

    .settings-info-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .map-settings-container {
        padding: 16px;
    }

    .settings-card-body {
        padding: 20px;
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .setting-input-group > div:first-child {
        flex-direction: column;
        align-items: stretch;
    }

    .setting-input {
        width: 100%;
    }
}

/* Success/Error Messages */
.settings-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.settings-message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.settings-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

