/* ============================================
   GalvaTel — styles.css
   Koyu Tema | Mobil Öncelikli | v1.0
   ============================================ */

/* ---- CSS Değişkenleri ---- */
:root {
  --bg-primary:    #0f0f0f;
  --bg-secondary:  #1a1a1a;
  --bg-card:       #242424;
  --bg-hover:      #2e2e2e;
  --bg-input:      #1e1e1e;
  --accent:        #f97316;
  --accent-hover:  #ea6a0a;
  --accent-dim:    rgba(249,115,22,0.15);
  --danger:        #ef4444;
  --danger-hover:  #dc2626;
  --danger-dim:    rgba(239,68,68,0.15);
  --warning:       #f59e0b;
  --success:       #22c55e;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(249,115,22,0.4);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.7);
  --transition:    all 0.2s ease;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Rol renkleri */
  --role-vardiya_amiri:   #f97316;
  --role-asit_operatoru:  #ef4444;
  --role-ocak_operatoru:  #f59e0b;
  --role-siyah_sorumlusu: #ffffff;
  --role-beyaz_sorumlusu: #000000;
}

/* ---- Temel Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   YARDIMCI SINIFLAR
   ============================================ */
.hidden  { display: none !important; }
.active  { display: flex !important; }

.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
}

/* ============================================
   GİRİŞ EKRANI
   ============================================ */
#login-screen {
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 16px;
  overflow-y: auto;
}

.login-bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(249,115,22,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(249,115,22,0.3);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(249,115,22,0.06);
  animation: cardIn 0.5s cubic-bezier(.16,1,.3,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.logo-icon {
  display: inline-block;
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(249,115,22,0.6));
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(249,115,22,0.5)); }
  50%       { filter: drop-shadow(0 0 28px rgba(249,115,22,0.9)); }
}

.logo-text {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 8px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  min-height: 48px;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent);
  background: rgba(249,115,22,0.05);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.input-wrapper {
  position: relative;
}

.input-wrapper .form-input {
  padding-right: 48px;
}

.toggle-pw-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.toggle-pw-btn:hover { color: var(--text-primary); }

/* Error Banner */
.error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--danger-dim);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 13.5px;
}

/* Butonlar */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f97316, #ea6a0a);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 6px 28px rgba(249,115,22,0.5);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(249,115,22,0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(239,68,68,0.3);
  letter-spacing: 0.3px;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(239,68,68,0.45);
}

.btn-full { width: 100%; }

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  transition: var(--transition);
}
.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   ANA EKRAN
   ============================================ */
#main-screen {
  display: none;
  flex-direction: column;
  background: var(--bg-primary);
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
  min-height: 60px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.topbar-logo {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(249,115,22,0.5));
}

.topbar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.topbar-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Connection dot */
.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(34,197,94,0.8);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,0.6); }
  50%       { box-shadow: 0 0 10px rgba(34,197,94,1); }
}

.connection-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 6px rgba(239,68,68,0.8);
  animation: none;
}

/* ---- Rol Badge ---- */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid currentColor;
  opacity: 0.9;
}

