/* ============================================
   ALFANAR VERIFICATION PORTAL - Modern Theme
   Brand Colors:
   Primary Blue:    #1957D2
   Dark Blue:       #143D93
   Accent Cyan:     #43b6e1
   Accent Orange:   #FFA70C
   Light BG:        #F4F7FC
   ============================================ */

/* ---------- ROOT VARIABLES ---------- */
:root {
    --alfanar-primary: #1957D2;
    --alfanar-dark: #143D93;
    --alfanar-accent: #43b6e1;
    --alfanar-orange: #FFA70C;
    --alfanar-light-bg: #F4F7FC;
    --alfanar-white: #ffffff;
    --alfanar-text: #2D3748;
    --alfanar-text-light: #718096;
    --alfanar-border: #E2E8F0;
    --alfanar-success: #38A169;
    --alfanar-danger: #E53E3E;
    --alfanar-warning: #D69E2E;
    --alfanar-info: #3182CE;
    --alfanar-gradient: linear-gradient(135deg, var(--alfanar-primary) 0%, var(--alfanar-dark) 100%);
    --alfanar-shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --alfanar-shadow: 0 4px 24px rgba(25, 87, 210, 0.10);
    --alfanar-shadow-lg: 0 8px 40px rgba(25, 87, 210, 0.15);
    --alfanar-radius: 12px;
    --alfanar-radius-sm: 8px;
    --alfanar-radius-lg: 20px;
    --alfanar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --alfanar-font-xs: 0.75rem;
    --alfanar-font-sm: 0.8125rem;
    --alfanar-font-base: 0.875rem;
    --alfanar-font-md: 0.9375rem;
    --alfanar-font-lg: 1.125rem;
}

/* ---------- GLOBAL RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--alfanar-text);
    background-color: var(--alfanar-light-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body {
    font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
}

a {
    color: var(--alfanar-primary);
    text-decoration: none;
    transition: var(--alfanar-transition);
}

a:hover,
a:focus {
    color: var(--alfanar-dark);
    text-decoration: none;
    outline: none;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--alfanar-light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--alfanar-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--alfanar-primary);
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--alfanar-white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#status {
    width: 48px;
    height: 48px;
    border: 4px solid var(--alfanar-border);
    border-top-color: var(--alfanar-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- TOP BAR ---------- */
.alfanar-topbar {
    background: var(--alfanar-gradient);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 8px 0;
}

.alfanar-topbar a {
    color: rgba(255,255,255,0.85);
    transition: var(--alfanar-transition);
}

.alfanar-topbar a:hover {
    color: var(--alfanar-orange);
}

.alfanar-topbar .contact-info i {
    margin-right: 6px;
    color: var(--alfanar-orange);
}

html[lang="ar"] .alfanar-topbar .contact-info i {
    margin-right: 0;
    margin-left: 6px;
}

.alfanar-topbar .top-links a {
    padding: 4px 14px;
    border-left: 1px solid rgba(255,255,255,0.15);
    font-weight: 500;
}

html[lang="ar"] .alfanar-topbar .top-links a {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.alfanar-topbar .top-links a:first-child {
    border: none;
}

.alfanar-topbar .top-links a:hover {
    color: var(--alfanar-orange);
}

/* ---------- MAIN NAVBAR ---------- */
.alfanar-navbar {
    background: var(--alfanar-white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.alfanar-navbar .navbar-brand img {
    height: 46px;
    transition: var(--alfanar-transition);
}

.alfanar-navbar .navbar-brand img:hover {
    transform: scale(1.03);
}

.alfanar-navbar .nav-link {
    color: var(--alfanar-text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 18px 14px !important;
    position: relative;
    transition: var(--alfanar-transition);
}

.alfanar-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--alfanar-primary);
    border-radius: 3px 3px 0 0;
    transition: var(--alfanar-transition);
    transform: translateX(-50%);
}

.alfanar-navbar .nav-link:hover::after,
.alfanar-navbar .nav-link.active::after {
    width: 60%;
}

.alfanar-navbar .nav-link:hover {
    color: var(--alfanar-primary) !important;
}

.alfanar-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--alfanar-shadow);
    border-radius: var(--alfanar-radius-sm);
    padding: 8px 0;
    min-width: 240px;
    animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alfanar-navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--alfanar-text);
    transition: var(--alfanar-transition);
}

.alfanar-navbar .dropdown-item:hover {
    background: var(--alfanar-light-bg);
    color: var(--alfanar-primary);
    padding-left: 24px;
}

html[lang="ar"] .alfanar-navbar .dropdown-item:hover {
    padding-left: 20px;
    padding-right: 24px;
}

