/* ==========================================================================
   UFC Student Portal - Modern Academic UI Design System
   Full Native RTL | Cairo Typography | Glassmorphism | Soft Gradients
   ========================================================================== */

:root {
    /* Primary Brand: Electric Indigo & Royal Sapphire */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-active: #3730a3;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --primary-gradient-glow: 0 8px 22px -4px rgba(79, 70, 229, 0.32);
    --primary-light: #eef2ff;
    --primary-border: #c7d2fe;
    --primary-text: #3730a3;

    /* Secondary / Accent: Electric Emerald */
    --secondary: #10b981;
    --secondary-hover: #059669;
    --secondary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --secondary-light: #ecfdf5;
    --secondary-border: #a7f3d0;
    --secondary-text: #065f46;

    /* Warm Amber / Warning */
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;

    /* Rose / Danger */
    --danger: #f43f5e;
    --danger-hover: #e11d48;
    --danger-light: #fff1f2;
    --danger-border: #fecdd3;
    --danger-text: #9f1239;

    /* Sky / Info */
    --info: #0284c7;
    --info-hover: #0369a1;
    --info-light: #f0f9ff;
    --info-border: #bae6fd;
    --info-text: #075985;

    /* Royal Purple */
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;
    --purple-border: #ddd6fe;
    --purple-text: #6d28d9;

    /* Neutrals & Surfaces */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-secondary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.94);

    --text-main: #0f172a;       /* Slate 900 - Crisp High-Contrast */
    --text-secondary: #334155;  /* Slate 700 - Highly Legible */
    --text-muted: #64748b;      /* Slate 500 */
    --text-subtle: #94a3b8;     /* Slate 400 */

    --border-delicate: rgba(226, 232, 240, 0.85);
    --border-hover: rgba(99, 102, 241, 0.35);

    /* Multi-layer Soft Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 5px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 6px 18px -3px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 14px 28px -5px rgba(15, 23, 42, 0.08), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 16px 32px -4px rgba(79, 70, 229, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    --shadow-dropdown: 0 16px 36px -4px rgba(15, 23, 42, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.05);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;

    --bottom-nav-height: 72px;
}

/* ==========================================================================
   Global RTL & Typography (Cairo)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    direction: rtl;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: right;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--secondary) !important;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
    color: var(--primary-hover);
}

[dir="ltr"] {
    text-align: left !important;
    direction: ltr !important;
}

/* ==========================================================================
   Header Navbar (Modern Glassmorphism)
   ========================================================================== */
.top-navbar {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-delicate);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.2s ease;
}

.top-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.22rem;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.02em;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--primary-gradient-glow);
    flex-shrink: 0;
}

.top-navbar .nav-link {
    font-weight: 600;
    font-size: 0.90rem;
    color: var(--text-secondary) !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: var(--radius-pill);
    transition: all 0.15s ease;
    margin: 0 1px;
    white-space: nowrap;
}

.top-navbar .nav-link:hover {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

.top-navbar .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
    font-weight: 700;
}

.top-navbar .nav-link-apk {
    color: var(--secondary-text) !important;
    background-color: var(--secondary-light);
    border: 1px solid var(--secondary-border);
    font-weight: 700 !important;
    margin-inline-start: 4px;
}

.top-navbar .nav-link-apk:hover {
    background-color: #d1fae5 !important;
    color: var(--secondary-hover) !important;
}

.top-navbar .dropdown-menu {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dropdown);
    border: 1px solid var(--border-delicate);
}

.top-navbar .dropdown-item {
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

.user-avatar-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
}

.navbar-toggler {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-delicate);
    background-color: #ffffff;
    transition: all 0.15s ease;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

