/* ============================================================
   JT Notification Center — v1.3
   announcements.jtsmmpanel.com
   ============================================================ */

:root {
    
    
    
  --jt-nc-primary:        #4F46E5;
  --jt-nc-primary-dark:   #4338CA;
  --jt-nc-accent:         #EF4444;
  --jt-nc-bg:             #FFFFFF;
  --jt-nc-surface:        #F9FAFB;
  --jt-nc-border:         #E5E7EB;
  --jt-nc-text-primary:   #111827;
  --jt-nc-text-secondary: #6B7280;
  --jt-nc-text-muted:     #9CA3AF;
  --jt-nc-shadow:         0 20px 60px rgba(0,0,0,0.15);
  --jt-nc-radius:         16px;
  --jt-nc-radius-sm:      8px;
  --jt-nc-bell-size:      52px;
  --jt-nc-panel-width:    400px;
  --jt-nc-panel-max-h:    600px;
  --jt-nc-z:              99999;
  --jt-nc-ease:           0.28s cubic-bezier(0.4,0,0.2,1);
}




body.nightmode{

  --jt-nc-bg:#1f2937;
  --jt-nc-surface:#111827;
  --jt-nc-border:#374151;

  --jt-nc-text-primary:#f9fafb;
  --jt-nc-text-secondary:#d1d5db;
  --jt-nc-text-muted:#9ca3af;

  --jt-nc-shadow:0 20px 60px rgba(0,0,0,.45);

}
    






/* ── Dark mode (manual) ── 
[data-jt-nc-theme="dark"] {
  --jt-nc-bg:             #1F2937;
  --jt-nc-surface:        #111827;
  --jt-nc-border:         #374151;
  --jt-nc-text-primary:   #F9FAFB;
  --jt-nc-text-secondary: #D1D5DB;
  --jt-nc-text-muted:     #6B7280;
  --jt-nc-shadow:         0 20px 60px rgba(0,0,0,0.45);
}

 ── Dark mode (system) ── 
@media (prefers-color-scheme: dark) {
  :root:not([data-jt-nc-theme="light"]) {
    --jt-nc-bg:             #1F2937;
    --jt-nc-surface:        #111827;
    --jt-nc-border:         #374151;
    --jt-nc-text-primary:   #F9FAFB;
    --jt-nc-text-secondary: #D1D5DB;
    --jt-nc-text-muted:     #6B7280;
    --jt-nc-shadow:         0 20px 60px rgba(0,0,0,0.45);
  }
}

*/

/* ============================================================
   BELL BUTTON
   ============================================================ */

#jt-nc-bell-btn {
  position: fixed;
  bottom: 30px;
  left: 20px;
  right:auto;
  width: var(--jt-nc-bell-size);
  height: var(--jt-nc-bell-size);
  border-radius: 50%;
  background: var(--jt-nc-primary);
  border: none;
  cursor: pointer;
  z-index: var(--jt-nc-z);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(79,70,229,0.45);
  transition: transform var(--jt-nc-ease), box-shadow var(--jt-nc-ease);
  outline: none;
}

#jt-nc-bell-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(79,70,229,0.55);
}

#jt-nc-bell-btn:active { transform: scale(0.95); }

#jt-nc-bell-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  pointer-events: none;
}

/* ── Unread badge ── */
#jt-nc-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--jt-nc-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
  animation: jt-nc-badge-pop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

#jt-nc-badge.jt-nc-hidden { display: none; }

@keyframes jt-nc-badge-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── Bell ring ── */
@keyframes jt-nc-bell-ring {
  0%,100% { transform: rotate(0); }
  10%  { transform: rotate(16deg); }
  20%  { transform: rotate(-13deg); }
  30%  { transform: rotate(11deg); }
  40%  { transform: rotate(-9deg); }
  50%  { transform: rotate(7deg); }
  60%  { transform: rotate(-5deg); }
  70%  { transform: rotate(3deg); }
  80%  { transform: rotate(-1deg); }
}

#jt-nc-bell-btn.jt-nc-ringing svg {
  animation: jt-nc-bell-ring 0.85s ease-in-out;
}

/* ============================================================
   OVERLAY
   ============================================================ */

#jt-nc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: calc(var(--jt-nc-z) + 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--jt-nc-ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#jt-nc-overlay.jt-nc-visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   PANEL
   ============================================================ */

#jt-nc-panel {
  position: fixed;
  bottom: 90px;
  left:24px;
