/* ════════════════════════════════════════════════════════════════════════════
   NovaMeet — style.css
   Renk paleti: #263749 baz alınarak türetilmiştir
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Ana renk: #263749 → koyu çelik mavisi */
  --bg:       #0d1720;   /* En koyu — sayfa arka planı         */
  --surface:  #162333;   /* Kart, bar arka planları             */
  --surface2: #1d2f42;   /* Input, buton arka planları          */
  --surface3: #263749;   /* Hover, vurgulu yüzeyler (ANA RENK)  */
  --border:   #2f4a61;   /* Kenarlıklar                         */
  --text:     #dce9f5;   /* Birincil metin                      */
  --muted:    #6a8fa8;   /* İkincil / soluk metin               */
  --accent:   #3b9dd8;   /* Vurgu rengi — açık mavi             */
  --accent2:  #1e7ab5;   /* Koyu vurgu                          */
  --green:    #2ec990;   /* Konuşuyor / aktif göstergesi        */
  --red:      #e05555;   /* Hata / kapat / sessiz               */
  --gradient: linear-gradient(135deg, #3b9dd8, #1a6fa0);
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════════════════════════════════════════
   LOBBY
   ════════════════════════════════════════════════════════════════════════════ */
#lobby {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59,157,216,.09) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(26,111,160,.09) 0%, transparent 50%),
    var(--bg);
}

.lobby-inner {
  display: flex;
  gap: 64px;
  align-items: center;
  max-width: 960px;
  width: 100%;
  padding: 0 40px;
}

.lobby-left { flex: 1; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lobby-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.lobby-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lobby-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
.join-form { display: flex; flex-direction: column; gap: 10px; }

.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all .2s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,157,216,.14);
}

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

.btn-primary {
  background: var(--gradient);
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,157,216,.35);
}

