[v-cloak] {
    display: none !important;
}

/* iOS Virtual Keyboard & Fixed App Bars Safe Scroll Padding */
html {
    scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
    scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

[dir="rtl"] .rtl{
    text-align : right;
}
[dir="rtl"] .ltr{
    direction: ltr;
    text-align: right;
}
.icon {
    width: 30px;
    height: 30px;
    fill : #198754;
}
.icon-small{
    width: 15px;
    height: 15px;
}
.icon-gray{
    fill: rgba(0,0,0,.55);
}
body.bussy:before{
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    left:0;
    right:0;
    background-color: black;
    opacity: 0.6;
    z-index: 10000;
}
.loading:after,
body.bussy:after{
    content : url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"%3E%3Cpath fill="%23ffffff" d="M12 4c0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.209-1.791 4-4 4s-4-1.791-4-4zM24.719 16c0 0 0 0 0 0 0-1.812 1.469-3.281 3.281-3.281s3.281 1.469 3.281 3.281c0 0 0 0 0 0 0 1.812-1.469 3.281-3.281 3.281s-3.281-1.469-3.281-3.281zM21.513 24.485c0-1.641 1.331-2.972 2.972-2.972s2.972 1.331 2.972 2.972c0 1.641-1.331 2.972-2.972 2.972s-2.972-1.331-2.972-2.972zM13.308 28c0-1.487 1.205-2.692 2.692-2.692s2.692 1.205 2.692 2.692c0 1.487-1.205 2.692-2.692 2.692s-2.692-1.205-2.692-2.692zM5.077 24.485c0-1.346 1.092-2.438 2.438-2.438s2.438 1.092 2.438 2.438c0 1.346-1.092 2.438-2.438 2.438s-2.438-1.092-2.438-2.438zM1.792 16c0-1.22 0.989-2.208 2.208-2.208s2.208 0.989 2.208 2.208c0 1.22-0.989 2.208-2.208 2.208s-2.208-0.989-2.208-2.208zM5.515 7.515c0 0 0 0 0 0 0-1.105 0.895-2 2-2s2 0.895 2 2c0 0 0 0 0 0 0 1.105-0.895 2-2 2s-2-0.895-2-2zM28.108 7.515c0 2.001-1.622 3.623-3.623 3.623s-3.623-1.622-3.623-3.623c0-2.001 1.622-3.623 3.623-3.623s3.623 1.622 3.623 3.623z"%3E%3C/path%3E%3C/svg%3E');
    position: fixed;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    -webkit-transform-origin: center center;
            transform-origin: center center;
    -webkit-animation: rotate 1s steps(8) infinite;
            animation: rotate 1s steps(8) infinite;
    z-index: 10001;
}
.loading{
    position: relative;
    min-height: 3em;
}
.loading:not(:empty):after{
    display: none;
}
.loading:empty:after{
    position: absolute;
    content : url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"%3E%3Cpath fill="%23ddd" d="M12 4c0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.209-1.791 4-4 4s-4-1.791-4-4zM24.719 16c0 0 0 0 0 0 0-1.812 1.469-3.281 3.281-3.281s3.281 1.469 3.281 3.281c0 0 0 0 0 0 0 1.812-1.469 3.281-3.281 3.281s-3.281-1.469-3.281-3.281zM21.513 24.485c0-1.641 1.331-2.972 2.972-2.972s2.972 1.331 2.972 2.972c0 1.641-1.331 2.972-2.972 2.972s-2.972-1.331-2.972-2.972zM13.308 28c0-1.487 1.205-2.692 2.692-2.692s2.692 1.205 2.692 2.692c0 1.487-1.205 2.692-2.692 2.692s-2.692-1.205-2.692-2.692zM5.077 24.485c0-1.346 1.092-2.438 2.438-2.438s2.438 1.092 2.438 2.438c0 1.346-1.092 2.438-2.438 2.438s-2.438-1.092-2.438-2.438zM1.792 16c0-1.22 0.989-2.208 2.208-2.208s2.208 0.989 2.208 2.208c0 1.22-0.989 2.208-2.208 2.208s-2.208-0.989-2.208-2.208zM5.515 7.515c0 0 0 0 0 0 0-1.105 0.895-2 2-2s2 0.895 2 2c0 0 0 0 0 0 0 1.105-0.895 2-2 2s-2-0.895-2-2zM28.108 7.515c0 2.001-1.622 3.623-3.623 3.623s-3.623-1.622-3.623-3.623c0-2.001 1.622-3.623 3.623-3.623s3.623 1.622 3.623 3.623z"%3E%3C/path%3E%3C/svg%3E');
}
@-webkit-keyframes rotate {
    to {-webkit-transform: translate(-50%, -50%) rotate(360deg);transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes rotate {
    to {-webkit-transform: translate(-50%, -50%) rotate(360deg);transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   Top Page Transition Progress Indicator
   ========================================================================== */
#dar-page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--dar-green, #1a8a57) 0%, #34d399 50%, #10b981 100%);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.8), 0 0 4px rgba(26, 138, 87, 0.6);
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    border-radius: 0 2px 2px 0;
    transition: width 0.3s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.15s ease;
}

#dar-page-progress.is-loading {
    opacity: 1;
}

/* Instant visual pulse on navigating tab item */
.tab-item--navigating .tab-icon-wrap {
    background: rgba(26, 138, 87, 0.18) !important;
    color: var(--dar-green, #1a8a57) !important;
    transform: scale(1.1) translateY(-1px);
    transition: transform 0.2s ease, background 0.2s ease;
}
[data-theme="dark"] .tab-item--navigating .tab-icon-wrap {
    background: rgba(62, 207, 142, 0.22) !important;
    color: var(--dar-green-accent) !important;
}

.btn,
.btn-sm,
.btn-lg,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
    border-radius: var(--dar-radius-pill, 9999px) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 4px;
    padding: 9px 20px;
    min-height: 42px;
    border-radius: var(--dar-radius-pill, 9999px) !important;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--dar-transition-btn, all 0.2s cubic-bezier(0.4, 0, 0.2, 1));
}

.btn-primary,
.btn-success {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--dar-green, #1a8a57), var(--dar-green-deep, #144e33)) !important;
    border: none !important;
    box-shadow: var(--dar-shadow-btn-primary, 0 4px 14px rgba(26, 138, 87, 0.28));
}

.btn-primary:hover,
.btn-success:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--dar-green-accent, #38a374), var(--dar-green-dark, #14663f)) !important;
    transform: translateY(-1px);
    box-shadow: var(--dar-shadow-btn-primary-hover, 0 6px 18px rgba(26, 138, 87, 0.38));
}

.btn-primary:active,
.btn-success:active {
    transform: translateY(0);
}

.btn-secondary {
    color: var(--dar-green-dark, #14663f) !important;
    background-color: var(--dar-surface, #ffffff) !important;
    border: 1.5px solid var(--dar-border, #dbe4df) !important;
    box-shadow: var(--dar-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));
}

.btn-secondary:hover {
    color: var(--dar-green-deep, #144e33) !important;
    background-color: var(--dar-green-soft, #e9f4ee) !important;
    border-color: var(--dar-green, #1a8a57) !important;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-danger {
    color: #ffffff !important;
    background-color: var(--dar-red, #dc2626) !important;
    border: none !important;
    box-shadow: var(--dar-shadow-btn-danger, 0 4px 14px rgba(220, 38, 38, 0.28));
}

.btn-danger:hover {
    color: #ffffff !important;
    background-color: var(--dar-red-dark, #b91c1c) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.38);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: var(--dar-focus-ring-width, 3px) solid var(--dar-green, #1a8a57);
    outline-offset: var(--dar-focus-ring-offset, 2px);
}

.btn.disabled,
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}
.dropdown-item.active, .dropdown-item:active {
    background-color: #f4f4f4;
}
.attendance-table input[type="radio"]{
    position: absolute;
    opacity: 0;
    pointer-events : none;
}
.attendance-table .bi{
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #b4b4b4;
}

.attendance-table input[type="radio"]:checked + label .bi-person-check-fill { color: #00a76d; }
.attendance-table input[type="radio"]:checked + label .bi-person-check { color: #ff9800; }
.attendance-table input[type="radio"]:checked + label .bi-person-x-fill { color: #dc0001; }

a.delete{
    background: #d53535;
    border-radius: 50%;
    font-size: 1.2rem;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
    line-height: 1.5rem;
    color: #fff;
    float: right;
}
[dir="rtl"] a.delete{
    float: left;
}

.isDirty .cke{
    outline: 2px solid red;
}

.sticky{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    margin: 0;
    padding: 10px 0;
    background-color: #fff;
    box-shadow: 0px 2px 2px rgba(0,0,0,.5);
}
#save-all{
    display: block;
    max-width: 300px;
    margin: 0 auto;
}
.close:not(:disabled):not(.disabled) {
    cursor: pointer;
}
.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}
button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

.badge.badge-danger{ background-color: #842029; }
.badge.bg-pending-dept-approval{ background-color: #d38805; }
.badge.bg-canceled{ background-color: #842029; }
.badge.bg-activated{ background-color: #096215; }
.badge.bg-draft{ background-color: #909090; }
.badge-sm { font-size: .75em; }


.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
  }
  
  .badge-success {
    color: #fff;
    background-color: #28a745;
  }
  
  .badge-warning {
    color: #212529;
    background-color: #ffc107;
  }
  
  .badge-danger {
    color: #fff;
    background-color: #dc3545;
  }
  
  .badge-info {
    color: #fff;
    background-color: #17a2b8;
  }
  
  .badge-primary {
    color: #fff;
    background-color: #007bff;
  }
  
  .badge-secondary {
    color: #fff;
    background-color: #6c757d;
  }
  
  .badge-light {
    color: #212529;
    background-color: #f8f9fa;
  }
  
  .badge-dark {
    color: #fff;
    background-color: #343a40;
  }

  @media only screen and (max-width: 800px) {
    .table-responsive,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
      display: block;
    }
  
    .table-responsive thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
  
    .table-responsive tr {
      border: 1px solid #ccc;
      margin-bottom: 15px;
    }
  
    .table-responsive td {
      border: none;
      border-bottom: 1px solid #eee;
      position: relative;
      padding-left: 50%;
      white-space: normal;
      text-align: left; /* Default to left */
    }
  
    .table-responsive td:before {
      position: absolute;
      top: 6px;
      left: 6px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
      text-align: left; /* Default to left */
      font-weight: bold;
    }
  
    .table-responsive td:before {
      content: attr(data-title);
    }
  
    /* Adjust for RTL */
    [dir="rtl"] .table-responsive td {
      text-align: right;
      padding-right: 50%;
      padding-left: 0;
    }
  
    [dir="rtl"] .table-responsive td:before {
      left: auto;
      right: 6px;
      padding-right: 0;
      padding-left: 10px;
      text-align: right;
    }
      
      .table-responsive .collapsible:not(.non-clickable)  {
        background-color: #f9f9f9; 
      }
  }

/* ==========================================================================
   NATIVE PWA OVERHAUL
   ========================================================================== */

/* Base & Typography */
body, body.v2, html {
    font-family: var(--dar-font-latin); /* DAR self-hosted Manrope (RTL switches to Noto Sans Arabic below) */
    background-color: #f2f2f7; /* iOS system gray background */
    color: #1c1c1e;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none; /* prevent pull-to-refresh bounce */
    margin: 0;
    padding: 0;
}

/* Hide Bootstrap Header default stuff since we rewrote it */
header { display: block; }

/* ==========================================================================
   Modernized Top App Bar & Navigation
   ========================================================================== */
.top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 255, 0.98);
    z-index: 1030;
    border-bottom: 1px solid rgba(20, 70, 45, 0.08);
    box-shadow: 0 4px 20px rgba(20, 70, 45, 0.03);
    display: flex;
    align-items: center;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 12px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
    .top-app-bar {
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
}

/* Three physical zones on a full-width bar: two fixed edge controls and a
   flexible centre that belongs entirely to the language switcher. The grid is
   forced to physical LTR so placement is deterministic; RTL is declared
   explicitly below (never transform/auto-mirrored). */
.top-app-bar-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 4px;
}

.app-hz {
    display: flex;
    align-items: center;
    min-width: 0;
}

.app-hz--back {
    justify-content: flex-start;
    gap: 12px;
    min-width: 96px;
    flex: 0 0 auto;
    z-index: 2;
}

.app-hz--logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 1;
}

.app-header-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.app-header-logo {
    height: 38px;
    max-height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.app-hz--actions,
.app-hz--logout {
    justify-content: flex-end;
    gap: 12px;
    min-width: 96px;
    flex: 0 0 auto;
    z-index: 2;
}

[dir="rtl"] .app-hz--back {
    justify-content: flex-start;
}

[dir="rtl"] .app-hz--actions,
[dir="rtl"] .app-hz--logout {
    justify-content: flex-end;
}

/* Edge controls — each an isolated ~44x44 touch target at the screen edge. */
.app-edgebtn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    line-height: 1;
    box-sizing: border-box;
}

.app-logoutbtn {
    color: var(--dar-muted, #73847b);
}

.app-logoutbtn:hover {
    background: #fef2f2 !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
    color: var(--dar-red, #dc2626) !important;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.15) !important;
}

.app-bellbtn *,
#dar-notification-bell *,
.dar-btn-icon * {
    pointer-events: none;
}

.app-backbtn,
.app-iconbtn {
    border: 1px solid rgba(20, 70, 45, 0.08);
    color: var(--dar-green-deep, #144e33);
    background: #f1f6f3;
    font-size: 1.15rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-backbtn:hover,
.app-iconbtn:hover {
    background: #ffffff;
    border-color: var(--dar-green, #1a8a57);
    color: var(--dar-green, #1a8a57);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(26, 138, 87, 0.12);
}

.app-backbtn:active,
.app-iconbtn:active {
    transform: scale(0.95);
}

.app-backbtn:focus-visible,
.app-iconbtn:focus-visible {
    outline: 3px solid var(--dar-green, #1a8a57);
    outline-offset: 2px;
}

/* Non-interactive Back spacer: reserves the exact Back-button footprint on
   landing pages so the language switcher stays perfectly centred and the logout
   control never shifts between pages. */
.app-edgebtn--spacer {
    background: transparent;
    border: 0;
    pointer-events: none;
}

.app-lang-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    background: rgba(20, 70, 45, 0.06);
    padding: 3px;
    border-radius: 9999px;
    border: 1px solid rgba(20, 70, 45, 0.08);
    gap: 3px;
}

.app-lang-pill__item {
    padding: 9px 20px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.app-lang-pill__item:hover {
    color: var(--dar-green-deep, #144e33);
}

.app-lang-pill__item.is-active {
    background: #ffffff;
    color: var(--dar-green, #1a8a57);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.app-lang-pill__item:focus-visible {
    outline: 2px solid var(--dar-green, #1a8a57);
    outline-offset: 2px;
}

/* Header language switch — wider than the square edge buttons because it carries a label. */
.app-langbtn {
    width: auto;
    min-width: 44px;
    gap: 6px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.app-langbtn__label {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .app-langbtn {
        width: 44px;
        padding: 0;
    }

    .app-langbtn__label {
        display: none;
    }
}


/* App Main Content Area */
.app-main {
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
}

@media (min-width: 768px) {
    .app-main {
        padding-top: calc(104px + env(safe-area-inset-top, 0px));
    }
}

.app-container {
    max-width: 850px;
    margin: 0 auto;
}

/* ==========================================================================
   Modernized Bottom Tab Bar
   ========================================================================== */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    z-index: 1030;
    border-top: 1px solid rgba(20, 70, 45, 0.08);
    box-shadow: 0 -4px 20px rgba(20, 70, 45, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
    .bottom-tab-bar {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
}

.bottom-tab-bar-inner {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 6px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 4px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    max-width: 85px;
    min-width: 0;
    user-select: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.tab-item * {
    pointer-events: none;
}

.tab-item .tab-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    border-radius: 13px;
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 2px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-item .tab-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: -0.1px;
    transition: color 0.2s ease;
}

[dir="rtl"] .tab-item .tab-label {
    letter-spacing: 0;
}

.tab-item:hover {
    color: var(--dar-green, #1a8a57);
}

.tab-item:hover .tab-icon-wrap {
    transform: translateY(-2px);
    background: rgba(26, 138, 87, 0.08);
}

.tab-item.active {
    color: var(--dar-green-deep, #144e33);
    font-weight: 700;
}

.tab-item.active .tab-icon-wrap {
    background: rgba(26, 138, 87, 0.12);
    color: var(--dar-green, #1a8a57);
    transform: translateY(-1px);
}

/* Mobile Adjustments for Top App Bar and Bottom Tab Bar */
@media (max-width: 600px) {
    .top-app-bar {
        height: auto;
        min-height: calc(58px + env(safe-area-inset-top, 0px));
        padding: calc(10px + env(safe-area-inset-top, 0px)) 8px 10px 8px;
    }

    .top-app-bar-inner {
        gap: clamp(6px, 1.5vw, 10px);
    }

    /* Keep the full ~44px touch target on phones (safety over density). */
    .app-edgebtn {
        width: 44px;
        height: 44px;
    }

    .app-backbtn,
    .app-iconbtn {
        font-size: 1.05rem;
        border-radius: 10px;
    }

    .app-lang-pill {
        padding: 3px;
        gap: 2px;
    }

    .app-lang-pill__item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .app-main {
        padding-top: calc(90px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .bottom-tab-bar {
        height: calc(58px + env(safe-area-inset-bottom, 0px));
    }

    .bottom-tab-bar-inner {
        height: 58px;
        padding: 0 4px;
    }

    .tab-item {
        padding: 3px 1px;
        max-width: 78px;
    }

    .tab-item .tab-icon-wrap {
        width: 32px;
        height: 22px;
        font-size: 1.15rem;
        margin-bottom: 1px;
        border-radius: 11px;
    }

    .tab-item .tab-label {
        font-size: 0.75rem;
        line-height: 1.15;
        letter-spacing: 0;
    }
}

/* Floating Dock on Desktop */
@media (min-width: 768px) {
    .bottom-tab-bar {
        bottom: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 22px;
        border: 1px solid rgba(20, 70, 45, 0.12);
        box-shadow: 0 12px 36px rgba(20, 70, 45, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
        height: 66px;
        padding-bottom: 0;
        width: calc(100% - 32px);
        max-width: 620px;
    }
    
    .bottom-tab-bar-inner {
        height: 66px;
        padding: 0 12px;
    }
}

/* ==========================================================================
   Modernized Offcanvas Bottom Sheets & Side Drawers
   ========================================================================== */
.app-offcanvas,
.offcanvas-end.app-offcanvas,
.offcanvas-start.app-offcanvas,
.offcanvas-bottom.app-offcanvas {
    z-index: 1060 !important;
}

.offcanvas-backdrop {
    z-index: 1050 !important;
}

.offcanvas-bottom.app-offcanvas {
    height: auto !important;
    min-height: 320px;
    max-height: 85vh !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    background: #ffffff !important;
    border: 1px solid rgba(20, 70, 45, 0.08);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18) !important;
    z-index: 1060 !important;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

@media (min-width: 768px) {
    .offcanvas-bottom.app-offcanvas {
        max-width: 620px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(100%) !important;
        border-radius: 28px 28px 0 0 !important;
    }
    
    .offcanvas-bottom.app-offcanvas.show {
        transform: translateX(-50%) translateY(0) !important;
    }
}

/* Modernized Side Drawers (Notification Center & Menus) */
.offcanvas-end.app-offcanvas {
    width: 400px;
    max-width: 100vw;
    background: #ffffff;
    border-left: 1px solid rgba(20, 70, 45, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

[dir="rtl"] .offcanvas-end.app-offcanvas {
    border-left: none;
    border-right: 1px solid rgba(20, 70, 45, 0.08);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12) !important;
}

.offcanvas-start.app-offcanvas {
    width: 400px;
    max-width: 100vw;
    background: #ffffff;
    border-right: 1px solid rgba(20, 70, 45, 0.08);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1) !important;
}

[dir="rtl"] .offcanvas-start.app-offcanvas {
    border-right: none;
    border-left: 1px solid rgba(20, 70, 45, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12) !important;
}

/* Fallback utility styles for Bootstrap 5.3 classes */
.bg-body-tertiary {
    background-color: #f8fafc !important;
}
.bg-success-subtle {
    background-color: #ecfdf5 !important;
}
.text-success-emphasis {
    color: #065f46 !important;
}
.bg-light-subtle {
    background-color: #f8fafc !important;
}

.offcanvas-handle-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 4px 0;
    cursor: grab;
}

.offcanvas-handle {
    width: 44px;
    height: 5px;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: background-color 0.2s ease;
}

.offcanvas-bottom.app-offcanvas:hover .offcanvas-handle {
    background: #94a3b8;
}

.app-offcanvas .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px 20px;
    min-height: calc(58px + env(safe-area-inset-top, 0px));
}

.offcanvas-bottom.app-offcanvas .offcanvas-header {
    padding-top: 14px;
    min-height: 58px;
}

.offcanvas-bottom.app-offcanvas {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-offcanvas .offcanvas-title {
    font-size: 1.15rem;
    color: var(--dar-green-deep, #144e33);
    margin: 0;
    line-height: 1.3;
}

.app-offcanvas .offcanvas-header .btn-close,
.app-offcanvas .btn-close,
.dar-btn-close {
    position: relative;
    margin: 0 !important;
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    opacity: 0.7;
    transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.app-offcanvas .offcanvas-header .btn-close::before,
.app-offcanvas .btn-close::before,
.dar-btn-close::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
}

.app-offcanvas .btn-close:hover,
.dar-btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
}

.app-offcanvas .btn-close:focus,
.dar-btn-close:focus {
    box-shadow: none;
    outline: none;
}

.app-offcanvas .offcanvas-body {
    padding: 16px 20px calc(32px + env(safe-area-inset-bottom, 0px)) 20px !important;
    overflow-y: auto;
}

.app-offcanvas .dash-card {
    border-radius: 20px !important;
    border: 1.5px solid rgba(20, 70, 45, 0.08);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-offcanvas .dash-card:hover {
    transform: translateY(-3px);
    border-color: var(--dar-green-accent, #38a374);
    box-shadow: 0 8px 24px rgba(26, 138, 87, 0.14) !important;
}

.app-offcanvas .dash-card:active {
    transform: scale(0.97);
}

/* Native-like Cards */
.card {
    border: none !important;
    border-radius: 16px !important;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    margin-bottom: 16px;
    overflow: hidden;
}
.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f2f2f7 !important;
    padding: 16px;
    font-weight: 600;
    font-size: 1.1rem;
}
.card-body {
    padding: 16px;
}


/* List Groups (iOS Settings Style) */
.list-group {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.list-group-item {
    padding: 14px 16px;
    border-color: #e5e5ea;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.offcanvas-bottom.app-offcanvas {
    height: auto;
    max-height: 85vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
@media (min-width: 768px) {
    .offcanvas-bottom.app-offcanvas {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Tables */
.table { background-color: #ffffff; border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid #e5e5ea; vertical-align: middle; }
.table thead th { background-color: #f2f2f7; color: #8e8e93; font-weight: 500; font-size: 12px; text-transform: uppercase; border: none; letter-spacing: 0.5px; }

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1c1c1e;
    letter-spacing: -0.01em;
}

/* Form Inputs */
.form-control, .form-select {
    background-color: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    font-size: 16px; /* Prevents iOS zoom */
}
.form-control {
    padding: 12px 16px;
}
.form-select, select.form-control {
    padding: 12px 40px 12px 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231c1c1e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 10px;
    appearance: none;
    -webkit-appearance: none;
}
[dir="rtl"] .form-select, [dir="rtl"] select.form-control {
    padding: 12px 16px 12px 40px;
    background-position: left 16px center;
}
.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border: 1px solid #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}
.alert-danger {
    background-color: #ffeceb;
    color: #ff3b30;
}
.alert-success {
    background-color: #e4f9e0;
    color: #34c759;
}

/* ==========================================================================
   DAR THEME OVERRIDE
   Re-skins the app shell above onto the shared DAR design language
   (green/yellow/cream + self-hosted Manrope / Noto Sans Arabic).
   Tokens come from css/dar-theme.css. Kept as one clearly-scoped block
   so it is easy to review or revert.
   ========================================================================== */

body, body.v2, html {
    font-family: var(--dar-font-latin);
    background-color: var(--dar-bg);
    color: var(--dar-text);
}
[dir="rtl"] body, [dir="rtl"] body.v2, [dir="rtl"] html {
    font-family: var(--dar-font-arabic);
    letter-spacing: 0;
}

/* Cards & dashboard tiles */
.card {
    border-radius: 18px !important;
    box-shadow: var(--dar-shadow) !important;
    background-color: var(--dar-surface);
}
.dash-card {
    border-radius: var(--dar-radius-card) !important;
    border: 1px solid var(--dar-hairline);
    background: var(--dar-surface);
    box-shadow: var(--dar-shadow) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dar-shadow-hover) !important;
}
.dash-card .fw-bold { color: var(--dar-green-dark) !important; }


/* Headings */
h1, h2, h3, h4, h5, h6 { color: var(--dar-text); }

/* Forms */
.form-control:focus, .form-select:focus {
    border: 1px solid var(--dar-green);
    box-shadow: 0 0 0 3px rgba(26, 138, 87, 0.18);
}

/* Tables */
.table thead th {
    background-color: var(--dar-green-soft);
    color: var(--dar-green-dark);
}

/* Alerts */
.alert-success {
    background-color: var(--dar-green-soft);
    color: var(--dar-green-dark);
}
.alert-danger {
    background-color: var(--dar-red-soft);
    color: var(--dar-red);
}

/* Links */
a { color: var(--dar-green); }
a:hover { color: var(--dar-green-dark); }

/* Bottom-sheet handles */
.offcanvas-bottom.app-offcanvas {
    background-color: var(--dar-surface);
}

/* Hide manual install buttons and promos when already running in standalone PWA mode */
@media (display-mode: standalone), (display-mode: minimal-ui), (display-mode: window-controls-overlay) {
    #dar-profile-install-btn,
    #dar-settings-install-section,
    #dar-pwa-banner,
    .dar-smart-banner--install {
        display: none !important;
    }
}

/* ==========================================================================
   Header Notification Center & Logo Modernization (Milestone 3)
   ========================================================================== */
.app-header-logo-link {
    text-decoration: none;
    line-height: 1;
}

.app-header-logo {
    max-height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.app-header-logo:hover {
    transform: scale(1.04);
}

.dar-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dar-notification-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50rem;
    background-color: var(--dar-red, #dc2626) !important;
    color: #ffffff !important;
    border: 2px solid var(--dar-surface, #ffffff);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    z-index: 5;
    pointer-events: none;
}

.dar-notification-badge--dot {
    top: -3px !important;
    inset-inline-end: -3px !important;
    min-width: 9px !important;
    width: 9px !important;
    height: 9px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--dar-surface, #ffffff) !important;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8) !important;
}

[data-theme="dark"] .dar-notification-badge,
[data-bs-theme="dark"] .dar-notification-badge {
    border-color: var(--dar-border) !important;
}

.dar-notif-item {
    transition: background-color 0.15s ease;
}

.dar-notif-item:hover {
    background-color: var(--dar-surface-muted, rgba(0, 0, 0, 0.03)) !important;
}

.dar-notif-item--unread {
    border-inline-start: 3px solid var(--dar-green, #1a8a57);
}

.dar-notif-item--read {
    opacity: 0.75;
}

/* ==========================================================================
   DAR Smart Action Banner — Emerald Pro Edition
   ========================================================================== */
.dar-smart-banner {
    position: fixed;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
    max-width: 520px;
    margin: 0 auto;
    z-index: 1040;
    pointer-events: auto;
    animation: darSmartBannerSpringUp 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@media (min-width: 768px) {
    .dar-smart-banner {
        bottom: 24px;
        left: auto;
        right: 24px;
        max-width: 420px;
    }
    [dir="rtl"] .dar-smart-banner {
        right: auto;
        left: 24px;
    }
}

@keyframes darSmartBannerSpringUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 1. Card Surface & Ambient Breathing Glow */
.dar-smart-banner-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 12px 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f4fbf7 100%);
    border: 1.5px solid rgba(26, 138, 87, 0.35);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 0 0 1.5px rgba(26, 138, 87, 0.25);
    transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
    .dar-smart-banner-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

[data-theme="dark"] .dar-smart-banner-card {
    background: linear-gradient(145deg, var(--dar-surface) 0%, var(--dar-surface-muted) 100%);
    border-color: rgba(62, 207, 142, 0.45);
    box-shadow: 0 12px 32px rgba(3, 10, 13, 0.6), 0 0 0 1.5px rgba(62, 207, 142, 0.35);
}

@keyframes darEmeraldGlowPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 0 0 1.5px rgba(26, 138, 87, 0.25);
    }
    50% {
        box-shadow: 0 16px 42px rgba(26, 138, 87, 0.28), 0 0 0 3px rgba(26, 138, 87, 0.55);
    }
}

@keyframes darDarkGlowPulse {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(52, 211, 153, 0.35);
    }
    50% {
        box-shadow: 0 16px 46px rgba(52, 211, 153, 0.25), 0 0 0 3px rgba(52, 211, 153, 0.7);
    }
}

/* 2. Close Button */
.dar-smart-banner-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.dar-smart-banner-close::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
}

@media (pointer: coarse), (max-width: 768px) {
    .app-offcanvas .offcanvas-header .btn-close,
    .app-offcanvas .btn-close,
    .dar-btn-close,
    .dar-smart-banner-close {
        min-width: 44px;
        min-height: 44px;
    }
}

[dir="rtl"] .dar-smart-banner-close {
    right: auto;
    left: -8px;
}

[data-theme="dark"] .dar-smart-banner-close {
    background: var(--dar-surface-hover);
    border-color: var(--dar-border-strong);
    color: var(--dar-text-muted);
    box-shadow: 0 2px 8px rgba(3, 10, 13, 0.4);
}

.dar-smart-banner-close:hover {
    transform: scale(1.15);
    background: #f1f5f9;
    color: #0f1712;
}

[data-theme="dark"] .dar-smart-banner-close:hover {
    background: var(--dar-border);
    color: #ffffff;
}

/* 3. Icon Container with Gradient & Radar Ripple */
.dar-smart-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    min-width: 0;
}

.dar-smart-banner-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.dar-smart-banner-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    border: 2px solid rgba(16, 185, 129, 0.5);
    animation: darRadarRipple 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    pointer-events: none;
}

@keyframes darRadarRipple {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    70%, 100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* 4. Text & Typography */
.dar-smart-banner-text {
    min-width: 0;
    flex-grow: 1;
}

.dar-smart-banner-title {
    font-weight: 700;
    font-size: 0.90rem;
    color: #0f1712;
    margin-bottom: 2px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .dar-smart-banner-title {
    color: var(--dar-text);
}

.dar-smart-banner-desc {
    font-size: 0.77rem;
    color: #475569;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .dar-smart-banner-desc {
    color: var(--dar-text-muted);
}

/* 5. Action Button with Shimmer Sweep */
.dar-smart-banner-action {
    flex-shrink: 0;
}

.dar-smart-banner-btn {
    position: relative;
    overflow: hidden;
    border-radius: 14px !important;
    padding: 7px 16px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.dar-smart-banner-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.dar-smart-banner-btn:active {
    transform: scale(0.97);
}

.dar-smart-banner-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: darButtonShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes darButtonShimmer {
    0%, 75% {
        left: -60%;
    }
    100% {
        left: 140%;
    }
}

/* ---------------- Option 1: Notification Promo — Royal Indigo Theme ---------------- */
.dar-smart-banner--notification .dar-smart-banner-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 0 1.5px rgba(99, 102, 241, 0.25);
    animation: darIndigoGlowPulse 3s ease-in-out infinite;
}

[data-theme="dark"] .dar-smart-banner--notification .dar-smart-banner-card {
    background: linear-gradient(145deg, #1c1a3a 0%, #101026 100%);
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 14px 40px rgba(3, 10, 13, 0.6), 0 0 0 1.5px rgba(129, 140, 248, 0.35);
    animation: darDarkIndigoGlowPulse 3s ease-in-out infinite;
}

@keyframes darIndigoGlowPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 0 0 1.5px rgba(99, 102, 241, 0.25);
    }
    50% {
        box-shadow: 0 16px 42px rgba(99, 102, 241, 0.28), 0 0 0 3px rgba(99, 102, 241, 0.60);
    }
}

@keyframes darDarkIndigoGlowPulse {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(129, 140, 248, 0.35);
    }
    50% {
        box-shadow: 0 16px 46px rgba(129, 140, 248, 0.25), 0 0 0 3px rgba(129, 140, 248, 0.75);
    }
}

/* Notification Circular Icon & Bell Chime Wobble */
.dar-smart-banner--notification .dar-smart-banner-icon {
    border-radius: 50% !important;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

.dar-smart-banner--notification .dar-smart-banner-icon::after {
    border-radius: 50% !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.dar-smart-banner--notification .dar-smart-banner-icon i {
    display: inline-block;
    animation: darBellChime 4.5s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes darBellChime {
    0%, 70%, 100% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(14deg);
    }
    80% {
        transform: rotate(-14deg);
    }
    85% {
        transform: rotate(8deg);
    }
    90% {
        transform: rotate(-8deg);
    }
    95% {
        transform: rotate(0deg);
    }
}

/* Red Notification Pip / Unread Dot */
.dar-notif-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

[data-theme="dark"] .dar-notif-dot {
    border-color: #1c1a3a;
}

/* Notification Action Button — Royal Indigo */
.dar-smart-banner--notification .dar-smart-banner-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}

.dar-smart-banner--notification .dar-smart-banner-btn:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
}

