/* ==========================================================================
   Al-Asmarya Islamic University - Central Library UI Overrides
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

body, html, .main-landing-page, h1, h2, h3, h4, h5, h6, p, a, span, button, input {
    font-family: 'Cairo', sans-serif !important;
}

/* 1. Header & Navigation */
.header {
    background-color: rgba(12, 40, 32, 0.96) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.25) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1050;
}

.header__logo,
.navbar-brand img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.navbar-brand span {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: #e2e8f0 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #dfb15b !important;
}

/* 2. Hero Section */
.landing {
    background: linear-gradient(180deg, rgba(10, 25, 30, 0.72) 0%, rgba(15, 32, 39, 0.85) 100%),
                url('../img/hero_library_bg.jpg') center/cover no-repeat !important;
    min-height: 600px;
    padding-top: 140px;
    padding-bottom: 90px;
}

.landing__slider {
    display: none !important; /* Hide old generic slider in favor of static grand hero */
}

.landing h1, .landing h2, .landing .hero-title {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.landing .lead, .landing p {
    color: #dfb15b !important;
    font-weight: 600 !important;
}

/* Search Box Container */
.book-search-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.btn-primary, .btn-search {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    border-color: #047857 !important;
    font-weight: 700 !important;
}

.btn-primary:hover, .btn-search:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
}

/* 3. Floating Statistics Bar */
.asmarya-stats-bar {
    max-width: 1140px;
    margin: -45px auto 40px auto;
    position: relative;
    z-index: 20;
    padding: 0 15px;
}

.asmarya-stats-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asmarya-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.asmarya-stats-number {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f2027;
    margin-bottom: 2px;
}

.asmarya-stats-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
}

/* 4. About Us Section */
.about-us {
    background-color: #f8fafc !important;
    padding: 90px 0 !important;
}

.about-us h3 {
    font-weight: 900 !important;
    color: #0f2027 !important;
    font-size: 2.1rem !important;
}

.about-us__box {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 35px 25px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    height: 100%;
}

.about-us__box:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09) !important;
    border-color: #10b981 !important;
}

/* 5. Categories Grid (MODERN ROUNDED SQUIRCLE BADGES & UNIQUE ICONS) */
.category {
    background-color: #ffffff !important;
    padding: 85px 0 !important;
    text-align: center !important;
}

.category h3 {
    font-weight: 900 !important;
    color: #0f2027 !important;
    font-size: 2.2rem !important;
    text-align: center !important;
}

.category p {
    text-align: center !important;
    color: #64748b !important;
    font-size: 1rem !important;
    margin: 10px auto 45px auto !important;
    max-width: 700px !important;
}

.category__box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 30px 15px 25px 15px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    text-align: center !important;
    position: relative !important;
    cursor: pointer !important;
}

.category__box:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09) !important;
    transform: translateY(-6px) !important;
    border-color: #059669 !important;
}

