/* Business Plan Automation Platform - Custom Styles */

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Form animations */
.form-group {
    animation: fadeIn 0.6s ease-out;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    animation: pulse 1s infinite;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Progress steps */
.step-active {
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.step-inactive {
    background: #D1D5DB;
}

/* Business plan sections */
.section {
    animation: fadeIn 0.8s ease-out;
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateX(5px);
}

/* Loading animation */
.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert animations */
.alert-message {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print styles for PDF generation */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .business-plan-document {
        box-shadow: none !important;
        border: none !important;
    }
    
    .section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .progress-steps {
        flex-direction: column;
        space-y: 2;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #1D4ED8, #1E40AF);
}

/* Focus states for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}