.alfanar-navbar .lang-switch {
    background: var(--alfanar-light-bg);
    color: var(--alfanar-primary);
    border: 1px solid var(--alfanar-border);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--alfanar-transition);
}

.alfanar-navbar .lang-switch:hover {
    background: var(--alfanar-primary);
    color: var(--alfanar-white);
    border-color: var(--alfanar-primary);
}

/* ---------- HERO SECTION ---------- */
.alfanar-hero {
    background: var(--alfanar-gradient);
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    color: var(--alfanar-white);
}

.alfanar-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.alfanar-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--alfanar-light-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.alfanar-hero .hero-content {
    position: relative;
    z-index: 2;
}

.alfanar-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.alfanar-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 520px;
    line-height: 1.7;
}

.alfanar-hero .hero-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.alfanar-hero .hero-icon i {
    font-size: 1.8rem;
    color: var(--alfanar-orange);
}

/* ---------- VERIFICATION CARD ---------- */
.verify-section {
    padding: 60px 0 80px;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.verify-card {
    background: var(--alfanar-white);
    border-radius: var(--alfanar-radius-lg);
    box-shadow: var(--alfanar-shadow-lg);
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
}

.verify-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--alfanar-gradient);
}

.verify-card .card-header-area {
    text-align: center;
    margin-bottom: 36px;
}

.verify-card .card-header-area .verify-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(25, 87, 210, 0.08), rgba(67, 182, 225, 0.08));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.verify-card .card-header-area .verify-icon i {
    font-size: 1.6rem;
    color: var(--alfanar-primary);
}

.verify-card .card-header-area h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--alfanar-text);
    margin-bottom: 8px;
}

.verify-card .card-header-area p {
    color: var(--alfanar-text-light);
    font-size: 0.95rem;
}

/* ---------- FORM CONTROLS ---------- */
.alfanar-input-group {
    position: relative;
    margin-bottom: 20px;
}

.alfanar-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--alfanar-text);
    margin-bottom: 6px;
}

.alfanar-input-group .form-control {
    border: 2px solid var(--alfanar-border);
    border-radius: var(--alfanar-radius-sm);
    padding: 12px 16px 12px 44px;
    font-size: 0.95rem;
    height: auto;
    transition: var(--alfanar-transition);
    background: var(--alfanar-white);
    color: var(--alfanar-text);
}

html[lang="ar"] .alfanar-input-group .form-control {
    padding: 12px 44px 12px 16px;
}

.alfanar-input-group .form-control:focus {
    border-color: var(--alfanar-primary);
    box-shadow: 0 0 0 4px rgba(25, 87, 210, 0.1);
    outline: none;
}

.alfanar-input-group .input-icon {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: var(--alfanar-text-light);
    font-size: 1rem;
    pointer-events: none;
}

html[lang="ar"] .alfanar-input-group .input-icon {
    left: auto;
    right: 14px;
}

/* ---------- BUTTONS ---------- */
.btn-alfanar {
    background: var(--alfanar-gradient);
    color: var(--alfanar-white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--alfanar-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--alfanar-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-alfanar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: var(--alfanar-transition);
}

.btn-alfanar:hover::before {
    opacity: 1;
}

.btn-alfanar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 87, 210, 0.3);
    color: var(--alfanar-white);
}

