/* ===================== NOTIFICATION SYSTEM REDESIGNED ===================== */
  .notif-panel {
    position: fixed;
    top: 75px;
    left: 15px;
    width: 360px;
    max-width: calc(100vw - 30px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    display: none;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    font-family: 'Cairo', sans-serif;
  }

  .notif-panel.open {
    display: block;
    animation: fadeInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .notif-panel-header {
    padding: 20px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .notif-panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
  }

  .notif-options {
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
  }

  .notif-options:hover {
    background: #f8fafc;
    color: #64748b;
  }

  /* TABS */
  .notif-tabs {
    display: flex;
    padding: 0 20px 15px;
    gap: 20px;
    border-bottom: 1px solid #f1f5f9;
  }

  .notif-tab {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    transition: all 0.2s;
  }

  .notif-tab.active {
    color: var(--remind-blue);
  }

  .notif-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--remind-blue);
    border-radius: 3px;
  }

  .notif-tab:hover:not(.active) {
    color: #334155;
  }

  /* LIST */
  .notif-list {
    max-height: 450px;
    overflow-y: auto;
  }

  .notif-group-label {
    padding: 15px 20px 8px;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
  }

  .notif-item {
    padding: 12px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }

  .notif-item:hover {
    background: #f8fafc;
  }

  .notif-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .notif-msg {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    font-weight: 600;
  }

  .notif-msg b {
    color: #0f172a;
    font-weight: 800;
  }

  .notif-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
  }

  .notif-status-dot {
    width: 8px;
    height: 8px;
    background: var(--remind-blue);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .notif-item.unread .notif-status-dot {
    opacity: 1;
  }

  .notif-empty {
    padding: 50px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
  }

  /* SCROLLBAR */
  .notif-list::-webkit-scrollbar { width: 4px; }
  .notif-list::-webkit-scrollbar-track { background: transparent; }
  .notif-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

  /* Homework notification styling */
  .notif-item.notif-item-homework {
    background: rgba(124, 58, 237, 0.03); /* Subtle pastel purple */
    border-right: 4px solid #7c3aed; /* Distinct purple border on the right (RTL indicator) */
    border-bottom: 1px solid #f1f5f9;
  }

  .notif-item.notif-item-homework:hover {
    background: rgba(124, 58, 237, 0.06);
  }

  .notif-hw-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 4px;
  }

  .notif-hw-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
  }

  .notif-hw-title {
    font-size: 13px;
    color: #1e293b;
    font-weight: 700;
  }

  .notif-hw-title b {
    color: #7c3aed;
    font-weight: 800;
  }

  .notif-hw-therapist {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
  }

  .notif-hw-text {
    font-size: 12px;
    color: #475569;
    background: rgba(15, 23, 42, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 4px;
    border: 1px dashed rgba(124, 58, 237, 0.2);
    line-height: 1.4;
    white-space: pre-line;
    font-weight: 600;
  }

  .notif-hw-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .notif-hw-btn {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    outline: none;
  }

  .notif-hw-btn.wa {
    background: #25d366; /* WhatsApp official green */
    color: white;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
  }

  .notif-hw-btn.wa:hover {
    background: #1ebd59;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  }

  .notif-hw-btn.done {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
  }

  .notif-hw-btn.done:hover {
    background: #e2e8f0;
    color: #1e293b;
  }

  /* Ticket notification styling */
  .notif-item.notif-item-ticket {
    background: rgba(14, 165, 233, 0.03); /* Subtle pastel blue */
    border-right: 4px solid #0ea5e9; /* Distinct sky blue border on the right */
    border-bottom: 1px solid #f1f5f9;
  }

  .notif-item.notif-item-ticket:hover {
    background: rgba(14, 165, 233, 0.06);
  }

  .notif-ticket-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 4px;
  }

  .notif-ticket-icon.chat {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
  }

  .notif-ticket-icon.register {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
  }

  .notif-ticket-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
  }

  .notif-ticket-title {
    font-size: 13px;
    color: #1e293b;
    font-weight: 700;
  }

  .notif-ticket-text {
    font-size: 12px;
    color: #475569;
    background: rgba(15, 23, 42, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 4px;
    border: 1px dashed rgba(14, 165, 233, 0.2);
    line-height: 1.4;
    font-weight: 600;
  }