/* Notification Button */
.notif-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: #ffffff;
    border: 1px solid var(--border-delicate);
    position: relative;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-xs);
}
.notif-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--border-delicate);
    box-shadow: var(--shadow-dropdown);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    text-align: right;
    font-size: 0.92rem;
    background-color: #ffffff;
    animation: fadeInDropdown 0.15s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    font-weight: 600;
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    transition: all 0.12s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ==========================================================================
   Hero Section (Premium Modern Academic Banner)
   ========================================================================== */
.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 50%, #eef2ff 100%);
    border: 1px solid rgba(199, 210, 254, 0.7);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative ambient radial glow */
.hero-card::after {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xs);
}

.hero-card h1 {
    font-size: 2.15rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.hero-card p {
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    max-width: 680px;
}

/* ==========================================================================
   Quick Actions Row (Modern Bento Grid Style)
   ========================================================================== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    background: #ffffff;
    border: 1px solid var(--border-delicate);
    border-radius: var(--radius-lg);
    padding: 1.25rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
    min-height: 110px;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: transparent;
    transition: background 0.18s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
    color: var(--text-main);
}

.quick-action-card:active {
    transform: scale(0.97);
}

.quick-action-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 0.65rem;
    transition: transform 0.18s ease;
}

.quick-action-card:hover .quick-action-icon-box {
    transform: scale(1.1);
}

.quick-action-card.primary .quick-action-icon-box { background: var(--primary-light); color: var(--primary); }
.quick-action-card.primary:hover::before { background: var(--primary); }

.quick-action-card.success .quick-action-icon-box { background: var(--secondary-light); color: var(--secondary); }
.quick-action-card.success:hover::before { background: var(--secondary); }

.quick-action-card.warning .quick-action-icon-box { background: var(--warning-light); color: var(--warning); }
.quick-action-card.warning:hover::before { background: var(--warning); }

.quick-action-card.info .quick-action-icon-box { background: var(--info-light); color: var(--info); }
.quick-action-card.info:hover::before { background: var(--info); }

.quick-action-card.purple .quick-action-icon-box { background: var(--purple-light); color: var(--purple); }
.quick-action-card.purple:hover::before { background: var(--purple); }

.quick-action-card span {
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================================
   Stat Cards (Floating Metric Cards)
   ========================================================================== */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-delicate);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-align: right;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.stat-card:hover .bi-arrow-left {
    transform: translateX(-4px);
}

.stat-card .bi-arrow-left {
    transition: transform 0.18s ease;
}

.stat-card .stat-val {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-delicate);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
    text-align: right;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-delicate);
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.card-header.bg-dark,
.card-header.bg-dark h1,
.card-header.bg-dark h2,
.card-header.bg-dark h3,
.card-header.bg-dark h4,
.card-header.bg-dark h5,
.card-header.bg-dark h6,
.card-header.text-white,
.card-header.text-white h1,
.card-header.text-white h2,
.card-header.text-white h3,
.card-header.text-white h4,
.card-header.text-white h5,
.card-header.text-white h6 {
    color: #ffffff !important;
}

.card-header.bg-dark .text-white-50,
.card-header.text-white .text-white-50 {
    color: rgba(255, 255, 255, 0.88) !important;
}

.card-body {
    padding: 1.4rem;
    color: var(--text-main);
}

.card-footer {
    background-color: #fbfcfe;
    border-top: 1px solid var(--border-delicate);
    padding: 1rem 1.4rem;
}

