/* public/assets/ui/framework/23_notifications.css
   KomodUI Notifications v0.1
   Header counters + small notification UI bits.
   Bridges existing .notif-badge + header icons.
*/

/* =========================
   Header notification button
   ========================= */

.header-notifications {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--color-text, #111827);
  text-decoration: none;
  flex: 0 0 auto;
}

.header-notifications:hover {
  background: rgba(0, 0, 0, .04);
}

.header-notifications:active {
  background: rgba(0, 0, 0, .06);
}

/* Icon inside (tabler) */
.header-notifications .ti {
  font-size: 20px;
  line-height: 1;
}

/* =========================
   Badge counter (existing class)
   ========================= */

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;

  min-width: 18px;
  height: 18px;
  padding: 0 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: var(--color-danger, #EF4444);
  color: #fff;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  border: 2px solid var(--color-bg-white, #fff);
  box-shadow: 0 6px 14px rgba(17, 24, 39, .12);

  pointer-events: none;
}

/* When badge is used as flex (your JS sets display:flex) */
.notif-badge {
  display: inline-flex;
}

/* =========================
   Optional variants
   ========================= */

.notif-badge--info { background: #3B82F6; }
.notif-badge--success { background: #10B981; }
.notif-badge--warning { background: #F59E0B; }

/* =========================
   Notification list helpers (future-safe)
   ========================= */

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item {
  background: var(--color-bg-white, #fff);
  border: 1px solid var(--color-border, #E5E7EB);
  border-radius: var(--radius-lg, 16px);
  padding: 12px 14px;
  min-width: 0;
}

.notif-item--unread {
  border-left: 4px solid var(--color-primary, #2563EB);
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 576px) {
  .header-notifications {
    min-width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .header-notifications .ti {
    font-size: 19px;
  }

  .notif-badge {
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    font-size: 11px;
    padding: 0 5px;
  }
} 