/* Personal Color Test Styling: Trust & Elegance */

.test-header {
    text-align: center;
    margin: var(--space-xl) 0;
}

.step-indicator {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.test-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* Upload Zone */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    border: 2px dashed rgba(245, 230, 232, 0.8);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
    background: rgba(245, 230, 232, 0.15);
    border-color: var(--color-primary);
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.05));
}

.upload-content h3 {
    margin-bottom: var(--space-sm);
}

.upload-content p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: var(--space-lg);
}

/* Preview Region */
.preview-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(51, 51, 51, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.hidden {
    display: none !important;
}

/* Actions */
.test-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

.capsule-button.disabled {
    background: #E0E0E0;
    color: #999;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Rules Section */
.rules-section {
    padding: var(--space-lg);
}

.rules-section h3 {
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.rule-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.rule-icon {
    font-size: 1.5rem;
}

.rule-item h4 {
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 4px;
}

.rule-item p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.privacy-note {
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* Analyzing State Overlay */
.analyzing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 245, 240, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyzing-mask {
    text-align: center;
    max-width: 400px;
}

.shimmer-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), #E6E6E6);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .test-layout {
        grid-template-columns: 1fr;
    }

    .upload-zone {
        min-height: 400px;
    }

    .rules-section {
        margin-top: var(--space-lg);
    }
}