.btn-secondary {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 24px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.btn-secondary:hover {
  background: var(--surface3);
  border-color: var(--accent);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.error-msg {
  color: var(--red);
  font-size: 13px;
  text-align: center;
  display: none;
}

/* ─── Lobby Preview Card ─────────────────────────────────────────────────── */
.lobby-right { width: 340px; flex-shrink: 0; }

.preview-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.preview-video {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.preview-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.preview-video .no-cam {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
}

.avatar-big {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  color: #fff;
}

.preview-ctrls {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-row { display: flex; gap: 10px; }

.ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all .2s;
}

.ctrl-btn:hover { background: var(--surface3); }

.ctrl-btn.off {
  background: rgba(224,85,85,.15);
  border-color: rgba(224,85,85,.4);
  color: var(--red);
}

.hint-text { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════════════
   MEETING ROOM
   ════════════════════════════════════════════════════════════════════════════ */
#room { display: none; flex-direction: column; height: 100vh; }

/* ─── Top Bar ────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.topbar-left,
.topbar-right { display: flex; align-items: center; gap: 12px; }

.meeting-code {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface2);
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
}

.meeting-code:hover { border-color: var(--accent); color: var(--text); }

.meeting-timer {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all .2s;
  position: relative;
}

.icon-btn:hover { background: var(--surface2); border-color: var(--accent); }

.icon-btn.active {
  background: rgba(59,157,216,.15);
  border-color: var(--accent);
  color: var(--accent);
}

.badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ─── Main Layout ────────────────────────────────────────────────────────── */
.room-main { flex: 1; display: flex; overflow: hidden; position: relative; }

.video-area {
  flex: 1;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ─── Video Grid ─────────────────────────────────────────────────────────── */
.video-grid { display: grid; gap: 8px; width: 100%; height: 100%; }

.video-grid[data-count="1"] { grid-template-columns: 1fr; }
.video-grid[data-count="2"] { grid-template-columns: 1fr 1fr; }
.video-grid[data-count="3"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.video-grid[data-count="3"] .video-tile:first-child { grid-column: span 2; }
.video-grid[data-count="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.video-grid[data-count="5"],
.video-grid[data-count="6"] { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* ─── Video Tile ─────────────────────────────────────────────────────────── */
.video-tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s;
  animation: tileIn .3s ease both;
}

@keyframes tileIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.video-tile.speaking {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(46,201,144,.2);
}

.video-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.video-tile.cam-off video { display: none; }

.tile-avatar-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}

.tile-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
  color: #fff;
  background: var(--gradient);
}

.tile-name-center { font-size: 14px; font-weight: 500; color: var(--muted); }

.tile-overlay {
  position: absolute;
  bottom: 10px; left: 10px;
  display: flex; align-items: center; gap: 6px;
}

.tile-label {
  background: rgba(13,23,32,.75);
  backdrop-filter: blur(8px);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
}

.tile-mute {
  background: rgba(224,85,85,.85);
  border-radius: 6px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* ─── PiP Self View ─────────────────────────────────────────────────────── */
.self-pip {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 200px;
  aspect-ratio: 16/9;
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  z-index: 10;
  transition: transform .2s;
}

.self-pip:hover { transform: scale(1.03); }
.self-pip.visible { display: flex; }

.self-pip video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.self-pip .pip-label {
  position: absolute;
  bottom: 6px; left: 8px;
  background: rgba(13,23,32,.75);
  backdrop-filter: blur(8px);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
}

.self-pip .pip-mute {
  position: absolute;
  bottom: 6px; right: 8px;
  font-size: 14px;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: 300px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: none;
  flex-direction: column;
}

.sidebar.open { display: flex; }

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.s-tab {
  flex: 1;
  padding: 13px 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.s-tab.active { color: var(--text); border-bottom-color: var(--accent); }

.sidebar-body { flex: 1; overflow-y: auto; }
.sidebar-body::-webkit-scrollbar { width: 3px; }
.sidebar-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

#participantsPane,
.chat-wrap { height: 100%; }

.chat-wrap { display: flex; flex-direction: column; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 14px;
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.chat-msg { animation: msgIn .25s ease; }

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

.msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.msg-author { font-size: 13px; font-weight: 600; }
.msg-time { font-size: 11px; color: var(--muted); }

.msg-text {
  font-size: 14px;
  color: #b8d0e8;
  line-height: 1.5;
  word-break: break-word;
}

.msg-text.mine {
  background: rgba(59,157,216,.12);
  border: 1px solid rgba(59,157,216,.22);
  border-radius: 10px;
  padding: 7px 11px;
}

.chat-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}

.chat-input {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  resize: none;
  transition: border-color .2s;
}

.chat-input:focus { border-color: var(--accent); }

.send-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--gradient);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  align-self: flex-end;
}

.send-btn:hover { transform: scale(1.05); }

/* ─── Participants List ───────────────────────────────────────────────────── */
.participant-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  transition: background .15s;
}

.participant-item:hover { background: var(--surface2); }

.p-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.p-info { flex: 1; }
.p-name { font-size: 14px; font-weight: 500; }
.p-status { font-size: 11px; color: var(--muted); }
.p-icons { display: flex; gap: 3px; font-size: 14px; }
.p-icon-off { opacity: .4; filter: grayscale(1); }

.section-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 14px 16px 6px;
}

/* ─── Bottom Bar ─────────────────────────────────────────────────────────── */
.bottombar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}

.bottom-side {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
}

.bottom-side.left  { left: 20px; }
.bottom-side.right { right: 20px; }

.bar-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  cursor: pointer;
}

.bar-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all .2s;
}

.bar-circle:hover { background: var(--surface3); border-color: var(--accent); }

.bar-circle.off {
  background: rgba(224,85,85,.15);
  border-color: var(--red);
  color: var(--red);
}

.bar-circle.on {
  background: rgba(59,157,216,.15);
  border-color: var(--accent);
}

.bar-lbl { font-size: 11px; color: var(--muted); }

.end-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  cursor: pointer;
}

.end-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all .2s;
}

.end-circle:hover { background: #c93d3d; transform: scale(1.05); }

/* ─── Notification ───────────────────────────────────────────────────────── */
.notif {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 13px;
  display: none;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  white-space: nowrap;
}

/* ─── Bekleme Odası Overlay ─────────────────────────────────────────────── */
.waiting-overlay {
  position: fixed; inset: 0;
  background: rgba(13,23,32,.95);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
}

.waiting-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}

.waiting-anim {
  font-size: 52px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.12); opacity: .75; }
}

.waiting-box h2 { margin:0; font-size:22px; }
.waiting-box p  { margin:0; font-size:14px; color:var(--muted); line-height:1.6; }

.waiting-name {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 15px; font-weight: 600;
}

.rejected-box { border-color: rgba(224,85,85,.4); }

/* ─── Kabul Kartları (host) ─────────────────────────────────────────────── */
.admit-queue {
  position: fixed;
  top: 72px; right: 16px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 800;
  max-width: 320px;
  width: calc(100vw - 32px);
}