.pinned-announcement {
    border-right: 5px solid var(--warning) !important;
    background: linear-gradient(90deg, #ffffff 0%, #fffdf8 100%);
}

/* ==========================================================================
   Badges (Modern Pastel Pill Badges)
   ========================================================================== */
.badge {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.42em 0.85em;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: -0.01em;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}
.badge.bg-success {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
}
.badge.bg-danger {
    background-color: var(--danger) !important;
    color: #ffffff !important;
}
.badge.bg-warning {
    background-color: var(--warning) !important;
    color: #ffffff !important;
}
.badge.bg-secondary {
    background-color: var(--text-secondary) !important;
    color: #ffffff !important;
}
.badge.bg-info {
    background-color: var(--info) !important;
    color: #ffffff !important;
}
.badge.bg-orange,
.badge-status-received,
span.bg-orange,
.bg-orange {
    background-color: #ea580c !important;
    background: #ea580c !important;
    color: #ffffff !important;
}
.badge.bg-dark {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

/* Pastel Subtle Variants */
.badge.bg-primary-subtle {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary-border) !important;
}
.badge.bg-success-subtle {
    background-color: var(--secondary-light) !important;
    color: var(--secondary) !important;
    border: 1px solid var(--secondary-border) !important;
}
.badge.bg-warning-subtle {
    background-color: var(--warning-light) !important;
    color: var(--warning-text) !important;
    border: 1px solid var(--warning-border) !important;
}
.badge.bg-danger-subtle {
    background-color: var(--danger-light) !important;
    color: var(--danger-text) !important;
    border: 1px solid var(--danger-border) !important;
}

/* ==========================================================================
   Buttons (Modern Sleek Buttons)
   ========================================================================== */
.btn {
    font-weight: 700;
    font-size: 0.95rem;
    min-height: 44px;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.18s ease;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: var(--primary-gradient-glow);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 24px -3px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary-border);
    background-color: #ffffff;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: var(--primary-gradient-glow);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border-delicate);
    background-color: #ffffff;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background-color: var(--bg-surface-secondary);
    border-color: #cbd5e1;
    color: var(--text-main) !important;
}

.btn-sm {
    min-height: 38px;
    padding: 0.35rem 0.95rem;
    font-size: 0.86rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    min-height: 50px;
    padding: 0.75rem 1.65rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-control,
.form-select {
    min-height: 46px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: right;
}

.form-control[dir="ltr"] {
    text-align: left;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
    outline: none;
    color: var(--text-main);
}

.form-label {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

/* ==========================================================================
   Horizontal Stepper (Native RTL Progress)
   ========================================================================== */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 1.75rem 0;
    width: 100%;
}

.stepper-item {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.step-circle.active {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: var(--primary-gradient-glow);
}

.step-circle.success {
    background: var(--secondary-gradient) !important;
    color: #ffffff !important;
}

.step-circle.bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px -2px rgba(234, 88, 12, 0.4);
}

.bi-clock {
    display: inline-block;
    vertical-align: -0.125em;
}

.step-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.stepper-line {
    flex: 1 1 0;
    height: 4px;
    margin: 0 6px;
    margin-bottom: 1.8rem;
    background-color: #e2e8f0;
    border-radius: 2px;
}
.stepper-line.active {
    background: var(--primary-gradient);
}
.stepper-line.success {
    background: var(--secondary-gradient);
}
.stepper-line.danger {
    background: var(--danger);
}

/* ==========================================================================
   Poll Radio Options
   ========================================================================== */
.custom-radio-box {
    display: flex;
    align-items: center;
    padding: 0.95rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.15s ease;
    cursor: pointer;
    background-color: #ffffff;
}

.custom-radio-box:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-border);
}

.custom-radio-box .form-check-input {
    margin-left: 0.95rem !important;
    margin-right: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}

.custom-radio-box .form-check-label {
    flex-grow: 1;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 0;
}

/* ==========================================================================
   Dashboard Sidebar Styling (Sleek Clean RTL)
   ========================================================================== */
.sidebar {
    background: #ffffff;
    min-height: calc(100vh - 65px);
    border-left: 1px solid var(--border-delicate);
    padding: 1.25rem 0.75rem;
}

.sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.75rem 1.15rem;
    font-weight: 600;
    font-size: 0.93rem;
    border-radius: var(--radius-md);
    margin: 3px 0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.sidebar .nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.sidebar .nav-link:hover i {
    color: var(--primary);
}

.sidebar .nav-link.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: var(--primary-gradient-glow);
}

