/* AppealArmor Professional UI - High Contrast & Expert Collaboration */

/* CRITICAL: Fix terrible contrast issues */
:root {
    --primary-blue: #1e40af;      /* Dark blue - readable on white */
    --secondary-blue: #3b82f6;    /* Medium blue - good contrast */
    --success-green: #059669;     /* Dark green - readable */
    --warning-orange: #d97706;    /* Dark orange - readable */
    --danger-red: #dc2626;        /* Dark red - readable */
    --text-primary: #111827;      /* Nearly black - maximum readability */
    --text-secondary: #374151;    /* Dark gray - still readable */
    --background-light: #ffffff;  /* Pure white */
    --background-gray: #f9fafb;   /* Very light gray */
    --border-gray: #d1d5db;       /* Medium gray borders */
}

/* Expert collaboration visual cues */
.expert-thinking {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 16px;
    margin: 12px 0;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.expert-insight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid var(--success-green);
    padding: 16px;
    margin: 12px 0;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.expert-strategy {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left: 4px solid var(--warning-orange);
    padding: 16px;
    margin: 12px 0;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

/* High contrast text fixes */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Button contrast fixes */
.btn-primary {
    background: var(--primary-blue) !important;
    color: white !important;
    border: 2px solid var(--primary-blue) !important;
    font-weight: 600 !important;
}

.btn-primary:hover {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

.btn-secondary {
    background: white !important;
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue) !important;
    font-weight: 600 !important;
}

.btn-secondary:hover {
    background: var(--primary-blue) !important;
    color: white !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* File upload zone hover effect */
#dropZone:hover,
#policyDropZone:hover {
    background-color: #F0F9FF;
    border-color: #4F46E5;
}

/* Progress bar animation */
#progressBar {
    transition: width 0.5s ease-in-out;
}

/* Step content transitions */
.step-content {
    transition: opacity 0.3s ease-in-out;
}

/* Payment tier selection */
.payment-tier {
    transition: all 0.2s ease;
}

.payment-tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .payment-tier {
        padding: 0.75rem;
    }
}