right:auto;
  width: var(--jt-nc-panel-width);
  max-height: var(--jt-nc-panel-max-h);
  background: var(--jt-nc-bg);
  border-radius: var(--jt-nc-radius);
  box-shadow: var(--jt-nc-shadow);
  z-index: calc(var(--jt-nc-z) + 2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity var(--jt-nc-ease), transform var(--jt-nc-ease);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#jt-nc-panel.jt-nc-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Scrollbar ── */
.jt-nc-body, .jt-nc-detail-body {
  scrollbar-width: thin;
  scrollbar-color: var(--jt-nc-border) transparent;
}
.jt-nc-body::-webkit-scrollbar,
.jt-nc-detail-body::-webkit-scrollbar { width: 4px; }
.jt-nc-body::-webkit-scrollbar-track,
.jt-nc-detail-body::-webkit-scrollbar-track { background: transparent; }
.jt-nc-body::-webkit-scrollbar-thumb,
.jt-nc-detail-body::-webkit-scrollbar-thumb {
  background: var(--jt-nc-border);
  border-radius: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */

.jt-nc-header {
  display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px;

    background:linear-gradient(135deg,#6d28d9,#8b5cf6,#ec4899);

    color:#fff;
}

.jt-nc-header-left {
  display:flex;
    align-items:center;

    gap:16px;
}

.jt-nc-header-logo {
  width:52px;

    height:52px;

    border-radius:16px;

    background:rgba(255,255,255,.15);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    backdrop-filter:blur(10px);

}

.jt-nc-header-logo svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.jt-nc-header-text { display: flex; flex-direction: column; gap: 1px; }

.jt-nc-header-title {
  font-size:20px;

    font-weight:700;

    margin:0;
}

.jt-nc-header-subtitle {
  margin-top:4px;

    font-size:13px;

    opacity:.9;

}

.jt-nc-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jt-nc-btn-icon {
  width:40px;

    height:40px;

    border:none;

    border-radius:12px;

    background:rgba(255,255,255,.12);

    color:#fff;

    cursor:pointer;

    transition:.25s;

}

.jt-nc-btn-icon:hover {
   background:rgba(255,255,255,.22);

    transform:rotate(90deg);
}

.jt-nc-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================
   BODY
   ============================================================ */

.jt-nc-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */

.jt-nc-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--jt-nc-border);
  flex-shrink: 0;
  background: var(--jt-nc-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jt-nc-footer-brand {
  font-size: 11px;
  color: var(--jt-nc-text-muted);
}

.jt-nc-footer-brand a {
  color: var(--jt-nc-primary);
  text-decoration: none;
  font-weight: 600;
}

.jt-nc-footer-brand a:hover { text-decoration: underline; }

.jt-nc-mark-all-btn {
  font-size: 12px;
  color: var(--jt-nc-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--jt-nc-radius-sm);
  font-weight: 600;
  font-family: inherit;
  transition: background var(--jt-nc-ease);
  outline: none;
  white-space: nowrap;
}

.jt-nc-mark-all-btn:hover { background: var(--jt-nc-surface); }

/* ============================================================
   ANNOUNCEMENT LIST
   ============================================================ */

.jt-nc-list { padding: 6px 0; }

.jt-nc-item{

    position:relative;

    display:flex;

    align-items:flex-start;

    gap:14px;

    padding:18px;

    margin:12px;

    border-radius:18px;

    background:var(--jt-nc-bg);

    border:1px solid var(--jt-nc-border);

    transition:.25s;

    cursor:pointer;

}

.jt-nc-item:last-child { border-bottom: none; }
.jt-nc-item:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(124,58,237,.12);

    border-color:#7c3aed22;

}

.jt-nc-item.jt-nc-unread{

    border-left:4px solid #7c3aed;

    background:var(--jt-nc-surface);

}

.jt-nc-item.jt-nc-unread:hover {
  background: rgba(79,70,229,0.09);
}

/* ── Unread dot ── */
.jt-nc-unread-dot {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jt-nc-primary);
  flex-shrink: 0;
}

/* ── Thumbnails ── */
.jt-nc-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--jt-nc-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--jt-nc-surface);
}

.jt-nc-item-thumb-placeholder {
  width: 46px;
  height: 46px;
  border-radius: var(--jt-nc-radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--jt-nc-primary) 0%, var(--jt-nc-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jt-nc-item-thumb-placeholder svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.85);
}

/* ── Text ── */
.jt-nc-item-content {
  flex: 1;
  min-width: 0;
}

.jt-nc-item-title{

    font-size:15px;

    font-weight:700;

    color:var(--jt-nc-text-primary);

    line-height:1.45;

    margin:0 0 8px;

}

.jt-nc-item-excerpt{

    font-size:13px;

    line-height:1.7;

    color:var(--jt-nc-text-secondary);

    margin-top:8px;

    display:-webkit-box;

    -webkit-line-clamp:4;

    -webkit-box-orient:vertical;

    overflow:hidden;

    white-space:normal;

}