.btn-alfanar:disabled {
    background: var(--alfanar-border);
    color: var(--alfanar-text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-alfanar:disabled::before {
    display: none;
}

.btn-alfanar-outline {
    background: transparent;
    color: var(--alfanar-primary);
    border: 2px solid var(--alfanar-primary);
    padding: 12px 28px;
    border-radius: var(--alfanar-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--alfanar-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-alfanar-outline:hover {
    background: var(--alfanar-primary);
    color: var(--alfanar-white);
    transform: translateY(-1px);
}

/* ---------- ALERT ---------- */
.alfanar-alert {
    border: none;
    border-radius: var(--alfanar-radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.alfanar-alert-warning {
    background: #FFF3CD;
    color: #856404;
    border-left: 4px solid var(--alfanar-orange);
}

html[lang="ar"] .alfanar-alert-warning {
    border-left: none;
    border-right: 4px solid var(--alfanar-orange);
}

.alfanar-alert-warning i {
    color: var(--alfanar-orange);
    font-size: 1.2rem;
}

.alfanar-alert .btn-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0;
}

html[lang="ar"] .alfanar-alert .btn-close {
    margin-left: 0;
    margin-right: auto;
}

.alfanar-alert .btn-close:hover {
    opacity: 1;
}

/* ---------- INFO PANEL ---------- */
.info-panel {
    padding: 32px;
}

.info-panel h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--alfanar-primary);
    margin-bottom: 12px;
}

.info-panel p {
    color: var(--alfanar-text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.info-panel .social-links {
    display: flex;
    gap: 12px;
}

.info-panel .social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alfanar-light-bg);
    color: var(--alfanar-primary);
    font-size: 1.1rem;
    transition: var(--alfanar-transition);
}

.info-panel .social-links a:hover {
    background: var(--alfanar-primary);
    color: var(--alfanar-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(25, 87, 210, 0.25);
}

/* ---------- FEATURES SECTION ---------- */
.features-strip {
    padding: 40px 0 0;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
}

.feature-item .feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(25, 87, 210, 0.08), rgba(67, 182, 225, 0.08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-item .feature-icon-box i {
    font-size: 1.4rem;
    color: var(--alfanar-primary);
}

.feature-item h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--alfanar-text);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.82rem;
    color: var(--alfanar-text-light);
    margin: 0;
}

/* ---------- PDF VIEWER SECTION ---------- */
.pdf-viewer-section {
    padding: 40px 0 80px;
}

.pdf-viewer-card {
    background: var(--alfanar-white);
    border-radius: var(--alfanar-radius-lg);
    box-shadow: var(--alfanar-shadow);
    overflow: hidden;
}

.pdf-viewer-card .pdf-header {
    background: var(--alfanar-gradient);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-viewer-card .pdf-header h4 {
    color: var(--alfanar-white);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pdf-viewer-card .pdf-body {
    padding: 0;
}

.btn-back {
    background: rgba(255,255,255,0.15);
    color: var(--alfanar-white);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 20px;
    border-radius: var(--alfanar-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--alfanar-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back:hover {
    background: rgba(255,255,255,0.25);
    color: var(--alfanar-white);
}

/* ---------- RECAPTCHA ---------- */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* ---------- FOOTER ---------- */
.alfanar-footer {
    background: #0F1724;
    color: rgba(255,255,255,0.65);
    padding: 60px 0 0;
}

.alfanar-footer h5 {
    color: var(--alfanar-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.alfanar-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--alfanar-orange);
    border-radius: 2px;
}

html[lang="ar"] .alfanar-footer h5::after {
    left: auto;
    right: 0;
}

.alfanar-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alfanar-footer ul li {
    margin-bottom: 10px;
}

.alfanar-footer ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    transition: var(--alfanar-transition);
}

.alfanar-footer ul li a:hover {
    color: var(--alfanar-orange);
    padding-left: 4px;
}

html[lang="ar"] .alfanar-footer ul li a:hover {
    padding-left: 0;
    padding-right: 4px;
}

.alfanar-footer .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.alfanar-footer .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    transition: var(--alfanar-transition);
}

.alfanar-footer .social-icons a:hover {
    background: var(--alfanar-primary);
    color: var(--alfanar-white);
    transform: translateY(-3px);
}

.alfanar-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.alfanar-footer-bottom span {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--alfanar-accent);
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--alfanar-gradient);
    color: var(--alfanar-white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    transition: var(--alfanar-transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(25, 87, 210, 0.3);
}

html[lang="ar"] .scroll-to-top {
    right: auto;
    left: 30px;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(25, 87, 210, 0.4);
    color: var(--alfanar-white);
}

.scroll-to-top.show {
    display: flex;
}

/* ---------- DIVIDER ---------- */
.section-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--alfanar-border);
}

.section-divider span {
    background: var(--alfanar-light-bg);
    padding: 0 16px;
    position: relative;
    color: var(--alfanar-text-light);
    font-size: 0.85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .alfanar-hero {
        padding: 48px 0 64px;
    }

    .alfanar-hero h1 {
        font-size: 1.75rem;
    }

    .alfanar-hero p {
        font-size: 0.95rem;
    }

    .verify-card {
        padding: 28px 20px;
    }

    .verify-card .row.g-0 > .col-lg-5 {
        border-radius: var(--alfanar-radius-lg) var(--alfanar-radius-lg) 0 0 !important;
    }

    .info-panel {
        padding: 24px 20px;
        text-align: center;
    }

    .info-panel .social-links {
        justify-content: center;
    }

    .alfanar-navbar .nav-link {
        padding: 10px 14px !important;
    }

    .alfanar-navbar .nav-link::after {
        display: none;
    }

    .features-strip .row {
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    .alfanar-topbar .contact-info {
        display: none !important;
    }

    .alfanar-topbar .col-md-6.text-end,
    .alfanar-topbar .col-md-6.text-start {
        text-align: center !important;
    }

    .alfanar-hero {
        padding: 36px 0 52px;
    }

    .alfanar-hero h1 {
        font-size: 1.4rem;
    }

    .alfanar-hero p {
        font-size: 0.9rem;
    }

    .alfanar-hero .hero-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }

    .alfanar-hero .hero-icon i {
        font-size: 1.4rem;
    }

    .verify-section {
        padding: 40px 0 60px;
        margin-top: -28px;
    }

    .verify-card {
        padding: 20px 14px;
        border-radius: var(--alfanar-radius);
    }

    .verify-card .card-header-area h3 {
        font-size: 1.25rem;
    }

    .verify-card .card-header-area .verify-icon {
        width: 52px;
        height: 52px;
    }

    .feature-item {
        padding: 12px 8px;
    }

    .feature-item .feature-icon-box {
        width: 44px;
        height: 44px;
    }

    .feature-item h5 {
        font-size: 0.88rem;
    }

    .feature-item p {
        font-size: 0.78rem;
    }

    .alfanar-footer {
        padding: 40px 0 0;
    }

    .alfanar-footer h5 {
        font-size: 0.9rem;
    }

    .pdf-viewer-card .pdf-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .alfanar-topbar {
        font-size: 0.78rem;
        padding: 6px 0;
    }

    .alfanar-topbar .top-links a {
        padding: 2px 8px;
        font-size: 0.78rem;
    }

    .alfanar-navbar .navbar-brand img {
        height: 34px;
    }

    .verify-card {
        margin: 0 4px;
    }

    .verify-card .col-lg-7 > div {
        padding: 24px 16px !important;
    }

    .alfanar-input-group .form-control {
        padding: 10px 14px 10px 38px;
        font-size: 0.88rem;
    }

    html[lang="ar"] .alfanar-input-group .form-control {
        padding: 10px 38px 10px 14px;
    }

    .btn-alfanar {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .recaptcha-wrapper {
        transform: scale(0.9);
        transform-origin: center;
    }

    .scroll-to-top {
        width: 38px;
        height: 38px;
        bottom: 20px;
        right: 16px;
        font-size: 0.9rem;
    }

    html[lang="ar"] .scroll-to-top {
        right: auto;
        left: 16px;
    }
}

/* ---------- UTILITY ---------- */
.text-alfanar {
    color: var(--alfanar-primary);
}

.bg-alfanar {
    background: var(--alfanar-gradient);
}

.text-alfanar-accent {
    color: var(--alfanar-accent);
}

.text-alfanar-orange {
    color: var(--alfanar-orange);
}

/* ---------- ANIMATIONS ---------- */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---------- DATA TABLE ---------- */
.alfanar-table-wrapper {
    background: var(--alfanar-white);
    border-radius: var(--alfanar-radius-lg);
    box-shadow: var(--alfanar-shadow);
    overflow: hidden;
}

.alfanar-table-header {
    background: var(--alfanar-gradient);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.alfanar-table-header h4 {
    color: var(--alfanar-white);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.alfanar-table-header .table-search {
    position: relative;
}

.alfanar-table-header .table-search input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    padding: 8px 16px 8px 38px;
    color: var(--alfanar-white);
    font-size: 0.88rem;
    min-width: 240px;
    transition: var(--alfanar-transition);
}

.alfanar-table-header .table-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.alfanar-table-header .table-search input:focus {
    background: rgba(255,255,255,0.25);
    outline: none;
    border-color: rgba(255,255,255,0.4);
}

.alfanar-table-header .table-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

html[lang="ar"] .alfanar-table-header .table-search i {
    left: auto;
    right: 14px;
}

html[lang="ar"] .alfanar-table-header .table-search input {
    padding: 8px 38px 8px 16px;
}

.alfanar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.alfanar-table thead th {
    background: var(--alfanar-light-bg);
    color: var(--alfanar-text);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border-bottom: 2px solid var(--alfanar-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.alfanar-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--alfanar-transition);
}

.alfanar-table thead th.sortable:hover {
    color: var(--alfanar-primary);
    background: #EBF0FA;
}

.alfanar-table thead th .sort-icon {
    margin-left: 6px;
    opacity: 0.4;
    font-size: 0.75rem;
}

html[lang="ar"] .alfanar-table thead th .sort-icon {
    margin-left: 0;
    margin-right: 6px;
}

.alfanar-table thead th.sorted .sort-icon {
    opacity: 1;
    color: var(--alfanar-primary);
}

.alfanar-table tbody tr {
    transition: var(--alfanar-transition);
}

.alfanar-table tbody tr:hover {
    background: rgba(25, 87, 210, 0.03);
}

.alfanar-table tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--alfanar-text);
    border-bottom: 1px solid var(--alfanar-border);
    vertical-align: middle;
}

.alfanar-table tbody tr:last-child td {
    border-bottom: none;
}

.alfanar-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.alfanar-table .status-badge.active {
    background: rgba(56, 161, 105, 0.1);
    color: var(--alfanar-success);
}

.alfanar-table .status-badge.inactive {
    background: rgba(229, 62, 62, 0.1);
    color: var(--alfanar-danger);
}

.alfanar-table .status-badge.pending {
    background: rgba(255, 167, 12, 0.1);
    color: var(--alfanar-orange);
}

.alfanar-table .action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: var(--alfanar-light-bg);
    color: var(--alfanar-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--alfanar-transition);
    margin: 0 2px;
}

.alfanar-table .action-btn:hover {
    background: var(--alfanar-primary);
    color: var(--alfanar-white);
    transform: scale(1.05);
}

.alfanar-table .action-btn.danger:hover {
    background: var(--alfanar-danger);
}

/* ---------- PAGINATION ---------- */
.alfanar-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--alfanar-border);
    flex-wrap: wrap;
    gap: 12px;
}