.sidebar .nav-link.active i {
    color: #ffffff !important;
}

.sidebar .nav-link .badge {
    margin-right: auto;
    margin-left: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table {
    --bs-table-bg: transparent;
    vertical-align: middle;
    text-align: right;
}
.table th {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.88rem;
    background-color: #f8fafc;
    border-bottom: 2px solid var(--border-delicate);
    padding: 0.95rem 1.1rem;
}
.table td {
    padding: 0.95rem 1.1rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-delicate);
}
.table-hover tbody tr:hover {
    background-color: #f8faff;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-delicate);
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 1.8rem 0;
    text-align: center;
}

/* Alerts */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    text-align: right;
    padding: 1rem 1.25rem;
}
.alert-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}
.alert-success {
    background-color: var(--secondary-light);
    color: var(--secondary);
    border: 1px solid var(--secondary-border);
}
.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}
.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}
.alert-info {
    background-color: var(--info-light);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

/* ==========================================================================
   Bottom Navigation Bar (Mobile)
   ========================================================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #ffffff;
    border-top: 1px solid #cfe2d6;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 20px rgba(5, 46, 28, 0.08);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    max-width: 80px;
    min-height: 54px;
    padding: 4px 2px;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    user-select: none;
}

.bottom-nav-item .bottom-nav-icon-wrap {
    width: 52px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item i {
    font-size: 1.3rem;
    line-height: 1;
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item span {
    font-size: 0.72rem;
    line-height: 1.2;
    color: #64748b;
    transition: color 0.2s ease, font-weight 0.2s ease;
    white-space: nowrap;
}

/* Android Active Tab styling */
.bottom-nav-item.active .bottom-nav-icon-wrap {
    background-color: #d1fae5; /* Android primary_container */
}

.bottom-nav-item.active i {
    color: #059669; /* Android primary */
    transform: scale(1.08);
}

.bottom-nav-item.active span {
    color: #059669;
    font-weight: 700;
}

.bottom-nav-item:hover:not(.active) {
    color: #059669;
}

.bottom-nav-item:hover:not(.active) i {
    color: #059669;
}

/* Offcanvas Menu */
.mobile-more-menu.offcanvas-bottom {
    height: 75vh !important;
    max-height: 85vh !important;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    box-shadow: var(--shadow-dropdown);
    border-top: 1px solid var(--border-delicate);
}

.mobile-more-menu .offcanvas-header {
    border-bottom: 1px solid var(--border-delicate);
    padding: 1.25rem 1.4rem;
}

.mobile-more-menu .offcanvas-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.25rem 2.5rem 1.25rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 0.4rem;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    background-color: var(--primary-light);
    color: var(--primary);
}

.mobile-menu-item .menu-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background-color: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: calc(var(--bottom-nav-height) + 16px);
    }

    .site-footer {
        padding-bottom: calc(var(--bottom-nav-height) + 2rem) !important;
    }

    .hero-card {
        padding: 1.75rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-card h1 {
        font-size: 1.65rem;
    }

    .sidebar {
        min-height: auto;
        border-left: none;
        border-bottom: 1px solid var(--border-delicate);
        padding: 0.75rem !important;
    }
}

/* Intermediate screens (laptops / tablets in landscape 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .top-navbar .navbar-brand {
        font-size: 1.08rem;
        gap: 0.45rem;
    }
    .top-navbar .brand-icon-box {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    .top-navbar .nav-link {
        font-size: 0.84rem;
        padding: 0.4rem 0.55rem !important;
        margin: 0;
    }
    .top-navbar .nav-link-apk {
        margin-inline-start: 2px;
    }
}

/* ==========================================================================
   Notifications System (Android App Matching Design)
   ========================================================================== */
.notif-header-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
}

.notif-header-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.4rem;
    position: relative;
    flex-shrink: 0;
}