.jt-nc-item-date{

    display:inline-block;

    margin-top:12px;

    font-size:12px;

    font-weight:600;

    color:#8b5cf6;

}

.jt-nc-item-arrow {
  width: 16px;
  height: 16px;
  fill: var(--jt-nc-text-muted);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.jt-nc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.jt-nc-empty svg {
  width: 56px;
  height: 56px;
  fill: var(--jt-nc-border);
  margin-bottom: 16px;
}

.jt-nc-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--jt-nc-text-primary);
  margin: 0 0 6px;
}

.jt-nc-empty-text {
  font-size: 13px;
  color: var(--jt-nc-text-muted);
  margin: 0;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */

.jt-nc-loading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 6px;
}

.jt-nc-skeleton-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--jt-nc-border);
}

.jt-nc-skeleton-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--jt-nc-radius-sm);
  background: var(--jt-nc-surface);
  animation: jt-nc-shimmer 1.6s infinite;
  flex-shrink: 0;
}

.jt-nc-skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.jt-nc-skeleton-line {
  height: 11px;
  border-radius: 6px;
  background: var(--jt-nc-surface);
  animation: jt-nc-shimmer 1.6s infinite;
}

.jt-nc-skeleton-line.jt-nc-w-full  { width: 100%; }
.jt-nc-skeleton-line.jt-nc-w-3q    { width: 75%; }
.jt-nc-skeleton-line.jt-nc-w-half  { width: 50%; }
.jt-nc-skeleton-line.jt-nc-w-qtr   { width: 25%; }

@keyframes jt-nc-shimmer {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 0.4; }
}

/* ============================================================
   ERROR STATE
   ============================================================ */

.jt-nc-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.jt-nc-error svg {
  width: 48px;
  height: 48px;
  fill: var(--jt-nc-accent);
  margin-bottom: 14px;
}

.jt-nc-error-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--jt-nc-text-primary);
  margin: 0 0 16px;
}

.jt-nc-error-retry {
  padding: 8px 20px;
  background: var(--jt-nc-primary);
  color: #fff;
  border: none;
  border-radius: var(--jt-nc-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--jt-nc-ease);
  outline: none;
}

.jt-nc-error-retry:hover { background: var(--jt-nc-primary-dark); }

/* ============================================================
   DETAIL VIEW
   ============================================================ */

.jt-nc-detail-sub-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--jt-nc-border);
  flex-shrink: 0;
  background: var(--jt-nc-bg);
}

.jt-nc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--jt-nc-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--jt-nc-radius-sm);
  transition: background var(--jt-nc-ease);
  font-family: inherit;
  outline: none;
}

.jt-nc-back-btn:hover { background: var(--jt-nc-surface); }

.jt-nc-back-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.jt-nc-detail-image{

display:block;

width:100%;

max-width:520px;

aspect-ratio:1/1;

margin:0 auto 24px;

object-fit:contain;

background:var(--jt-nc-surface);

border:1px solid var(--jt-nc-border);

border-radius:18px;

padding:16px;

box-sizing:border-box;

}

.jt-nc-detail-content { padding: 20px; }

.jt-nc-detail-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--jt-nc-text-primary);
  margin: 0 0 8px;
  line-height: 1.4;
}

.jt-nc-detail-meta {
  font-size: 12px;
  color: var(--jt-nc-text-muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.jt-nc-detail-meta svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

.jt-nc-detail-body-text {
  font-size: 14px;
  color: var(--jt-nc-text-secondary);
  line-height: 1.75;
}

.jt-nc-detail-body-text p  { margin:0 0 18px;

    line-height:1.8;

    color:var(--jt-nc-text-secondary);

    font-size:15px; }
    
.jt-nc-detail-body-text br{

    line-height:2;

}
.jt-nc-detail-body-text p:last-child { margin-bottom: 0; }

.jt-nc-detail-body-text a {
  color: var(--jt-nc-primary);
  text-decoration: none;
}

.jt-nc-detail-body-text a:hover { text-decoration: underline; }

.jt-nc-detail-body-text img {
  max-width: 100%;
  border-radius: var(--jt-nc-radius-sm);
  margin: 8px 0;
  display: block;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 480px) {
  #jt-nc-panel {
    width: 100vw;
    max-height: 82vh;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: var(--jt-nc-radius) var(--jt-nc-radius) 0 0;
    transform: translateY(100%);
  }

  #jt-nc-panel.jt-nc-open {
    transform: translateY(0);
    opacity: 1;
  }

  #jt-nc-bell-btn {
    bottom: 16px;
    right: 16px;
  }
}