.admit-card {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  animation: admitIn .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes admitIn  { from { opacity:0; transform: translateX(60px); } to { opacity:1; transform:none; } }
@keyframes admitOut { from { opacity:1; transform:none; } to { opacity:0; transform: translateX(60px); } }

.admit-info {
  display: flex; align-items: center; gap: 12px;
}

.admit-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.admit-name { font-size: 15px; font-weight: 600; }
.admit-sub  { font-size: 12px; color: var(--muted); }

.admit-btns { display: flex; gap: 8px; }

.admit-btn {
  flex: 1; padding: 9px;
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}

.admit-btn.accept {
  background: rgba(46,201,144,.15);
  border: 1.5px solid var(--green);
  color: var(--green);
}

.admit-btn.accept:hover { background: rgba(46,201,144,.28); }

.admit-btn.reject {
  background: rgba(224,85,85,.1);
  border: 1.5px solid var(--red);
  color: var(--red);
}

.admit-btn.reject:hover { background: rgba(224,85,85,.22); }

/* ─── Host kontrol butonları (katılımcı listesi) ─────────────────────────── */
.host-ctrl-btn {
  background: none; border: none;
  cursor: pointer; font-size: 14px;
  padding: 3px 5px; border-radius: 6px;
  opacity: .5; transition: all .15s;
  color: var(--text);
}

.host-ctrl-btn:hover { opacity: 1; background: var(--surface2); }
.host-ctrl-btn.kick:hover { color: var(--red); }

/* Host only — sadece host görür */
.host-only { display: none; }

.host-badge {
  background: var(--gradient);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ─── Filigran (Watermark) ───────────────────────────────────────────────── */
.watermark-layer {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none; /* tıklamayı engelleme */
  z-index: 50;
  overflow: hidden;
}

.watermark-text {
  position: absolute;
  color: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  user-select: none;
  -webkit-user-select: none;
  transition: top 1.5s ease, left 1.5s ease;
  transform: rotate(-8deg);
}

/* ─── Takvim Şifre Modal ─────────────────────────────────────────────────── */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,23,32,.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.cal-modal {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.cal-modal-icon {
  font-size: 40px;
  text-align: center;
}

.cal-modal-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.cal-modal-sub {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* ─── Lobby Tabs ─────────────────────────────────────────────────────────── */
.lobby-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: var(--surface2);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border);
}

.lobby-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.lobby-tab.active {
  background: var(--surface3);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.lobby-tab:hover:not(.active) { color: var(--text); }

/* ─── Calendar Sub-tabs ───────────────────────────────────────────────────── */
.cal-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.cal-subtab {
  padding: 9px 16px;
  border: none;
  background: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.cal-subtab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ─── Invite Card ─────────────────────────────────────────────────────────── */
.invite-card {
  background: var(--surface2);
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  animation: msgIn .3s ease;
}

.invite-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.invite-card-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.invite-link-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
}

/* ─── Meeting Cards (list) ────────────────────────────────────────────────── */
.meeting-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .2s;
}

.meeting-card:hover { border-color: var(--accent); }

.meeting-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.meeting-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.meeting-card-date {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.meeting-card-org {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.meeting-card-link {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 6px;
  padding: 5px 9px;
  word-break: break-all;
  margin-bottom: 4px;
}

/* ─── Invite Link Button (bottom bar) ────────────────────────────────────── */
.invite-link-btn {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.invite-link-btn:hover {
  background: var(--surface3);
  border-color: var(--accent);
  color: var(--accent);
}

.conn-status {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
  transition: all .3s;
}
.conn-connecting { color: var(--muted); }
.conn-connected  { color: var(--green); border-color: rgba(46,201,144,.3); background: rgba(46,201,144,.08); }
.conn-error      { color: var(--red);   border-color: rgba(224,85,85,.3);  background: rgba(224,85,85,.08); }

/* ─── Reaction Panel (kaldırıldı) ────────────────────────────────────────── */
#reactionPanel {
  position: fixed;
  bottom: 130px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  display: none;
  gap: 14px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}

.reaction-float {
  position: fixed;
  bottom: 90px;
  font-size: 36px;
  pointer-events: none;
  animation: floatUp 2s ease forwards;
  z-index: 300;
}

@keyframes floatUp {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-160px) scale(1.5); }
}

/* ─── Screen Share Spotlight ─────────────────────────────────────────────── */

/* video-area: padding ve gap sıfırlanır */
.video-area.spotlight-mode {
  padding: 0 !important;
}

.video-area.spotlight-mode .video-grid {
  gap: 0 !important;
}

.video-grid.spotlight {
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
}

/* Ekran tile'ı kenar boşluğu ve yuvarlak köşe olmadan tam kaplar */
.video-tile.screen-share {
  grid-column: 1 !important;
  grid-row: 1 !important;
  background: #000 !important;
  border-radius: 0 !important;
  border: none !important;
  width: 100% !important;
  height: 100% !important;
}

/* Video: contain → kırpma yok, tamamı görünür */
.video-tile.screen-share video {
  object-fit: contain !important;
  background: #000;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
}

.screen-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  z-index: 5;
}

.participants-strip {
  position: absolute;
  bottom: 16px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  max-height: calc(100% - 32px);
  overflow-y: auto;
}

.strip-tile {
  width: 168px;
  aspect-ratio: 16/9;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s;
}

.strip-tile.speaking { border-color: var(--green); box-shadow: 0 0 0 2px rgba(46,201,144,.25); }

.strip-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.strip-tile .strip-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}

