/* Premium Design System - Shawahed v2.0 */

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

:root {
    --primary: #0DA9A6;
    --primary-light: rgba(13, 169, 166, 0.1);
    --primary-hover: #0b9391;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --teal: #14B8A6;
    
    --bg-light: #F4F6F9;
    --surface-light: #ffffff;
    --text-main: #111818;
    --text-variant: #6b7280;
    --outline: #e5e7eb;
    --input-bg: #f9fafb;

    --font-family: 'Tajawal', sans-serif;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #101922;
        --surface-light: #141E2B;
        --text-main: #f3f4f6;
        --text-variant: #9ca3af;
        --outline: #3A3A3A;
        --input-bg: #141E2B;
    }
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }
body { font-family: 'Tajawal', sans-serif; }

/* Moyasar form RTL (payment.html) */
.mysr-form { direction: rtl; }

/* Custom Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Base Utility Animations */

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-slide-down {
    animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.animate-fade-scale {
    animation: fadeScale 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(13, 169, 166, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(13, 169, 166, 0.6)); }
}
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}

/* Animation Delays */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }
.delay-6 { animation-delay: 0.48s; }
.delay-7 { animation-delay: 0.56s; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Interactive Elements */
.stat-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.action-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.action-card:hover {
    transform: translateX(-4px);
}

.evidence-thumb {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}
.evidence-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Glassmorphism Wrappers */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.dark .glass-panel {
    background: rgba(20, 30, 43, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.dark .glass-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient Texts */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Form Elements */
.form-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 169, 166, 0.15);
    transform: scale(1.01);
}

/* SVG Progress Ring */
.progress-ring {
    position: relative;
    width: 88px;
    height: 88px;
}
.progress-ring svg {
    transform: rotate(-90deg);
}
.progress-ring circle {
    fill: transparent;
    stroke-width: 7;
}
.progress-ring .bg {
    stroke: var(--outline);
}
.progress-ring .progress {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 232; 
    transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    direction: ltr;
}

/* Bottom Sheet */
#uploadSheet {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#uploadSheet.upload-sheet-visible {
    transform: translateY(0);
}

/* Checkbox selected state */
.evidence-checkbox {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.evidence-checkbox.selected {
    background: linear-gradient(135deg, #0DA9A6, #10B981) !important;
    border-color: white !important;
    transform: scale(1.1);
}

/* Subscription Card */
.subscription-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.subscription-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(13, 169, 166, 0.15);
}

