
/* Loading Spinner */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.spinner-ring {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.spinner-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.spinner-track {
    stroke: #e2e8f0;
}

.spinner-progress {
    stroke: var(--primary);
    stroke-dasharray: 283; /* 2 * PI * 45 */
    stroke-dashoffset: 70; /* 75% filled */
    animation: spin 2s linear infinite;
    transform-origin: center;
}

.spinner-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-percent {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.spinner-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

.loading-message {
    margin-top: 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.loading-subtext {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    0% { stroke-dashoffset: 283; transform: rotate(0deg); }
    50% { stroke-dashoffset: 70; transform: rotate(180deg); }
    100% { stroke-dashoffset: 283; transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
