/* Custom styles for AI Automation Assessment Tool */

.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Assessment Step Transitions */
.assessment-step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.assessment-step.active {
    opacity: 1;
    transform: translateY(0);
}

.assessment-step.hidden {
    display: none;
}

/* Custom Form Styling */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Department Cards */
.department-card {
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.department-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.department-card.selected {
    border-color: #3B82F6;
    background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
}

/* Job Role Input Styling */
.job-role-input {
    transition: all 0.2s ease-in-out;
}

.job-role-input:focus-within {
    background-color: #F9FAFB;
    border-color: #3B82F6;
}

/* Automation Score Indicators */
.automation-score {
    position: relative;
    overflow: hidden;
}

.automation-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #EF4444, #F59E0B, #10B981);
    transition: width 0.8s ease-in-out;
    z-index: 0;
}

.automation-score .score-text {
    position: relative;
    z-index: 1;
}

/* Animation for Loading States */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-slow {
    animation: pulse-slow 2s infinite;
}

/* Progress Bar Animation */
.progress-segment {
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #1D4ED8);
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

/* Chart Container Styling */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Results Table Styling */
.results-table {
    border-collapse: separate;
    border-spacing: 0;
}

.results-table th {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-bottom: 2px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.results-table td {
    border-bottom: 1px solid #E2E8F0;
    transition: background-color 0.2s ease-in-out;
}

.results-table tr:hover td {
    background-color: #F8FAFC;
}

/* Automation Opportunity Tags */
.automation-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.automation-tag.high {
    background-color: #DCFCE7;
    color: #166534;
}

.automation-tag.medium {
    background-color: #FEF3C7;
    color: #92400E;
}

.automation-tag.low {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* ROI Calculator Styling */
.roi-metric {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.roi-metric:hover {
    border-color: #3B82F6;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.1);
}

.roi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.roi-label {
    font-size: 0.875rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Export Button Styling */
.export-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.3);
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .department-card {
        margin-bottom: 1rem;
    }
    
    .roi-metric {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .bg-gray-50 {
        background: white !important;
    }
    
    .shadow-sm {
        box-shadow: none !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Loading Animation */
.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}