.category__box-icon-wrapper {
    width: 72px !important;
    height: 72px !important;
    border-radius: 22px !important;
    transform: none !important;
    margin: 0 auto 16px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.category__box:hover .category__box-icon-wrapper {
    transform: scale(1.08) !important;
}

.category__box-icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.category__box-icon i {
    font-size: 28px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.category__box hr {
    display: none !important; /* Hide old harsh divider */
}

.category__box-title {
    padding: 0 !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: #0f2027 !important;
    margin-top: 10px !important;
    text-align: center !important;
}

/* Distinct Category Icons & Gradient Badges */
/* 1. Islamic Sciences & Fiqh */
.category .row > div:nth-child(1) .category__box { border-color: rgba(5, 150, 105, 0.3) !important; }
.category .row > div:nth-child(1) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.28) !important;
}
.category .row > div:nth-child(1) .category__box-icon i::before {
    content: "\f687" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(1) .category__box-title::after {
    content: "أمهات المصادر الشرعية" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* 2. History, Biographies & Civilization */
.category .row > div:nth-child(2) .category__box { border-color: rgba(217, 119, 6, 0.3) !important; }
.category .row > div:nth-child(2) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28) !important;
}
.category .row > div:nth-child(2) .category__box-icon i::before {
    content: "\f19c" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(2) .category__box-title::after {
    content: "السير والتراث الإسلامي" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* 3. Arabic Language & Dictionaries */
.category .row > div:nth-child(3) .category__box { border-color: rgba(124, 58, 237, 0.3) !important; }
.category .row > div:nth-child(3) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%) !important;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.28) !important;
}
.category .row > div:nth-child(3) .category__box-icon i::before {
    content: "\f040" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(3) .category__box-title::after {
    content: "فقه اللغة والأدب والنحو" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* 4. Law & Regulations */
.category .row > div:nth-child(4) .category__box { border-color: rgba(37, 99, 235, 0.3) !important; }
.category .row > div:nth-child(4) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28) !important;
}
.category .row > div:nth-child(4) .category__box-icon i::before {
    content: "\f24e" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(4) .category__box-title::after {
    content: "شروح القوانين والأنظمة" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #eff6ff !important;
    color: #1e40af !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* 5. Economics & Banking */
.category .row > div:nth-child(5) .category__box { border-color: rgba(13, 148, 136, 0.3) !important; }
.category .row > div:nth-child(5) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.28) !important;
}
.category .row > div:nth-child(5) .category__box-icon i::before {
    content: "\f201" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(5) .category__box-title::after {
    content: "المالية والاقتصاد الإسلامي" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #f0fdfa !important;
    color: #115e59 !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* 6. Science & Technology */
.category .row > div:nth-child(6) .category__box { border-color: rgba(2, 132, 199, 0.3) !important; }
.category .row > div:nth-child(6) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%) !important;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.28) !important;
}
.category .row > div:nth-child(6) .category__box-icon i::before {
    content: "\f2db" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(6) .category__box-title::after {
    content: "الحاسوب والمعلوماتية" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #f0f9ff !important;
    color: #075985 !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* 7. Medicine & Health Sciences */
.category .row > div:nth-child(7) .category__box { border-color: rgba(225, 29, 72, 0.3) !important; }
.category .row > div:nth-child(7) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #be123c 0%, #f43f5e 100%) !important;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.28) !important;
}
.category .row > div:nth-child(7) .category__box-icon i::before {
    content: "\f0f1" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(7) .category__box-title::after {
    content: "المراجع الطبية والصيدلانية" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #fff1f2 !important;
    color: #9f1239 !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* 8. Encyclopedias & General Knowledge */
.category .row > div:nth-child(8) .category__box { border-color: rgba(79, 70, 229, 0.3) !important; }
.category .row > div:nth-child(8) .category__box-icon-wrapper {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%) !important;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.28) !important;
}
.category .row > div:nth-child(8) .category__box-icon i::before {
    content: "\f0ac" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}
.category .row > div:nth-child(8) .category__box-title::after {
    content: "دوائر المعارف والأطالس" !important;
    display: block !important;
    margin: 8px auto 0 auto !important;
    padding: 3px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background-color: #eef2ff !important;
    color: #3730a3 !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

/* English / LTR Category Badges */
html:not([dir="rtl"]) .category .row > div:nth-child(1) .category__box-title::after { content: "Primary Sharia Sources" !important; }
html:not([dir="rtl"]) .category .row > div:nth-child(2) .category__box-title::after { content: "Islamic Heritage & Annals" !important; }
html:not([dir="rtl"]) .category .row > div:nth-child(3) .category__box-title::after { content: "Linguistics & Literature" !important; }
html:not([dir="rtl"]) .category .row > div:nth-child(4) .category__box-title::after { content: "Statutes & Legal Codes" !important; }
html:not([dir="rtl"]) .category .row > div:nth-child(5) .category__box-title::after { content: "Islamic Finance & Economics" !important; }
html:not([dir="rtl"]) .category .row > div:nth-child(6) .category__box-title::after { content: "Computer & Information Science" !important; }
html:not([dir="rtl"]) .category .row > div:nth-child(7) .category__box-title::after { content: "Medical & Clinical References" !important; }
html:not([dir="rtl"]) .category .row > div:nth-child(8) .category__box-title::after { content: "Encyclopedias & Atlases" !important; }

/* 6. Popular Books Section (NO BLUE BACKGROUND & FULL WIDTH) */
.popular-book {
    background-color: #fcfbf9 !important;
    color: #0f2027 !important;
    padding: 85px 0 95px 0 !important;
    border-top: 1px solid #f1ece4;
    text-align: center !important;
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.popular-book .container-fluid,
.popular-book .popular-book__container,
.popular-book .container {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 96% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.popular-book__bg,
.popular-book__bg:before {
    display: none !important; /* Eliminate harsh blue overlay */
}

/* Main Title Centered */
.popular-book h3,
.popular-book h3.text-center,
.popular-book .popular-book__title,
.popular-book .popular-book-main-title {
    color: #0f2027 !important;
    font-weight: 900 !important;
    font-size: 2.3rem !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto 14px auto !important;
}

/* Subtitle Directly Under Main Title and Centered */
.popular-book p,
.popular-book p.text-center,
.popular-book .section-header-row-spacing,
.popular-book p.section-header-row-spacing,
.popular-book .popular-book-centered-subtitle,
.popular-book p.w-75,
.popular-book p.ml-auto.mr-auto {
    color: #475569 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-align-last: center !important;
    display: block !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto 45px auto !important;
    line-height: 1.7 !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* Full Width Book Item Carousel Wrapper with space for Navigation Arrows */
.popular-book .popular-book__book-item-slider-wrapper {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    position: relative !important;
    padding: 0 55px !important;
    margin: 0 auto !important;
}

/* Floating Navigation Arrows on Left and Right */
.popular-slider-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #047857 !important;
    border: 2px solid #047857 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 30 !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    outline: none !important;
}

.popular-slider-nav-btn:hover {
    background: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(4, 120, 87, 0.4) !important;
    transform: translateY(-50%) scale(1.12) !important;
}

.popular-slider-nav-btn i {
    font-size: 18px !important;
    line-height: 1 !important;
}

.popular-slider-btn-right {
    right: 0px !important;
}

.popular-slider-btn-left {
    left: 0px !important;
}

/* Hide native Owl Nav so only our styled floating circular buttons display cleanly */
.popular-book .owl-nav,
.popular-book .owl-nav.disabled {
    display: none !important;
}

.popular-book__item-box {
    background-color: #ffffff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    height: 380px !important;
}

.popular-book__item-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14) !important;
}

.popular-book__item-box img {
    height: 310px !important;
    object-fit: cover !important;
    border-radius: 12px 12px 0 0 !important;
}

.popular-book__item-box .book-name {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    color: #0f2027 !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    padding: 10px 8px !important;
    height: auto !important;
    border-top: 1px solid #f1f5f9;
}

/* 7. Testimonials Section (NO DARK BACKGROUND) */
.what-people-say {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #0f2027 !important;
    padding: 95px 0 !important;
    border-top: 1px solid #e2e8f0;
}

.what-people-say__bg {
    display: none !important; /* Hide old dark photo background */
}

.what-people-say__content {
    color: #0f2027 !important;
}

.what-people-say h3 {
    color: #0f2027 !important;
    font-weight: 900 !important;
    font-size: 2.1rem !important;
    margin-bottom: 25px !important;
}

.what-people-say__slider-section {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 40px 30px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid #047857 !important;
    max-width: 800px !important;
}

.what-people-say__slider-section h6 {
    color: #0f2027 !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
}

.what-people-say__slider-section p {
    color: #334155 !important;
    font-size: 1.02rem !important;
    line-height: 1.8 !important;
    font-weight: 500 !important;
}

/* 8. Footer Section - ULTRA CRISP WHITE TEXT & LUXURY STYLING */
.footer,
footer.footer,
.main-landing-page .footer,
.main-landing-page footer {
    background-color: #0c1a20 !important;
    background: #0c1a20 !important;
    color: #ffffff !important;
    border-top: 2px solid #047857 !important;
    padding: 70px 0 35px 0 !important;
}

.footer h4,
.footer h5,
.footer h6 {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    margin-bottom: 20px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.footer p,
.footer .text-description,
.footer div,
.footer span {
    color: #e2e8f0 !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
}

/* Table and Contact Details in Footer */
.footer .table,
.footer table,
.footer .addr-dt,
.footer table.addr-dt,
.footer .table td,
.footer table td,
.footer .addr-dt td,
.footer table.addr-dt td,
.footer .table th,
.footer table th,
.footer .borderless td {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    vertical-align: middle !important;
}

/* Links in Footer */
.footer a,
.footer a:link,
.footer a:visited,
.footer .table a,
.footer .addr-dt a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.footer a:hover,
.footer .table a:hover,
.footer .addr-dt a:hover {
    color: #dfb15b !important;
    text-decoration: underline !important;
}

/* Icons in Footer */
.footer .addr-dt td i,
.footer table td i,
.footer .fa-map-marker,
.footer .fa-envelope,
.footer .fa-phone,
.footer .fa-globe {
    color: #dfb15b !important;
    font-size: 1.15rem !important;
    margin-left: 8px !important;
}

/* Social media list icons */
.footer .social-list li a {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #dfb15b !important;
    border: 1px solid rgba(223, 177, 91, 0.4) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 8px !important;
    transition: all 0.3s ease !important;
}

.footer .social-list li a:hover {
    background: #047857 !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   AL-ASMARYA ISLAMIC UNIVERSITY - MODERN ACADEMIC DASHBOARD THEME (الثوب الجديد)
   ========================================================================== */

/* 1. Global Background & Fonts */
body, .body, .wrapper.bg-light {
    background-color: #f4f6f9 !important;
    font-family: 'Cairo', sans-serif !important;
}

/* 2. Top Header */
.header.header-sticky {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    height: 65px !important;
}

/* 3. Sleek Deep Islamic Emerald Sidebar */
.sidebar.sidebar-fixed {
    background: linear-gradient(180deg, #032e21 0%, #064e3b 50%, #022319 100%) !important;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Sidebar Brand / Header */
.sidebar .sidebar-brand {
    background: rgba(0, 0, 0, 0.22) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 14px !important;
    min-height: 72px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-decoration: none !important;
}

/* Hide duplicate narrow logo in expanded sidebar */
.sidebar .sidebar-brand img.sidebar-brand-narrow,
.sidebar:not(.sidebar-narrow) img.sidebar-brand-narrow,
.sidebar img.sidebar-brand-narrow {
    display: none !important;
}

/* Sidebar Menu Logo - Transparent & Frameless */
.sidebar img.header__app-logo.sidebar-brand-full,
.sidebar .sidebar-brand img.sidebar-brand-full,
.sidebar:not(.sidebar-narrow) img.sidebar-brand-full,
.sidebar img.header__app-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 58px !important;
    object-fit: contain !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Minimized / Narrow Sidebar Logo */
.sidebar.sidebar-narrow img.sidebar-brand-full {
    display: none !important;
}

.sidebar.sidebar-narrow img.sidebar-brand-narrow {
    height: 38px !important;
    max-height: 38px !important;
    width: 38px !important;
    max-width: 38px !important;
    margin: 0 auto !important;
    display: inline-block !important;
}

/* Sidebar University Title Text - ONLY Text Styling, NEVER Logo Styling */
.sidebar span.header__app-name,
.sidebar .sidebar-brand span.header__app-name,
.sidebar span.header__app-name.sidebar-brand-full {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.2px !important;
    font-family: 'Cairo', sans-serif !important;
    white-space: normal !important;
    display: inline-block !important;
    flex: 1 !important;
    text-align: right !important;
}

/* Sidebar Navigation Links */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 10px 16px !important;
    margin: 4px 12px !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(-3px) !important;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4) !important;
    border-right: 4px solid #f59e0b !important;
}

.sidebar .nav-icon, .sidebar .nav-icons {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-left: 10px !important;
    font-size: 16px !important;
}

.sidebar .nav-link.active .nav-icon, .sidebar .nav-link.active .nav-icons {
    color: #fef3c7 !important;
}

/* 4. Modern KPI Summary Stat Cards (الطفرة البصرية في بطاقات الإحصائيات) */
.dashboard__card-wrapper {
    margin-bottom: 24px !important;
}

.dashboard__card-wrapper .card {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard__card-wrapper .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 30px -8px rgba(0, 0, 0, 0.12) !important;
}

.dashboard__card-body {
    padding: 22px 20px !important;
}

.dashboard__card-count {
    font-size: 32px !important;
    font-weight: 900 !important;
    font-family: 'Cairo', sans-serif !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
}

.dashboard__card-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    opacity: 0.95 !important;
    margin-top: 10px !important;
}

.dashboard__card-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    float: left !important;
    margin-top: -38px !important;
    transition: transform 0.3s ease !important;
}

.dashboard__card-wrapper .card:hover .dashboard__card-icon {
    transform: scale(1.1) rotate(5deg) !important;
}

/* Card Gradient Color Schemes */
/* 1. كتب (Books) */
.dashboard__card-wrapper .card.bg-dark {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3) !important;
}

/* 2. أفراد (Members) */
.dashboard__card-wrapper .card.bg-success {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.3) !important;
}

