body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: #FAF9FC;
    color: #231338;
    overflow-x: hidden;
}

/* ==================== SOFT AURORA MESH BACKGROUNDS ==================== */
.aurora-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #FAF9FC 0%, #FFFFFF 50%, #F8F6FC 100%);
}

.aurora-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
    opacity: 0.65;
    animation: floatAurora 18s ease-in-out infinite alternate;
}

.aurora-orb-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(91, 44, 131, 0.05) 70%, transparent 100%);
}

.aurora-orb-2 {
    width: 460px;
    height: 460px;
    top: 12%;
    right: -100px;
    background: radial-gradient(circle, rgba(236, 130, 50, 0.14) 0%, rgba(245, 158, 86, 0.04) 70%, transparent 100%);
    animation-delay: -5s;
}

.aurora-orb-3 {
    width: 580px;
    height: 580px;
    bottom: 8%;
    left: 15%;
    background: radial-gradient(circle, rgba(124, 70, 173, 0.13) 0%, rgba(236, 130, 50, 0.07) 60%, transparent 100%);
    animation-delay: -9s;
}

@keyframes floatAurora {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(25px, -20px) scale(1.05);
    }
    100% {
        transform: translate(-20px, 25px) scale(0.97);
    }
}

/* ==================== FROSTED GLASSMORPHISM SYSTEM ==================== */
.frosted-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px -12px rgba(91, 44, 131, 0.06), 0 4px 16px -4px rgba(236, 130, 50, 0.03), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.frosted-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 48px -12px rgba(91, 44, 131, 0.11), 0 8px 24px -6px rgba(236, 130, 50, 0.07), inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

.frosted-pill {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(91, 44, 131, 0.12);
}

/* Gradient Text & Accents */
.text-gradient-ghazara {
    background: linear-gradient(135deg, #5B2C83 0%, #8B46B8 45%, #EC8232 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-purple-gradient {
    background: linear-gradient(135deg, #5B2C83 0%, #7C46AD 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 26px -6px rgba(91, 44, 131, 0.38), inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}
.btn-purple-gradient:hover {
    background: linear-gradient(135deg, #4B226E 0%, #6B3598 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -6px rgba(91, 44, 131, 0.48), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.btn-orange-gradient {
    background: linear-gradient(135deg, #EC8232 0%, #F59E56 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 26px -6px rgba(236, 130, 50, 0.38), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-orange-gradient:hover {
    background: linear-gradient(135deg, #DC7222 0%, #EC8232 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -6px rgba(236, 130, 50, 0.48);
}

.btn-teal-gradient {
    background: linear-gradient(135deg, #0D9488 0%, #38A89D 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 26px -6px rgba(56, 168, 157, 0.35);
    transition: all 0.3s ease;
}
.btn-teal-gradient:hover {
    background: linear-gradient(135deg, #0F766E 0%, #2C8C82 100%);
    transform: translateY(-2px);
}

/* 3D Sculpture Floating Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}
@keyframes floatReverse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}
.animate-float-slow {
    animation: floatSlow 7s ease-in-out infinite;
}
.animate-float-reverse {
    animation: floatReverse 6s ease-in-out infinite;
}

/* Page Transition Animation */
.page-view {
    display: none;
    animation: fadeInPage 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.page-view.active {
    display: block;
}
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Nav Link */
.nav-btn.active {
    color: #5B2C83;
    font-weight: 700;
}
.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #EC8232, #5B2C83);
    border-radius: 999px;
}

/* Custom Radio Styling */
.timing-radio:checked + div {
    background: linear-gradient(135deg, #5B2C83 0%, #7C46AD 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(91, 44, 131, 0.32);
}

/* ==================== MULTI-PAGE & FORM LOADING ENHANCEMENTS ==================== */
.page-transition {
    animation: fadeInPage 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spinner {
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== TASKS DASHBOARD & CALENDAR ENHANCEMENTS ==================== */
.kpi-card-active {
    ring: 2px solid #5B2C83;
    border-color: #5B2C83 !important;
    background: linear-gradient(180deg, rgba(243, 236, 249, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    transform: translateY(-3px);
}

.sidebar-cat-btn.active {
    background: linear-gradient(135deg, #5B2C83 0%, #7C46AD 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px -4px rgba(91, 44, 131, 0.35);
}

.sidebar-cat-btn.active .cat-count-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.calendar-grid-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(243, 236, 249, 0.5);
    border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(91, 44, 131, 0.28);
    border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 44, 131, 0.5);
}

@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
    .frosted-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
}
