/* Custom styles for Career Anchors Survey */
.rating-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.rating-btn:hover:not(.active) {
    transform: scale(1.05);
    background-color: #e5e7eb;
}

.rating-btn.active {
    background-color: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.statement-card {
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.statement-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.anchor-bar {
    height: 20px;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.step {
    x-display: none;
}

.step.active {
    display: block;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .rating-btn {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .statement-card {
        padding: 1rem;
    }
    
    .anchor-bar {
        height: 15px;
    }
}

/* Progress bar */
.progress-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Button states */
.btn-primary {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #4b5563;
}