/* خط Cairo مستضاف محليًا - بدل ما يتحمل من fonts.googleapis.com/fonts.gstatic.com
   في كل فتح صفحة. الملفات دي لازم تتحط في فولدر /fonts/ جنب باقي ملفات الموقع. */

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cairo-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/cairo-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/cairo-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/cairo-800.woff2') format('woff2');
}

body {
    background-color: #f4f6f9;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('assets/ecral-artwork.jpg');
    background-image: image-set(
        url('assets/ecral-artwork.webp') type('image/webp'),
        url('assets/ecral-artwork.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(9px);
    transform: scale(1.06);
}
body.bg-sharp::before {
    filter: none;
    transform: none;
}

@media (max-width: 768px) {
    body::before {
        background-attachment: scroll;
    }

    .glass-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .glass-card table {
        width: auto;
        min-width: 700px;
    }
}

/* ==========================================================================
   Premium card refresh — applies to every card style used across the site
   (login card, portal cards, "soon-card" grids, admin menu cards). Loads
   after each page's own <style> block, so these rules take over automatically
   with no per-page edits needed. Kept inside the existing navy/orange system.
   ========================================================================== */

.login-card,
.portal-card,
.soon-card,
.page-card,
.glass-card.menu-option-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(15, 23, 41, 0.18) !important;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.login-card:hover,
.portal-card:hover,
.soon-card:hover,
.page-card:hover,
.glass-card.menu-option-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(245, 166, 35, 0.65) !important;
    box-shadow:
        0 20px 50px rgba(15, 23, 41, 0.28),
        0 0 0 2px rgba(245, 166, 35, 0.45),
        0 0 28px 4px rgba(245, 166, 35, 0.4) !important;
}

/* Light glass — for dense data pages (tables, forms) where strong transparency
   would hurt readability. */
.glass-card:not(.menu-option-card),
.doc-sheet {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 41, 0.10) !important;
}

/* These three are actual individual "cards" the mouse lands on (repeating
   grid items, not a big table-wrapping container) - real glass, same
   transparency as the portal-card tier, so the background clearly shows
   through - plus a stronger hover lift + glow. */
.cover-card,
.approval-card,
.photo-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 41, 0.14) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.cover-card:hover,
.approval-card:hover,
.photo-card:hover {
    transform: translateY(-14px) scale(1.04);
    border-color: rgba(245, 166, 35, 0.75) !important;
    box-shadow:
        0 24px 55px rgba(15, 23, 41, 0.3),
        0 0 0 3px rgba(245, 166, 35, 0.55),
        0 0 36px 8px rgba(245, 166, 35, 0.5) !important;
}

/* Icon badges: frosted circle with a livelier scale+tilt on hover */
.portal-icon, .soon-icon, .menu-icon {
    background: rgba(245, 166, 35, 0.22) !important;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.portal-card:hover .portal-icon,
.soon-card:hover .soon-icon,
.glass-card.menu-option-card:hover .menu-icon {
    transform: scale(1.18) rotate(-6deg);
}

.portal-card h3, .soon-card h3, .glass-card.menu-option-card h5 {
    letter-spacing: -0.01em;
}

/* Buttons: gentle lift + soft brand-colored shadow instead of a flat fill */
.btn-brand {
    box-shadow: 0 4px 12px -4px rgba(15, 23, 41, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(15, 23, 41, 0.55);
}

/* أزرار Bootstrap اللي شكلها btn-warning (برتقالي أصفر) بقت كحلي في كل الموقع */
.btn-warning {
    background-color: var(--navy, #0f1729) !important;
    border-color: var(--navy, #0f1729) !important;
    color: #fff !important;
}
.btn-warning:hover,
.btn-warning:focus {
    background-color: #1e293b !important;
    border-color: #1e293b !important;
    color: #fff !important;
}

/* Notification badges: crisper ring + subtle shadow so they read as "live count", not a red sticker */
.notif-badge, .approval-badge {
    box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(220, 38, 38, 0.4) !important;
}

/* شيل أسهم الزيادة/النقصان من حقول الأرقام في كل الموقع - إدخال رقم يدوي بس */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}