/* Upload Panel */
.upload-panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
}

/* Views Grid */
.views-container {
    display: flex;
    justify-content: center;
}

.views-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.grid-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

/* View Slot */
.view-slot {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--border-dashed);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
}

.view-slot:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.view-slot.required {
    border-color: #6c63ff55;
}

.view-slot.required .slot-label::after {
    content: ' *';
    color: #f44336;
}

.view-slot .slot-icon {
    width: auto;
    height: 50%;
    margin-bottom: 8px;
}

.center-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.view-slot.has-image {
    border-style: solid;
    border-color: var(--accent);
}

.view-slot.has-image .slot-icon,
.view-slot.has-image .slot-label {
    display: none;
}

.slot-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.slot-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.view-slot:hover .slot-actions {
    opacity: 1;
}

.slot-action-btn {
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 4px 7px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
    backdrop-filter: blur(4px);
}

.slot-action-btn:hover {
    background: rgba(108, 99, 255, 0.8);
}

.slot-action-btn.delete-btn:hover {
    background: rgba(244, 67, 54, 0.8);
}

.slot-uploading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.uploading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Center Placeholder */
.center-placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.center-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.center-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .view-slot {
        width: 110px;
        height: 110px;
    }
    .center-placeholder {
        width: 110px;
        height: 110px;
    }
}