/* 3. الكتب الصادرة (Issued Books) */
.dashboard__card-wrapper .card.bg-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3) !important;
}

/* 4. الكتب المحجوزة (Reserved Books) */
.dashboard__card-wrapper .card.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3) !important;
}

/* 5. الكتب المتأخرة (Overdue Books) */
.dashboard__card-wrapper .card.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.3) !important;
}

/* 5. Standard Cards & Chart Containers */
.card {
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 18px 22px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    color: #1e293b !important;
    border-radius: 16px 16px 0 0 !important;
}

/* 6. Tables across all screens */
.table, .react-dataTable {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 14px 16px !important;
    text-transform: uppercase !important;
}

.table tbody tr {
    transition: background 0.2s ease !important;
}

.table tbody tr:hover {
    background-color: #f8fafc !important;
}

.table tbody td {
    padding: 14px 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    border-top: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

/* 7. Action Buttons */
.btn-primary, .btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover, .btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

/* 8. Form Inputs */
.form-control, input[type="text"], input[type="number"], input[type="password"], input[type="email"], select {
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, input:focus, select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* ==========================================================================
   AL-ASMARYA MODALS, BADGES & INTERACTIVE CONTROLS THEME
   ========================================================================== */

/* 1. Modern University Modal Dialogs (النوافذ المنبثقة) */
.modal-content {
    border-radius: 18px !important;
    border: none !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    font-family: 'Cairo', sans-serif !important;
}

.modal-header {
    background: linear-gradient(135deg, #032e21 0%, #064e3b 60%, #059669 100%) !important;
    color: #ffffff !important;
    border-bottom: 3px solid #f59e0b !important;
    padding: 16px 24px !important;
}

.modal-header .modal-title, .modal-header h4, .modal-header h5 {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    font-family: 'Cairo', sans-serif !important;
    letter-spacing: -0.3px !important;
}

.modal-header .close, .modal-header .btn-close {
    color: #ffffff !important;
    opacity: 0.85 !important;
    font-size: 24px !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.modal-header .close:hover, .modal-header .btn-close:hover {
    color: #fef08a !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
}

.modal-body {
    padding: 24px 28px !important;
    background-color: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
}

.modal-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 16px 28px !important;
    border-radius: 0 0 18px 18px !important;
}

/* 2. Checkboxes & Radio Controls */
input[type="checkbox"], input[type="radio"], .custom-control-input {
    accent-color: #059669 !important;
    cursor: pointer !important;
    width: 17px !important;
    height: 17px !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #059669 !important;
    border-color: #047857 !important;
}

/* 3. Modern Badges & Tags */
.badge {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    letter-spacing: 0.3px !important;
}

.badge-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
}

.badge-primary, .badge-info {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
}

/* 4. Avatars */
.avatar, .user-avatar, .rounded-circle {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   AL-ASMARYA MODAL & CHECKBOX PRECISION OVERRIDES
   ========================================================================== */

/* 1. Modal Header - Al-Asmarya Emerald & Gold Header */
.modal-header,
.modal-dialog.modal-primary .modal-header,
.modal-dialog.modal-info .modal-header,
div.modal-header {
    background: linear-gradient(135deg, #032e21 0%, #064e3b 60%, #059669 100%) !important;
    background-color: #064e3b !important;
    color: #ffffff !important;
    border-bottom: 3px solid #f59e0b !important;
    padding: 16px 24px !important;
    border-radius: 16px 16px 0 0 !important;
}

.modal-header .modal-title,
.modal-header h4,
.modal-header h5 {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 18px !important;
}

.modal-header .close,
.modal-header .close span,
.modal-header button.close {
    color: #ffffff !important;
    opacity: 0.85 !important;
    font-size: 24px !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.modal-header .close:hover,
.modal-header .close:hover span {
    color: #fef08a !important;
    opacity: 1 !important;
    transform: scale(1.15) !important;
}

/* 2. Custom Permissions Checkbox - Emerald Theme */
.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator,
.control input:checked ~ .control__indicator {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    background-color: #059669 !important;
    border-color: #047857 !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4) !important;
}

.control .control__indicator {
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.control:hover input:not([disabled]) ~ .control__indicator {
    background: #e2e8f0 !important;
}

/* 3. Dashboard KPI 5-Card Balanced Grid */
@media (min-width: 1200px) {
    .dashboard__card-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .dashboard__card-wrapper > [class*="col-"] {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

/* 4. Switch Toggles Emerald Accent */
.switch-primary .switch-input:checked + .switch-slider {
    background-color: #059669 !important;
    border-color: #047857 !important;
}

/* ==========================================================================
   AL-ASMARYA 5-KPI CARD RESPONSIVE 20% DESKTOP ROW
   ========================================================================== */

@media (min-width: 992px) {
    .row > .dashboard__card-wrapper,
    div.dashboard__card-wrapper {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .dashboard__card-count {
        font-size: 28px !important;
    }
    
    .dashboard__card-title {
        font-size: 13px !important;
    }
}


/* ==========================================================================
   AL-ASMARYA PRECISION FIXES: FILTERS, KPI CENTERING, & SIDEBAR SCROLL
   ========================================================================== */



/* ==========================================================================
   AL-ASMARYA ENHANCEMENTS: SEARCH BOXES, KPI CARDS & WELCOME BANNER
   ========================================================================== */

/* 1. Widen Search Boxes (مربعات البحث) */
.search-filter-container__search-input,
.search-container__search-input,
.custom-input-search {
    width: 320px !important;
    min-width: 280px !important;
}

.search-filter-container__search-input .form-control,
.custom-input-search input {
    height: 38px !important;
    border-radius: 10px !important;
    padding-right: 14px !important;
    padding-left: 38px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.search-filter-container__search-input .form-control:focus,
.custom-input-search input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

/* 2. Beautiful Centered KPI Stat Cards (بطاقات عرض جميلة في المنتصف للنصوص) */
.dashboard__card-wrapper .card {
    border-radius: 18px !important;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
    min-height: 120px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dashboard__card-wrapper .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 30px -8px rgba(0, 0, 0, 0.16) !important;
}

.dashboard__card-wrapper .dashboard__card-body,
.dashboard__card-wrapper .card-body {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px 16px !important;
    width: 100% !important;
}

.dashboard__card-count {
    text-align: center !important;
    font-size: 38px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
    font-family: 'Cairo', sans-serif !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.dashboard__card-title {
    text-align: center !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    opacity: 0.95 !important;
    font-family: 'Cairo', sans-serif !important;
    margin: 0 !important;
}

/* Hide clashing giant watermark icon for clean centered presentation */
.dashboard__card-icon {
    display: none !important;
}

/* 3. Welcome Banner & Smart Library Systems (بانر مرحباً بك والأنظمة الذكية) */
.asmarya-welcome-banner {
    background: linear-gradient(135deg, #032e21 0%, #064e3b 50%, #047857 100%);
    border-radius: 18px;
    padding: 24px 30px;
    color: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(6, 78, 59, 0.3);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-right: 6px solid #f59e0b;
}

.asmarya-welcome-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    font-family: 'Cairo', sans-serif;
}

.asmarya-welcome-content p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    max-width: 650px;
}

.asmarya-welcome-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asmarya-btn-barcode {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.asmarya-btn-barcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    color: #ffffff !important;
}

.asmarya-btn-add-book {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.asmarya-btn-add-book:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Smart Library Features Panel */
.asmarya-smart-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.asmarya-feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.asmarya-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.asmarya-feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.asmarya-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    flex-shrink: 0;
}

.asmarya-feature-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

.asmarya-feature-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    margin-top: 2px;
}

.asmarya-feature-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

/* ============================================================
   Landing Footer Logo & Text Alignment
   - Transparent background, no white frame
   - Flush right-aligned with the text
   ============================================================ */
footer.footer .col-12.col-md-3,
footer.footer .col-md-3 {
    text-align: right !important;
}

footer.footer a:has(img),
footer.footer a img,
footer.footer img,
.footer .footer__logo {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: 72px !important;
    max-height: 72px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    margin: 0 !important;
    margin-bottom: 14px !important;
    transition: transform 0.25s ease !important;
}

footer.footer a img:hover,
footer.footer img:hover {
    transform: scale(1.04) !important;
    box-shadow: none !important;
}

footer.footer p {
    color: #e2e8f0 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    text-align: right !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    font-family: 'Cairo', sans-serif !important;
}

footer.footer .social-list {
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Image Picker in Settings - Proportioned & Centered */
.settings .settings__logo .image__holder,
.settings .settings__favicon .image__favicon-holder {
    border-radius: 12px !important;
    border: 2px dashed #059669 !important;
    background: #f8fafc !important;
    padding: 8px !important;
    transition: border-color 0.2s ease !important;
}

.settings .settings__logo .image__holder:hover,
.settings .settings__favicon .image__favicon-holder:hover {
    border-color: #047857 !important;
}

.settings .settings__logo-heading,
.settings .settings__favicon-heading {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-family: 'Cairo', sans-serif !important;
    margin-bottom: 8px !important;
}

/* ============================================================
   Admin & Member Footer - Centered Copyright & Clean Branding
   ============================================================ */
.c-footer,
.footer.bg-white,
footer.c-footer,
.c-app footer,
footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    text-align: center !important;
    padding: 14px 20px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Center copyright text completely */
.c-footer > div:first-child,
footer > div:first-child,
.c-footer .footer-copyright,
footer .footer-copyright {
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    font-family: 'Cairo', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.c-footer > div:first-child a,
footer > div:first-child a,
.footer-copyright a {
    color: #059669 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    margin: 0 4px !important;
}

.c-footer > div:first-child a:hover,
footer > div:first-child a:hover {
    color: #047857 !important;
    text-decoration: underline !important;
}

/* Completely remove / hide Powered by CoreUI */
.c-footer .ms-auto,
footer .ms-auto,
a[href*="coreui.io"],
.footer-link[href*="coreui.io"],
.c-footer a[href*="coreui"],
span:has(> a[href*="coreui.io"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}




/* ==========================================================================
   AL-ASMARYA SMART LIBRARY INNOVATIONS SUITE - MASTER STYLES
   1. AI Library Assistant Widget
   2. Self-Checkout Kiosk Mode
   3. Mobile Stocktake & Shelf Audit
   4. Accreditation KPIs & Quality Analytics
   5. WhatsApp Automated Reminders Hub
   ========================================================================== */

/* --- 1. AI Library Assistant Widget (Floating Bottom-Left) --- */
.asmarya-ai-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999999;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
}

.asmarya-ai-pulse-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
    border: 2px solid #f59e0b;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.45);
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.asmarya-ai-pulse-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.6);
}

.asmarya-ai-btn-inner i {
    font-size: 26px;
    color: #ffffff;
}

.asmarya-ai-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.asmarya-ai-pulse-wave {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.6);
    animation: asmaryaPulse 2s infinite;
    pointer-events: none;
}

@keyframes asmaryaPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.asmarya-ai-dialog {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 380px;
    max-width: 90vw;
    height: 560px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(5, 150, 105, 0.2);
    animation: asmaryaSlideUp 0.3s ease-out;
}

@keyframes asmaryaSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.asmarya-ai-header {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.asmarya-ai-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asmarya-ai-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.asmarya-ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.asmarya-ai-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.asmarya-ai-header-controls button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 4px;
    transition: background 0.2s;
}

.asmarya-ai-header-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.asmarya-ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asmarya-msg {
    display: flex;
    flex-direction: column;
    max-width: 86%;
}

.asmarya-msg-bot {
    align-self: flex-start;
}

.asmarya-msg-user {
    align-self: flex-end;
}

.asmarya-msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
}

.asmarya-msg-bot .asmarya-msg-bubble {
    background: #ffffff;
    color: #1e293b;
    border-bottom-right-radius: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.asmarya-msg-user .asmarya-msg-bubble {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

.asmarya-msg-time {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 3px;
    padding: 0 4px;
}

.asmarya-ai-chips-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.asmarya-ai-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #064e3b;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.asmarya-ai-chip:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    transform: translateY(-1px);
}

.asmarya-ai-book-card {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 10px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

.asmarya-ai-book-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.asmarya-ai-book-info {
    flex: 1;
    font-size: 12px;
}

.asmarya-ai-book-info h6 {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 700;
    color: #064e3b;
}

.asmarya-ai-call-no {
    display: block;
    color: #059669;
    font-size: 10.5px;
    font-weight: 600;
}

.asmarya-ai-input-area {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.asmarya-ai-input-area input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
}

.asmarya-ai-input-area input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.asmarya-ai-input-area button {
    background: #059669;
    border: none;
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.asmarya-ai-input-area button:hover {
    background: #047857;
}

/* Typing Indicator Animation */
.asmarya-typing-indicator .asmarya-msg-bubble span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    margin-right: 3px;
    animation: asmaryaTyping 1.2s infinite;
}

.asmarya-typing-indicator .asmarya-msg-bubble span:nth-child(2) { animation-delay: 0.2s; }
.asmarya-typing-indicator .asmarya-msg-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes asmaryaTyping {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); background: #059669; }
}


/* --- 2. Self-Checkout Kiosk Mode Overlay (#/kiosk) --- */
.asmarya-kiosk-overlay {
    position: fixed;
    inset: 0;
    background: #061a14;
    z-index: 999999;
    overflow-y: auto;
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.asmarya-kiosk-header {
    background: rgba(12, 40, 32, 0.98);
    border-bottom: 2px solid #059669;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asmarya-kiosk-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.asmarya-kiosk-title {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

.asmarya-kiosk-subtitle {
    font-size: 13px;
    color: #dfb15b;
}

.asmarya-kiosk-clock {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(223, 177, 91, 0.4);
    font-size: 16px;
    color: #dfb15b;
    font-weight: 700;
}

.asmarya-kiosk-exit-btn {
    background: #dc2626;
    border: none;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.asmarya-kiosk-exit-btn:hover {
    background: #b91c1c;
}

.asmarya-kiosk-mode-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(6, 26, 20, 0.8);
}

.kiosk-mode-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    color: #e2e8f0;
    padding: 12px 36px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
}

.kiosk-mode-tab.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.asmarya-kiosk-body {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 24px 60px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.asmarya-kiosk-card {
    background: rgba(12, 40, 32, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.kiosk-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
}

.kiosk-step-badge {
    width: 36px;
    height: 36px;
    background: #f59e0b;
    color: #061a14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
}

.kiosk-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.kiosk-scanner-animation {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 16px auto;
    border: 2px dashed rgba(16, 185, 129, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kiosk-scan-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.6);
}

.kiosk-laser-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: asmaryaLaser 1.8s infinite linear;
}

@keyframes asmaryaLaser {
    0% { top: 10%; }
    50% { top: 90%; }
    100% { top: 10%; }
}

.kiosk-table-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    color: #1e293b;
}

/* Digital Receipt Modal */
.kiosk-receipt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kiosk-receipt-card {
    background: #ffffff;
    color: #1e293b;
    border-radius: 20px;
    width: 520px;
    max-width: 95vw;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: asmaryaSlideUp 0.3s ease-out;
}

.kiosk-success-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.kiosk-digital-receipt {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 18px;
    border-radius: 12px;
    font-size: 13.5px;
}


/* --- 3, 4, 5. Admin Custom Views Wrapper --- */
.asmarya-admin-view-wrapper {
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
    padding: 10px 0 40px 0;
}

.asmarya-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.asmarya-view-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Smartphone Mockup */
.whatsapp-mockup-wrapper {
    width: 340px;
    max-width: 100%;
    background: #0b141a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #1f2c34;
}

.whatsapp-mockup-header {
    background: #1f2c34;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
}

.whatsapp-mockup-body {
    background: #0b141a url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png') repeat;
    background-size: 320px;
    min-height: 280px;
    max-height: 320px;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
}

.whatsapp-bubble {
    background: #005c4b;
    color: #e9edef;
    padding: 10px 14px;
    border-radius: 12px 0 12px 12px;
    max-width: 90%;
    align-self: flex-start;
    font-size: 12.5px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.whatsapp-time {
    display: block;
    text-align: left;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.whatsapp-mockup-footer {
    background: #1f2c34;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sidebar Custom Items */
.asmarya-custom-nav-item .nav-link {
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.asmarya-custom-nav-item .nav-link.active {
    background: rgba(5, 150, 105, 0.2) !important;
    border-right: 4px solid #059669 !important;
    color: #059669 !important;
}

/* Print Styles for Accreditation PDF */
@media print {
    body * {
        visibility: hidden;
    }
    #asmarya-quality-container, #asmarya-quality-container * {
        visibility: visible;
    }
    #asmarya-quality-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
    }
    .asmarya-ai-container,
    .c-header,
    .c-sidebar,
    .sidebar,
    .c-footer,
    button {
        display: none !important;
    }
}

/* Instant suppression of dashboard banner & smart cards when viewing dedicated smart suite tools */
body:has(#asmarya-quality-container) #asmarya-dashboard-welcome-banner,
body:has(#asmarya-quality-container) #asmarya-dashboard-smart-systems,
body:has(#asmarya-stocktake-container) #asmarya-dashboard-welcome-banner,
body:has(#asmarya-stocktake-container) #asmarya-dashboard-smart-systems,
body:has(#asmarya-whatsapp-container) #asmarya-dashboard-welcome-banner,
body:has(#asmarya-whatsapp-container) #asmarya-dashboard-smart-systems {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Strict suppression of dashboard charts (كتب حسب الأنواع & تداول الكتب) on smart tools */
body:has(#asmarya-quality-container) .chart-wrapper,
body:has(#asmarya-quality-container) canvas,
body:has(#asmarya-quality-container) .card:has(canvas),
body:has(#asmarya-quality-container) .card:has(.chart-wrapper),
body:has(#asmarya-stocktake-container) .chart-wrapper,
body:has(#asmarya-stocktake-container) canvas,
body:has(#asmarya-stocktake-container) .card:has(canvas),
body:has(#asmarya-stocktake-container) .card:has(.chart-wrapper),
body:has(#asmarya-whatsapp-container) .chart-wrapper,
body:has(#asmarya-whatsapp-container) canvas,
body:has(#asmarya-whatsapp-container) .card:has(canvas),
body:has(#asmarya-whatsapp-container) .card:has(.chart-wrapper) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   PERMANENT DELETION: Charts section (كتب حسب الأنواع & تداول الكتب)
   ========================================================================== */
.charts,
.charts__chart-section,
.charts__child-popover,
div.charts,
.chart-wrapper,
.card-columns.cols-2,
.cols-2.charts__chart-section,
.row:has(.charts),
.row:has(.charts__chart-section),
.col-12:has(.charts),
.card:has(canvas),
.card:has(.charts) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: none !important;
}

/* ==========================================================================
   ISOLATION: When viewing Smart Suite (Quality KPIs, Shelf Audit, WhatsApp)
   Completely suppress native React dashboard, welcome banner & smart cards
   ========================================================================== */
body.asmarya-smart-view-active .animated.fadeIn,
body.asmarya-smart-view-active .body.flex-grow-1 > *:not(#asmarya-smart-view-mount),
body.asmarya-smart-view-active #asmarya-dashboard-welcome-banner,
body.asmarya-smart-view-active #asmarya-dashboard-smart-systems,
body.asmarya-smart-view-active .dashboard__card-wrapper,
body.asmarya-smart-view-active .page-heading,
body:has(#asmarya-quality-container) .animated.fadeIn,
body:has(#asmarya-quality-container) #asmarya-dashboard-welcome-banner,
body:has(#asmarya-quality-container) #asmarya-dashboard-smart-systems,
body:has(#asmarya-quality-container) .dashboard__card-wrapper,
body:has(#asmarya-stocktake-container) .animated.fadeIn,
body:has(#asmarya-stocktake-container) #asmarya-dashboard-welcome-banner,
body:has(#asmarya-stocktake-container) #asmarya-dashboard-smart-systems,
body:has(#asmarya-stocktake-container) .dashboard__card-wrapper,
body:has(#asmarya-whatsapp-container) .animated.fadeIn,
body:has(#asmarya-whatsapp-container) #asmarya-dashboard-welcome-banner,
body:has(#asmarya-whatsapp-container) #asmarya-dashboard-smart-systems,
body:has(#asmarya-whatsapp-container) .dashboard__card-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   RTL CheckBox Alignment for Roles & Forms
   ========================================================================== */
[dir="rtl"] .control,
html[dir="rtl"] .control,
body[dir="rtl"] .control,
.rtl .control {
    padding-left: 0 !important;
    padding-right: 32px !important;
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .control__indicator,
html[dir="rtl"] .control__indicator,
body[dir="rtl"] .control__indicator,
.rtl .control__indicator {
    left: auto !important;
    right: 0 !important;
}

