/**
 * Improved Onboarding Styles
 * Add these to your existing CSS or include as a separate file
 */

/* Smooth transitions for all interactive elements */
.starter-pack-card,
.module-card,
.freq-btn,
.selection-type-btn,
.step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step indicator active state */
.step[data-active="true"] .step-icon {
    transform: scale(1.1);
}

/* Starter pack hover effects */
.starter-pack-card:hover {
    transform: translateY(-4px);
}

.starter-pack-card[data-selected="true"] {
    transform: translateY(-4px);
}

/* Module card selection state */
.module-card.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-color: rgb(99, 102, 241);
}

.module-card.selected .add-remove-module-btn {
    background: rgb(249, 115, 22);
}

/* Frequency button active state */
.freq-btn[data-active="true"] {
    background: white;
    color: rgb(17, 24, 39);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Selection type button active state */
.selection-type-btn[data-active="true"] {
    background: white;
    color: rgb(17, 24, 39);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Registration type button states */
.registration-type.active {
    border-color: rgb(99, 102, 241);
    background-color: rgb(238, 242, 255);
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: rgb(99, 102, 241);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button disabled state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stage-content:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

/* Gradient text for headings */
.gradient-text {
    background: linear-gradient(135deg, rgb(99, 102, 241), rgb(139, 92, 246));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
.selected-module-list::-webkit-scrollbar,
.selected-modules-list::-webkit-scrollbar,
#license-content::-webkit-scrollbar {
    width: 6px;
}

.selected-module-list::-webkit-scrollbar-track,
.selected-modules-list::-webkit-scrollbar-track,
#license-content::-webkit-scrollbar-track {
    background: rgb(243, 244, 246);
    border-radius: 3px;
}

.selected-module-list::-webkit-scrollbar-thumb,
.selected-modules-list::-webkit-scrollbar-thumb,
#license-content::-webkit-scrollbar-thumb {
    background: rgb(209, 213, 219);
    border-radius: 3px;
}

.selected-module-list::-webkit-scrollbar-thumb:hover,
.selected-modules-list::-webkit-scrollbar-thumb:hover,
#license-content::-webkit-scrollbar-thumb:hover {
    background: rgb(156, 163, 175);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .starter-pack-card {
        padding: 1rem;
    }
    
    .starter-pack-card h3 {
        font-size: 1rem;
    }
    
    .pack-price {
        font-size: 1.5rem;
    }
    
    .pricing-summary-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
    }
    
    /* Make frequency buttons stack on mobile */
    .freq-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .freq-btn .hidden-mobile {
        display: none;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    .starter-pack-card {
        padding: 1.25rem;
    }
}

/* Print styles - hide interactive elements */
@media print {
    .freq-btn,
    .selection-type-btn,
    .prev-next-action-btn,
    .add-remove-user-btn,
    .add-remove-storage-btn {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .starter-pack-card,
    .module-card {
        border-width: 2px;
    }
    
    button {
        font-weight: 700;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .starter-pack-card,
    .module-card,
    .freq-btn,
    .selection-type-btn,
    .step {
        transition: none;
    }
    
    .animate-spin {
        animation: none;
    }
    
    .stage-content:not(.hidden) {
        animation: none;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode overrides here if your application supports it */
}