.alfanar-pagination-info {
    font-size: 0.85rem;
    color: var(--alfanar-text-light);
}

.alfanar-pagination-info strong {
    color: var(--alfanar-text);
    font-weight: 600;
}

.alfanar-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.alfanar-pagination .page-item .page-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--alfanar-radius-sm);
    border: 1px solid var(--alfanar-border);
    background: var(--alfanar-white);
    color: var(--alfanar-text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--alfanar-transition);
    cursor: pointer;
    text-decoration: none;
}

.alfanar-pagination .page-item .page-link:hover {
    background: var(--alfanar-light-bg);
    border-color: var(--alfanar-primary);
    color: var(--alfanar-primary);
}

.alfanar-pagination .page-item.active .page-link {
    background: var(--alfanar-gradient);
    border-color: var(--alfanar-primary);
    color: var(--alfanar-white);
    box-shadow: 0 2px 8px rgba(25, 87, 210, 0.3);
}

.alfanar-pagination .page-item.disabled .page-link {
    background: var(--alfanar-light-bg);
    color: var(--alfanar-border);
    cursor: not-allowed;
    border-color: var(--alfanar-border);
}

.alfanar-pagination .page-item.nav-arrow .page-link {
    font-size: 0.75rem;
}

.alfanar-page-size-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--alfanar-text-light);
}