.role-badge.role-vardiya_amiri   { color: var(--role-vardiya_amiri);   background: rgba(249,115,22,0.12); }
.role-badge.role-asit_operatoru  { color: var(--role-asit_operatoru);  background: rgba(239,68,68,0.12); }
.role-badge.role-ocak_operatoru  { color: var(--role-ocak_operatoru);  background: rgba(245,158,11,0.12); }
.role-badge.role-siyah_sorumlusu { color: #ffffff; background: #000000; border-color: #444; }
.role-badge.role-beyaz_sorumlusu { color: #000000; background: #ffffff; border-color: #ccc; }

/* App Body */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ============================================
   SIDEBAR / KANAL LİSTESİ
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 220px;
  min-width: 220px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
  z-index: 50;
}

.sidebar-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.channel-list {
  display: flex;
  flex-direction: column;
  padding: 8px 8px;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  min-height: 42px;
  border: 1px solid transparent;
  list-style: none;
  position: relative;
}

.channel-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.channel-item.active {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
  font-weight: 600;
}

.channel-item .channel-hash {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.6;
  flex-shrink: 0;
}

.channel-item.active .channel-hash { opacity: 1; }

.channel-item .channel-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

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

/* ============================================
   CHAT PANELİ
   ============================================ */
.chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 52px;
  min-height: 52px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-toggle { display: none; }

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.chat-channel-icon {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.chat-channel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-right { flex-shrink: 0; }

.online-indicator {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Messages */
.messages-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 16px 0;
}

.messages-container::-webkit-scrollbar { width: 4px; }
.messages-container::-webkit-scrollbar-track { background: transparent; }
.messages-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.messages-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state-icon { font-size: 40px; opacity: 0.4; }
.empty-state-text { font-size: 14px; }

/* Message Item */
.message-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  animation: msgIn 0.25s ease both;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message-item:hover { background: rgba(255,255,255,0.03); }

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-sender {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.message-role {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.message-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.message-text {
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.55;
  word-break: break-word;
  padding-left: 0;
}

/* Alarm mesajı */
.message-item.alarm-msg {
  background: var(--danger-dim);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md);
  margin: 4px 0;
  animation: alarmIn 0.4s cubic-bezier(.16,1,.3,1) both;
}

@keyframes alarmIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.message-item.alarm-msg .message-text {
  color: #fca5a5;
  font-weight: 600;
}

/* Onay (Aldım) Alanı */
.ack-area {
  margin-top: 8px;
  width: 100%;
}
.ack-btn {
  width: 100%;
  background: var(--role-vardiya_amiri); /* Turuncu */
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.ack-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}
.ack-btn.acked {
  background: rgba(34, 197, 94, 0.15); /* Yarı saydam yeşil */
  color: #4ade80;
  cursor: not-allowed;
  border: 1px solid rgba(34, 197, 94, 0.3);
  transform: none;
}

/* Tarih çizgisi */
.date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
  margin: 0 12px;
}

.date-divider::before,
.date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.date-divider-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---- Mesaj Gönderme Alanı ---- */
.message-input-area {
  padding: 12px 12px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.message-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 16px;
  transition: var(--transition);
}

.message-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.message-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}

.message-input::placeholder { color: var(--text-muted); }

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, #f97316, #ea6a0a);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(249,115,22,0.3);
  flex-shrink: 0;
}

.btn-send:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 4px 18px rgba(249,115,22,0.5);
  transform: scale(1.08);
}

.btn-send:active { transform: scale(0.96); }

/* ============================================
   ALARM FAB
   ============================================ */
.alarm-fab {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(239,68,68,0.5), 0 2px 8px rgba(0,0,0,0.4);
  transition: var(--transition);
  z-index: 200;
}

.alarm-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(239,68,68,0.7);
}

.alarm-fab:active { transform: scale(0.95); }

.alarm-fab-icon {
  font-size: 28px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.alarm-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,0.6);
  animation: fabPulse 2s ease-out infinite;
}

@keyframes fabPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  padding: 0;
  animation: overlayIn 0.2s ease both;
  backdrop-filter: blur(4px);
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 24px 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: sheetUp 0.35s cubic-bezier(.16,1,.3,1) both;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.alarm-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.alarm-type-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.alarm-type-btn:hover {
  background: var(--danger-dim);
  border-color: rgba(239,68,68,0.4);
  color: #fca5a5;
}

.alarm-type-btn.selected {
  background: var(--danger-dim);
  border-color: var(--danger);
  color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.alarm-custom-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.alarm-textarea {
  resize: none;
  min-height: 70px;
}

/* ============================================
   MOBİL RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle { display: flex; }

  .alarm-fab {
    bottom: 96px;
    right: 16px;
  }

  .message-input-area { padding: 10px 10px; }

  .login-card {
    padding: 32px 20px 24px;
  }

  .logo-text { font-size: 30px; }
}

@media (min-width: 641px) {
  .modal-overlay {
    align-items: center;
    padding: 16px;
  }
  .modal-card {
    border-radius: var(--radius-xl);
    max-width: 440px;
  }
}

/* ============================================
   SCROLL & SEÇİM
   ============================================ */
::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   MANAGEMENT ACTIONS (Supervisor Only)
   ============================================ */
.management-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 12px;
}

.management-actions.hidden {
  display: none;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  font-weight: 600;
}

/* Mesaj Seçimi */
.message-item {
  position: relative;
  transition: background-color 0.2s, border-left 0.2s;
  border-left: 3px solid transparent;
}

.message-item.selected {
  background-color: rgba(249, 115, 22, 0.08) !important;
  border-left-color: var(--accent);
}

.msg-selection-area {
  position: absolute;
  left: 12px;
  top: 16px;
  display: none;
  z-index: 5;
}

.is-supervisor .msg-selection-area {
  display: block;
}

.msg-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

/* Checkbox varken içeriği kaydır */
.is-supervisor .message-item {
  padding-left: 44px;
}

.is-supervisor .date-divider {
  padding-left: 0;
}