.notif-header-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.notif-card {
    border-radius: var(--radius-lg);
    background-color: #ffffff;
    transition: all 0.2s ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.notif-card.notif-unread {
    background-color: #ffffff;
    border-color: var(--primary-border) !important;
    border-width: 1.5px !important;
    box-shadow: 0 4px 14px -3px rgba(79, 70, 229, 0.12);
}

.notif-card.notif-read {
    background-color: #fcfcfd;
    border-color: var(--border-delicate) !important;
    opacity: 0.88;
}

.notification-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-x: hidden !important;
}

.notif-dropdown-list {
    width: 100% !important;
    max-width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.notif-dropdown-list .notification-item .min-w-0 {
    min-width: 0 !important;
    max-width: calc(100% - 46px) !important;
    overflow: hidden;
}

.dropdown-menu[aria-labelledby^="notifDropdown"] {
    width: 360px !important;
    max-width: calc(100vw - 32px) !important;
    overflow-x: hidden !important;
}

/* Center mobile notification dropdown perfectly on screen */
@media (max-width: 991.98px) {
    .dropdown-menu[aria-labelledby="notifDropdownMobile"] {
        position: fixed !important;
        top: 64px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(380px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        margin: 0 !important;
        border-radius: var(--radius-lg) !important;
        box-shadow: 0 14px 40px -4px rgba(15, 23, 42, 0.25) !important;
        z-index: 1060 !important;
        animation: fadeInDropdownMobile 0.18s ease-out !important;
    }
}

@keyframes fadeInDropdownMobile {
    from {
        opacity: 0;
        transform: translate(-50%, -6px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Concern Track Highlight Cards (Status Update or Admin Reply) */
.concern-card-highlighted {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.16) !important;
}
.concern-card-highlighted:hover {
    box-shadow: 0 10px 25px -2px rgba(79, 70, 229, 0.22) !important;
}
.concern-highlight-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-bottom: 1px solid var(--primary-border);
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.notif-type-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.notif-unread-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background-color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.notif-dropdown-list .notification-item:hover {
    background-color: var(--primary-light);
}

.notif-action-link:hover {
    text-decoration: underline !important;
}

/* Concern Replies Chat Thread */
.replies-timeline .reply-bubble {
    border-radius: var(--radius-md);
    position: relative;
}

/* Concern Type Radio Selection Cards */
.concern-type-card {
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    cursor: pointer;
    border: 1.5px solid var(--border-delicate) !important;
}

.concern-type-card:hover {
    border-color: var(--primary) !important;
    background-color: var(--primary-light);
}

.concern-type-card:has(input:checked),
.concern-type-card.active {
    border-color: var(--primary) !important;
    background-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* SweetAlert2 UFC Custom Modern RTL Styling */
div:where(.swal2-container) {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    direction: rtl !important;
}

div:where(.swal2-container) .swal2-popup {
    border-radius: var(--radius-lg) !important;
    font-family: 'Cairo', sans-serif !important;
    padding: 1.5rem !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.22) !important;
}

div:where(.swal2-container) .swal2-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin-bottom: 0.5rem !important;
}

div:where(.swal2-container) .swal2-html-container {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: var(--text-secondary) !important;
}

div:where(.swal2-container) .swal2-actions {
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
}

div:where(.swal2-container) .swal2-styled {
    border-radius: var(--radius-md) !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.4rem !important;
    box-shadow: none !important;
}

div:where(.swal2-container) .swal2-confirm {
    background-color: var(--primary) !important;
}

div:where(.swal2-container) .swal2-confirm:hover {
    background-color: var(--primary-hover) !important;
}

div:where(.swal2-container) .swal2-cancel {
    background-color: #64748b !important;
}

div:where(.swal2-container) .swal2-cancel:hover {
    background-color: #475569 !important;
}

div:where(.swal2-icon) {
    border-color: currentColor !important;
    margin: 1rem auto 0.75rem !important;
}



