/* ========================================
   STEP 2 IMPROVEMENTS - Verify Identity Matrix
   ======================================== */

/* Completeness Score Circle */
.completeness-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary, #9359f8) calc(var(--completeness, 0) * 1%),
        rgba(255, 255, 255, 0.1) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.completeness-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--glass-bg, #0a0a0f);
}

.completeness-value {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary, #9359f8), var(--accent-cyan, #00d9ff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completeness-label {
    text-align: center;
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Section Progress Bars */
.section-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.section-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.section-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #9359f8), var(--accent-cyan, #00d9ff));
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(147, 89, 248, 0.5);
}

.section-progress-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 45px;
    text-align: right;
}

/* Field Validation States */
.verify-field {
    position: relative;
    transition: all 0.3s;
}

.verify-field.valid {
    border-color: var(--success-green, #10b981) !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

.verify-field.invalid {
    border-color: var(--danger-red, #ef4444) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.verify-field.warning {
    border-color: var(--warning-orange, #fbbf24) !important;
    background: rgba(251, 191, 36, 0.05) !important;
}

/* Field Icons */
.field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

.field-icon.valid {
    color: var(--success-green, #10b981);
}

.field-icon.invalid {
    color: var(--danger-red, #ef4444);
}

.field-icon.warning {
    color: var(--warning-orange, #fbbf24);
}

/* Field Badges */
.field-badge-container {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.field-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-required {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-red, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-optional {
    background: rgba(147, 89, 248, 0.2);
    color: var(--primary, #9359f8);
    border: 1px solid rgba(147, 89, 248, 0.3);
}

.badge-verified {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-green, #10b981);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-changed {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning-orange, #fbbf24);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Collapsible Sections */
.verify-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.verify-section:hover {
    border-color: rgba(147, 89, 248, 0.3);
    background: rgba(147, 89, 248, 0.05);
}

.verify-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
}

.verify-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.verify-section-icon {
    font-size: 24px;
    color: var(--primary, #9359f8);
}

.verify-section-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.verify-collapse-icon {
    transition: transform 0.3s;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
}

.verify-section.collapsed .verify-collapse-icon {
    transform: rotate(-90deg);
}

.verify-section-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s;
}

.verify-section.collapsed .verify-section-content {
    max-height: 0;
    opacity: 0;
}

/* Auto-save Indicator */
.auto-save-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.auto-save-indicator.saving {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--warning-orange, #fbbf24);
}

.auto-save-indicator.saved {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success-green, #10b981);
}

.auto-save-indicator .spinner {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Field Comparison View */
.field-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 8px;
}

.comparison-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.comparison-value {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.comparison-value.changed {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Validation Message */
.validation-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-top: 4px;
}

.validation-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-red, #ef4444);
}

.validation-message.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--warning-orange, #fbbf24);
}

.validation-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-green, #10b981);
}

/* Responsive */
@media (max-width: 768px) {
    .field-comparison {
        grid-template-columns: 1fr;
    }
    
    .completeness-circle {
        width: 100px;
        height: 100px;
    }
    
    .completeness-value {
        font-size: 1.5rem;
    }
}
