/* NOTIFICATIONS */
.notif-wrapper {
  position: relative;
  cursor: pointer;
}

.notif-bell {
  font-size: 20px;
  color: #64748b;
  transition: all .3s;
}

.notif-wrapper:hover .notif-bell {
  color: var(--teal);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.notif-dropdown {
  position: fixed;
  top: 70px;
  left: 18px;
  right: auto;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  display: none;
  z-index: 1000;
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

@media (max-width: 768px) {
  .notif-dropdown {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  }
}

.notif-item {
  padding: 12px 15px;
  border-bottom: 1px solid #f8fafc;
  display: flex;
  gap: 12px;
  transition: all .2s;
}

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

.notif-item.unread {
  background: #f0f9ff;
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon.mention { background: #e0f2fe; color: #0369a1; }
.notif-icon.status { background: #dcfce7; color: #166534; }

.notif-body {
  flex: 1;
}

.notif-msg {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.notif-time {
  font-size: 9px;
  color: #94a3b8;
}

/* MODAL SYSTEM */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  cursor: pointer;
  font-size: 24px;
  transition: opacity 0.2s;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

/* TICKET CHAT AREA */
.ticket-chat-area {
  max-height: 380px;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Bubbles */
.t-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.t-bubble.me {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--teal), #00897b);
  color: white;
  border-bottom-right-radius: 2px;
  text-align: right;
}

.t-bubble.other {
  align-self: flex-end;
  background: #fff;
  color: #1e293b;
  border-bottom-left-radius: 2px;
  border: 1px solid #e2e8f0;
  text-align: right;
}

.t-bubble.system {
  align-self: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
}

.t-bubble.mention {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
}

/* Mentions */
.t-mention-wrap {
  position: relative;
}

.t-mention-dd {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  z-index: 10;
  overflow: hidden;
}

.t-mention-dd.open {
  display: block;
}

.t-mention-item {
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: right;
  color: #475569;
}

.t-mention-item:hover {
  background: #f1f5f9;
  color: var(--teal);
}