.alfanar-page-size-select select {
    border: 1px solid var(--alfanar-border);
    border-radius: var(--alfanar-radius-sm);
    padding: 6px 28px 6px 12px;
    font-size: 0.85rem;
    color: var(--alfanar-text);
    background: var(--alfanar-white);
    cursor: pointer;
    transition: var(--alfanar-transition);
    appearance: auto;
}

.alfanar-page-size-select select:focus {
    border-color: var(--alfanar-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 87, 210, 0.1);
}

/* ---------- TABLE LOADING STATE ---------- */
.alfanar-table-loading {
    position: relative;
    min-height: 200px;
}

.alfanar-table-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.alfanar-table-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 3px solid var(--alfanar-border);
    border-top-color: var(--alfanar-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 6;
}

/* ---------- TABLE EMPTY STATE ---------- */
.alfanar-table-empty {
    text-align: center;
    padding: 60px 20px;
}

.alfanar-table-empty i {
    font-size: 3rem;
    color: var(--alfanar-border);
    margin-bottom: 16px;
}

.alfanar-table-empty h5 {
    color: var(--alfanar-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.alfanar-table-empty p {
    color: var(--alfanar-text-light);
    font-size: 0.9rem;
}

/* ---------- KENDO GRID OVERRIDES ---------- */
.k-grid {
    border: none !important;
    border-radius: var(--alfanar-radius) !important;
    overflow: hidden;
    box-shadow: var(--alfanar-shadow) !important;
}

.k-grid .k-grid-header {
    background: var(--alfanar-light-bg) !important;
    border-bottom: 2px solid var(--alfanar-border) !important;
}

.k-grid .k-grid-header th {
    background: transparent !important;
    color: var(--alfanar-text) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-color: var(--alfanar-border) !important;
}

.k-grid td {
    border-color: var(--alfanar-border) !important;
    color: var(--alfanar-text) !important;
    font-size: 0.9rem !important;
}

.k-grid tr:hover td {
    background: rgba(25, 87, 210, 0.03) !important;
}

.k-grid .k-pager {
    background: var(--alfanar-white) !important;
    border-top: 1px solid var(--alfanar-border) !important;
    padding: 12px 16px !important;
}

.k-grid .k-pager .k-pager-numbers .k-link {
    border-radius: var(--alfanar-radius-sm) !important;
    min-width: 36px !important;
    height: 36px !important;
    transition: var(--alfanar-transition) !important;
}

.k-grid .k-pager .k-pager-numbers .k-link:hover {
    background: var(--alfanar-light-bg) !important;
    color: var(--alfanar-primary) !important;
}

.k-grid .k-pager .k-pager-numbers .k-link.k-selected {
    background: var(--alfanar-gradient) !important;
    color: var(--alfanar-white) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(25, 87, 210, 0.3) !important;
}

.k-grid .k-pager .k-pager-nav {
    border-radius: var(--alfanar-radius-sm) !important;
    transition: var(--alfanar-transition) !important;
}

.k-grid .k-pager .k-pager-nav:hover {
    background: var(--alfanar-light-bg) !important;
    color: var(--alfanar-primary) !important;
}

/* ---------- KENDO DATEPICKER OVERRIDES ---------- */
.k-datepicker {
    border-radius: var(--alfanar-radius-sm) !important;
}

.k-datepicker .k-input-inner {
    font-size: var(--alfanar-font-base) !important;
    padding: 8px 12px !important;
}

.k-datepicker .k-input-button {
    border-radius: 0 var(--alfanar-radius-sm) var(--alfanar-radius-sm) 0 !important;
}

/* =============================================
   PORTAL ADMIN PAGES - Search & DataTable
   ============================================= */

/* ---------- SEARCH FILTER CARD ---------- */
.alfanar-search-card {
    background: var(--alfanar-white);
    border-radius: var(--alfanar-radius);
    box-shadow: var(--alfanar-shadow-xs);
    border: 1px solid var(--alfanar-border);
    margin-bottom: 24px;
    overflow: hidden;
}

.alfanar-search-card .search-card-header {
    background: var(--alfanar-light-bg);
    padding: 14px 24px;
    border-bottom: 1px solid var(--alfanar-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alfanar-search-card .search-card-header i {
    color: var(--alfanar-primary);
    font-size: 1rem;
}

.alfanar-search-card .search-card-header h6 {
    margin: 0;
    font-size: var(--alfanar-font-base);
    font-weight: 600;
    color: var(--alfanar-text);
}

.alfanar-search-card .search-card-body {
    padding: 20px 24px;
}

.alfanar-search-card .search-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.alfanar-search-card .search-field {
    flex: 1;
    min-width: 180px;
}

.alfanar-search-card .search-field label {
    display: block;
    font-size: var(--alfanar-font-xs);
    font-weight: 600;
    color: var(--alfanar-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.alfanar-search-card .search-field .form-control,
.alfanar-search-card .search-field .k-datepicker {
    width: 100%;
}

.alfanar-search-card .search-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: flex-end;
    padding-bottom: 1px;
}

.alfanar-search-card .btn-search {
    background: var(--alfanar-gradient);
    color: var(--alfanar-white);
    border: none;
    padding: 9px 24px;
    border-radius: var(--alfanar-radius-sm);
    font-size: var(--alfanar-font-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--alfanar-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 38px;
}

.alfanar-search-card .btn-search:hover {
    box-shadow: 0 4px 12px rgba(25, 87, 210, 0.25);
    transform: translateY(-1px);
}

.alfanar-search-card .btn-reset {
    background: var(--alfanar-white);
    color: var(--alfanar-text-light);
    border: 1px solid var(--alfanar-border);
    padding: 9px 18px;
    border-radius: var(--alfanar-radius-sm);
    font-size: var(--alfanar-font-base);
    font-weight: 500;
    cursor: pointer;
    transition: var(--alfanar-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 38px;
}

.alfanar-search-card .btn-reset:hover {
    background: var(--alfanar-light-bg);
    color: var(--alfanar-text);
    border-color: var(--alfanar-text-light);
}

/* ---------- DATA TABLE CARD ---------- */
.alfanar-datatable-card {
    background: var(--alfanar-white);
    border-radius: var(--alfanar-radius);
    box-shadow: var(--alfanar-shadow-xs);
    border: 1px solid var(--alfanar-border);
    overflow: hidden;
}

.alfanar-datatable-card .datatable-card-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--alfanar-border);
    flex-wrap: wrap;
    gap: 12px;
}

.alfanar-datatable-card .datatable-card-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alfanar-datatable-card .datatable-card-header .header-left .header-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--alfanar-radius-sm);
    background: linear-gradient(135deg, rgba(25, 87, 210, 0.08), rgba(67, 182, 225, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

.alfanar-datatable-card .datatable-card-header .header-left .header-icon i {
    font-size: 0.95rem;
    color: var(--alfanar-primary);
}

.alfanar-datatable-card .datatable-card-header .header-left h6 {
    margin: 0;
    font-size: var(--alfanar-font-md);
    font-weight: 600;
    color: var(--alfanar-text);
}

.alfanar-datatable-card .datatable-card-header .header-left .record-count {
    background: var(--alfanar-light-bg);
    color: var(--alfanar-text-light);
    font-size: var(--alfanar-font-xs);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.alfanar-datatable-card .datatable-card-header .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alfanar-datatable-card .datatable-card-header .table-search-input {
    position: relative;
}

.alfanar-datatable-card .datatable-card-header .table-search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--alfanar-text-light);
    font-size: var(--alfanar-font-sm);
}

.alfanar-datatable-card .datatable-card-header .table-search-input input {
    border: 1px solid var(--alfanar-border);
    border-radius: var(--alfanar-radius-sm);
    padding: 8px 14px 8px 36px;
    font-size: var(--alfanar-font-base);
    color: var(--alfanar-text);
    background: var(--alfanar-white);
    transition: var(--alfanar-transition);
    min-width: 220px;
}

.alfanar-datatable-card .datatable-card-header .table-search-input input:focus {
    outline: none;
    border-color: var(--alfanar-primary);
    box-shadow: 0 0 0 3px rgba(25, 87, 210, 0.08);
}

.alfanar-datatable-card .datatable-card-header .table-search-input input::placeholder {
    color: var(--alfanar-border);
}

/* ---------- MODERN TABLE ---------- */
.alfanar-datatable-card .table-responsive {
    margin: 0;
    padding: 0;
}

.alfanar-datatable-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.alfanar-datatable-card table thead th {
    background: var(--alfanar-light-bg);
    color: var(--alfanar-text-light);
    font-size: var(--alfanar-font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--alfanar-border);
    border-top: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition: var(--alfanar-transition);
    position: relative;
}

.alfanar-datatable-card table thead th:hover {
    color: var(--alfanar-primary);
    background: #EDF2F7;
}

.alfanar-datatable-card table thead th.sorting::after,
.alfanar-datatable-card table thead th.sorting_asc::after,
.alfanar-datatable-card table thead th.sorting_desc::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.65rem;
    opacity: 0.4;
}

.alfanar-datatable-card table thead th.sorting::after {
    content: "\f0dc";
}

.alfanar-datatable-card table thead th.sorting_asc::after {
    content: "\f0de";
    opacity: 1;
    color: var(--alfanar-primary);
}

.alfanar-datatable-card table thead th.sorting_desc::after {
    content: "\f0dd";
    opacity: 1;
    color: var(--alfanar-primary);
}

.alfanar-datatable-card table tbody td {
    padding: 12px 16px;
    font-size: var(--alfanar-font-base);
    color: var(--alfanar-text);
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.alfanar-datatable-card table tbody tr {
    transition: var(--alfanar-transition);
}

.alfanar-datatable-card table tbody tr:hover {
    background: rgba(25, 87, 210, 0.02);
}

.alfanar-datatable-card table tbody tr:nth-child(even) {
    background-color: #FAFBFD;
}

.alfanar-datatable-card table tbody tr:nth-child(even):hover {
    background: rgba(25, 87, 210, 0.03);
}

.alfanar-datatable-card table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges for table */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--alfanar-font-xs);
    font-weight: 600;
    white-space: nowrap;
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-pill.status-completed { background: rgba(56,161,105,0.1); color: var(--alfanar-success); }
.status-pill.status-completed::before { background: var(--alfanar-success); }
.status-pill.status-pending { background: rgba(255,167,12,0.1); color: var(--alfanar-orange); }
.status-pill.status-pending::before { background: var(--alfanar-orange); }
.status-pill.status-rejected { background: rgba(229,62,62,0.1); color: var(--alfanar-danger); }
.status-pill.status-rejected::before { background: var(--alfanar-danger); }
.status-pill.status-inprogress { background: rgba(49,130,206,0.1); color: var(--alfanar-info); }
.status-pill.status-inprogress::before { background: var(--alfanar-info); }
.status-pill.status-sentback { background: rgba(214,158,46,0.1); color: var(--alfanar-warning); }
.status-pill.status-sentback::before { background: var(--alfanar-warning); }

/* Action buttons in table */
.table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--alfanar-radius-sm);
    border: 1px solid var(--alfanar-border);
    background: var(--alfanar-white);
    color: var(--alfanar-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--alfanar-transition);
    text-decoration: none;
    font-size: var(--alfanar-font-sm);
}

.table-action-btn:hover {
    background: var(--alfanar-primary);
    color: var(--alfanar-white);
    border-color: var(--alfanar-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 87, 210, 0.2);
}

.table-action-btn.btn-edit:hover {
    background: var(--alfanar-orange);
    border-color: var(--alfanar-orange);
}

/* ---------- DATATABLE OVERRIDES ---------- */
.alfanar-datatable-card .dataTables_wrapper {
    padding: 0;
}

.alfanar-datatable-card .dataTables_wrapper .dataTables_length,
.alfanar-datatable-card .dataTables_wrapper .dataTables_filter {
    display: none !important;
}

.alfanar-datatable-card .dataTables_wrapper .dataTables_info {
    font-size: var(--alfanar-font-sm);
    color: var(--alfanar-text-light);
    padding: 16px 24px;
}

.alfanar-datatable-card .dataTables_wrapper .dataTables_paginate {
    padding: 12px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.alfanar-datatable-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--alfanar-radius-sm) !important;
    border: 1px solid var(--alfanar-border) !important;
    background: var(--alfanar-white) !important;
    color: var(--alfanar-text) !important;
    font-size: var(--alfanar-font-sm) !important;
    font-weight: 500;
    cursor: pointer;
    transition: var(--alfanar-transition);
    padding: 0 10px !important;
    margin: 0 2px;
}

.alfanar-datatable-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--alfanar-light-bg) !important;
    border-color: var(--alfanar-primary) !important;
    color: var(--alfanar-primary) !important;
}

