@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primary: #047857;
    --primary-dark: #065f46;
    --primary-light: #10b981;
    --accent: #0284c7;
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.92);
}

html, body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100vw;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Gradients */
.gradient-hero {
    background: linear-gradient(135deg, #064e3b 0%, #0f172a 60%, #0284c7 100%);
}

.gradient-card {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

.gradient-primary {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

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

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

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

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

/* Multi-Step Wizard Styling */
.step-item.active .step-circle {
    background-color: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.step-item.completed .step-circle {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.step-item.active .step-title {
    color: #065f46;
    font-weight: 700;
}

.step-line.completed {
    background-color: #10b981;
}

/* OTP Digits input boxes */
.otp-input {
    width: 3.2rem;
    height: 3.8rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    outline: none;
}

/* Status Timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: -16px;
    right: 18px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item.active::before {
    background-color: #10b981;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
    .print-only {
        display: block !important;
    }
}
