/* Upload Panel Styles */
.upload-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-panel.open {
    transform: translateX(0);
}

.upload-toggle-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
    z-index: 999;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.5);
}

.upload-toggle-btn:active {
    transform: scale(0.95);
}

.upload-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 15px;
}

.upload-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upload-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.upload-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.upload-body::-webkit-scrollbar {
    width: 6px;
}

.upload-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.upload-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

/* Coordinate System Selector */
.coord-system {
    margin-bottom: 20px;
}

.coord-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 13px;
}

.coord-options {
    display: flex;
    gap: 8px;
}

.coord-option {
    flex: 1;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.coord-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.coord-option.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.coord-option-title {
    font-weight: bold;
    color: #333;
    font-size: 12px;
    margin-bottom: 4px;
}

.coord-option.active .coord-option-title {
    color: #667eea;
}

.coord-option-desc {
    font-size: 10px;
    color: #666;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    margin-bottom: 15px;
}

.upload-zone:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-zone.dragging {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-zone p {
    margin: 8px 0;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.upload-zone small {
    color: #666;
    font-size: 11px;
    line-height: 1.6;
}

/* Upload Status */
.upload-status {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.upload-status.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.upload-status.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

/* Uploaded Layers List */
.uploaded-layers {
    margin-top: 15px;
}

.uploaded-layers-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 13px;
}

.uploaded-layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}

.layer-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer-item-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.layer-item-name {
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.layer-item-actions {
    display: flex;
    gap: 4px;
}

.layer-action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.layer-action-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.layer-action-btn.delete:hover {
    background: #ffebee;
    color: #c62828;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upload-panel {
        top: 70px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 350px;
    }

    .upload-toggle-btn {
        top: 70px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .coord-options {
        flex-direction: column;
    }

    .coord-option {
        padding: 10px;
    }
}