.alfanar-datatable-card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--alfanar-gradient) !important;
    border-color: var(--alfanar-primary) !important;
    color: var(--alfanar-white) !important;
    box-shadow: 0 2px 8px rgba(25, 87, 210, 0.3);
}

.alfanar-datatable-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background: var(--alfanar-light-bg) !important;
    color: var(--alfanar-border) !important;
    cursor: not-allowed;
    border-color: var(--alfanar-border) !important;
    box-shadow: none;
}

/* Pagination info bar */
.alfanar-datatable-card .datatable-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid var(--alfanar-border);
    flex-wrap: wrap;
    gap: 12px;
}

/* Empty state */
.alfanar-empty-state {
    text-align: center;
    padding: 60px 24px;
}

.alfanar-empty-state .empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--alfanar-light-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.alfanar-empty-state .empty-icon i {
    font-size: 1.8rem;
    color: var(--alfanar-border);
}

.alfanar-empty-state h5 {
    color: var(--alfanar-text);
    font-weight: 600;
    font-size: var(--alfanar-font-md);
    margin-bottom: 6px;
}

.alfanar-empty-state p {
    color: var(--alfanar-text-light);
    font-size: var(--alfanar-font-base);
    margin: 0;
}

/* ---------- PORTAL RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .alfanar-search-card .search-row {
        flex-direction: column;
        gap: 14px;
    }

    .alfanar-search-card .search-field {
        min-width: 100%;
    }

    .alfanar-search-card .search-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .alfanar-datatable-card .datatable-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .alfanar-datatable-card .datatable-card-header .header-right {
        width: 100%;
    }

    .alfanar-datatable-card .datatable-card-header .table-search-input {
        width: 100%;
    }

    .alfanar-datatable-card .datatable-card-header .table-search-input input {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .alfanar-search-card .search-card-body {
        padding: 16px;
    }

    .alfanar-search-card .search-card-header {
        padding: 12px 16px;
    }

    .alfanar-datatable-card .datatable-card-header {
        padding: 14px 16px;
    }

    .alfanar-datatable-card table thead th,
    .alfanar-datatable-card table tbody td {
        padding: 10px 12px;
        font-size: var(--alfanar-font-xs);
    }

    .alfanar-datatable-card .dataTables_wrapper .dataTables_info {
        padding: 12px 16px;
    }

    .alfanar-datatable-card .dataTables_wrapper .dataTables_paginate {
        padding: 10px 16px 14px;
        justify-content: center;
    }

    .alfanar-datatable-card .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 32px;
        height: 32px;
        font-size: var(--alfanar-font-xs) !important;
    }

    .alfanar-datatable-card .datatable-footer {
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
    }
}