.strip-tile .strip-label {
  position: absolute;
  bottom: 5px; left: 6px;
  background: rgba(13,23,32,.75);
  backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px; font-weight: 500;
}

.strip-tile .strip-mute {
  position: absolute;
  bottom: 5px; right: 6px;
  font-size: 12px;
}

/* ─── Connecting Overlay ─────────────────────────────────────────────────── */
.connecting {
  position: fixed; inset: 0;
  background: rgba(13,23,32,.85);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  z-index: 500;
  backdrop-filter: blur(8px);
}

.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ─── Not Alma Paneli ────────────────────────────────────────────────────── */
.notes-panel {
  position: fixed;
  right: 16px; top: 64px;
  width: 320px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  overflow: hidden;
  max-height: calc(100vh - 140px);
}

.notes-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
}

.notes-save-status { font-size: 11px; color: var(--muted); }

.notes-close {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 4px;
}
.notes-close:hover { color: var(--text); }

.notes-area {
  flex: 1;
  background: var(--surface2);
  border: none;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  resize: none;
  outline: none;
  min-height: 240px;
}

.notes-footer {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border);
}

.notes-candidate {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  outline: none;
}

.notes-save-btn {
  background: var(--gradient);
  border: none; border-radius: 9px;
  padding: 8px 14px; color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.notes-save-btn:hover { opacity: .88; }

/* ─── Kayıt Göstergesi ───────────────────────────────────────────────────── */
.rec-indicator {
  position: fixed;
  top: 68px; left: 50%;
  transform: translateX(-50%);
  background: rgba(224,85,85,.15);
  border: 1.5px solid var(--red);
  border-radius: 20px;
  padding: 6px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--red);
  z-index: 300;
}

.rec-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: recPulse 1s ease-in-out infinite;
}

@keyframes recPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ─── Değerlendirme Modal ───────────────────────────────────────────────── */
.eval-overlay {
  position: fixed; inset: 0;
  background: rgba(13,23,32,.9);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 900; padding: 20px;
}

.eval-modal {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}

.eval-row {
  display: flex; flex-direction: column; gap: 8px;
}
.eval-row label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
}

/* ─── Yıldız Puanlama ───────────────────────────────────────────────────── */
.star-row { display: flex; gap: 6px; }

.star-btn {
  background: none; border: none;
  font-size: 28px; cursor: pointer;
  color: var(--border);
  transition: color .15s, transform .1s;
  line-height: 1; padding: 0;
}
.star-btn:hover,
.star-btn.active { color: #f59e0b; transform: scale(1.15); }

/* ─── Sonuç Butonları ───────────────────────────────────────────────────── */
.result-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.result-btn {
  flex: 1; min-width: 100px;
  padding: 11px 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.result-btn:hover { border-color: var(--accent); color: var(--text); }
.result-btn.active[data-val="accepted"] { border-color: var(--green); background: rgba(46,201,144,.12); color: var(--green); }
.result-btn.active[data-val="rejected"] { border-color: var(--red);   background: rgba(224,85,85,.12);  color: var(--red); }
.result-btn.active[data-val="maybe"]    { border-color: var(--accent); background: rgba(59,157,216,.12); color: var(--accent); }

/* ─── Aday Chip ────────────────────────────────────────────────────────────── */
.candidate-chip {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.candidate-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,157,216,.08);
}
