@import "./components.css";
@import "./animations.css";

@theme {
    --font-arabic: "Tajawal", sans-serif;

    /* لوحة ألوان مهوى الأفئدة */
    --color-primary: #123D35;          /* أخضر عميق */
    --color-primary-dark: #0c2823;
    --color-primary-light: #e7eeec;

    --color-secondary: #B49355;        /* ذهبي معتّق */
    --color-secondary-dark: #8e723e;
    --color-secondary-light: #faf5eb;

    --color-ivory: #F7F4ED;            /* عاجي دافئ */
    --color-charcoal: #252B28;         /* فحمي */
    --color-sand: #E8DFD0;            
    --color-sand-light: #f4efe6;

    --color-page: #F7F4ED;             
    --color-text-main: #252B28;       
    --color-text-muted: #646c67;
    --color-border: #E8DFD0;          

    --color-success: #123D35;
    --color-success-light: #e7eeec;

    --color-info: #3d6677;
    --color-info-light: #edf6fb;
}

:root {
    --color-primary: #123D35;
    --color-primary-dark: #0c2823;
    --color-primary-light: #e7eeec;

    --color-secondary: #B49355;
    --color-secondary-dark: #8e723e;
    --color-secondary-light: #faf5eb;

    --color-ivory: #F7F4ED;
    --color-charcoal: #252B28;
    --color-sand: #E8DFD0;

    --color-page: #F7F4ED;
    --color-text-main: #252B28;
    --color-text-muted: #646c67;
    --color-border: #E8DFD0;
}

.bg-primary {
    background-color: #123D35;
}

.text-primary {
    color: #123D35;
}

.border-primary {
    border-color: #123D35;
}

.bg-primary-dark {
    background-color: #0c2823;
}

.bg-primary-light {
    background-color: #e7eeec;
}

.bg-secondary {
    background-color: #B49355;
}

.text-secondary {
    color: #B49355;
}

.border-secondary {
    border-color: #B49355;
}

.bg-secondary-light {
    background-color: #faf5eb;
}

.bg-ivory {
    background-color: #F7F4ED;
}

.text-ivory {
    color: #F7F4ED;
}

.bg-charcoal {
    background-color: #252B28;
}

.text-charcoal {
    color: #252B28;
}

.bg-sand {
    background-color: #E8DFD0;
}

.text-sand {
    color: #E8DFD0;
}

.border-sand {
    border-color: #E8DFD0;
}
.btn{
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #E8DFD0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary{
    background-color: #123D35;
    color: #fff;
    border-color: #123D35;
}
.btn-secondary{
    background-color: #B49355;
    color: #fff;
    border-color: #B49355;
}
.btn-success{
    background-color: #123D35;
    color: #fff;
    border-color: #123D35;
}
.btn-info{
    background-color: #3d6677;
    color: #fff;
    border-color: #3d6677;
}
.btn-glass{
    background-color: transparent;
    color: #B49355;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #B49355 ;
    }
.btn-sm{
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Tajawal", sans-serif;
    background: #F7F4ED;
    color: #252B28;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.nav-link{

}
.nav-link.active{
    background-color: #B49355;
    border-radius: 1rem;
    text-align: center;
    color: white;

}

/* تعطيل الانتقالات لمنع وميض العناصر عند تغيير اللغة أو الاتجاه */
.no-transitions,
.no-transitions * {
    transition: none !important;
}

/* Mobile Sidebar (Mobile Only) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: min(300px, 80vw);
    background-color: #F7F4ED;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
}

.mobile-sidebar.open {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
    --tw-translate-x: 0px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

[dir="rtl"] .mobile-sidebar {
    right: 0;
    left: auto;
    transform: translateX(100%);
    border-left: 1px solid #E8DFD0;
}
[dir="rtl"] .mobile-sidebar.open {
    transform: translateX(0) !important;
    --tw-translate-x: 0px !important;
}

[dir="ltr"] .mobile-sidebar {
    left: 0;
    right: auto;
    transform: translateX(-100%);
    border-right: 1px solid #E8DFD0;
}
[dir="ltr"] .mobile-sidebar.open {
    transform: translateX(0) !important;
    --tw-translate-x: 0px !important;
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(37, 43, 40, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.mobile-backdrop.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

/* إخفاء السايد بار تماماً على الشاشات الكبيرة */
@media (min-width: 1024px) {
    .mobile-sidebar,
    .mobile-backdrop {
        display: none !important;
    }
}

/* ==========================================================================
   قسم الأسئلة الشائعة (FAQ Accordion Component)
   ========================================================================== */
.faq-item {
    border: 1px solid #E8DFD0;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #B49355;
    box-shadow: 0 10px 25px -5px rgba(18, 61, 53, 0.08);
}

.faq-item.active {
    border-color: #B49355;
    background-color: #ffffff;
    box-shadow: 0 12px 30px -5px rgba(180, 147, 85, 0.18);
}

button.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    user-select: none;
    text-align: inherit;
    font-family: inherit;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-question h4 {
    margin: 0;
    transition: color 0.2s ease;
}

.faq-question:hover h4 {
    color: #123D35;
}

.faq-item.active .faq-question h4 {
    color: #123D35;
}

.faq-icon-wrapper {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: #F7F4ED;
    color: #B49355;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, color 0.25s ease;
}

.faq-item:hover .faq-icon-wrapper {
    background-color: #faf5eb;
    color: #8E723E;
}

.faq-item.active .faq-icon-wrapper {
    transform: rotate(180deg);
    background-color: #123D35;
    color: #ffffff;
}

.faq-item.active .faq-icon-wrapper i,
.faq-item.active .faq-icon-wrapper svg {
    color: #ffffff;
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-inner {
    overflow: hidden;
    min-height: 0;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(232, 223, 208, 0.6);
    margin-top: 0.25rem;
    padding-top: 1rem;
    color: #646c67;
    font-size: 0.95rem;
    line-height: 1.8;
}



.custom-form-input {
    width: 100%;
    background-color: #FAF8F5;
    border: 1.5px solid #E2D7C5;
    border-radius: 1rem;
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    font-size: 0.9rem;
    color: #252B28;
    transition: all 0.2s ease;
    outline: none;
}

.custom-form-input:focus {
    background-color: #FFFFFF;
    border-color: #B49355;
    box-shadow: 0 0 0 3px rgba(180, 147, 85, 0.18);
}

.custom-form-input:hover:not(:focus) {
    border-color: #B49355;
    background-color: #FAF5EB;
}

.upload-dropzone {
    border: 1.5px dashed #D3C4AF;
    border-radius: 1rem;
    background-color: #FFFFFF;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-dropzone:hover {
    border-color: #B49355;
    background-color: #FAF6EE;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(180, 147, 85, 0.12);
}

.upload-dropzone.has-file {
    border-color: #123D35;
    border-style: solid;
    background-color: #F7FAF9;
}

.z-100, #mainHeader {
    z-index: 100 !important;
}