/* Newsletter Profit Calculator - Custom Styles
 * This file contains custom CSS that extends Tailwind's utility classes
 * Use this file for component-specific styles that can't be achieved with Tailwind alone
 */

/* Smooth transitions for interactive elements */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom button hover effects that enhance the user experience */
.btn-primary {
    background: linear-gradient(135deg, #2A52BE 0%, #1A3298 100%);
    box-shadow: 0 4px 6px -1px rgba(42, 82, 190, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(42, 82, 190, 0.4);
}

/* Loading spinner animation for the calculation process */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form input focus states that provide clear visual feedback */
.form-input:focus {
    border-color: #2A52BE;
    box-shadow: 0 0 0 3px rgba(42, 82, 190, 0.1);
    outline: none;
}

/* Card hover effects for interactive elements */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Progress bar styling for visual feedback during calculations */
.progress-bar {
    background: linear-gradient(90deg, #2A52BE 0%, #4A72DE 100%);
    height: 4px;
    border-radius: 2px;
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Custom scrollbar styling for better visual consistency */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive typography improvements */
@media (max-width: 768px) {
    .responsive-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .responsive-heading {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

/* Print styles for when users want to print their results */
@media print {
    .no-print {
        display: none;
    }
    
    .print-page-break {
        page-break-before: always;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
