/* ============================================
   VoiceHub — Ana Stil Dosyası
   Discord benzeri koyu tema, premium tasarım
   ============================================ */

/* Google Fonts — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Renk Paleti & Tasarım Tokenleri ---- */
:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --bg-input: #1a1a3e;
  --text-primary: #e4e6eb;
  --text-secondary: #8b8fa3;
  --text-muted: #5a5e73;
  --accent: #6c63ff;
  --accent-hover: #5a52d5;
  --accent-glow: rgba(108, 99, 255, 0.3);
  --accent-light: rgba(108, 99, 255, 0.12);
  --success: #43b581;
  --success-glow: rgba(67, 181, 129, 0.35);
  --danger: #f04747;
  --danger-glow: rgba(240, 71, 71, 0.3);
  --warning: #faa61a;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 24px rgba(108, 99, 255, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-full: 50%;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Genel Stiller ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---- Scrollbar Özelleştirme ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* ============================================
   GİRİŞ SAYFASI STİLLERİ
   ============================================ */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(67, 181, 129, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(240, 71, 71, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-primary) 0%, #0d1b2a 50%, var(--bg-secondary) 100%);
  padding: 20px;
  overflow-y: auto;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(22, 33, 62, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

/* Logo Bölümü */
.logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo svg {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.login-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, #6c63ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Tab Switcher */
.tab-switcher {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--glass);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.tab-switcher .tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  position: relative;
}

.tab-switcher .tab:hover {
  color: var(--text-primary);
}

.tab-switcher .tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* Form Grupları */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

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

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px rgba(108, 99, 255, 0.1);
}

.form-group input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Ana Buton */
.btn-primary {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #7c74ff 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled::before {
  display: none;
}

/* Bildirim Mesajları */
.auth-message {
  margin-top: 16px;
  padding: 0;
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
  transition: var(--transition);
}

.auth-message.message-error {
  color: var(--danger);
  background: rgba(240, 71, 71, 0.1);
  border: 1px solid rgba(240, 71, 71, 0.2);
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  animation: shakeX 0.4s ease;
}

.auth-message.message-success {
  color: var(--success);
  background: rgba(67, 181, 129, 0.1);
  border: 1px solid rgba(67, 181, 129, 0.2);
  padding: 10px 16px;
  border-radius: var(--radius-xs);
}

.auth-message.message-info {
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 10px 16px;
  border-radius: var(--radius-xs);
}

/* ============================================
   ANA UYGULAMA LAYOUT
   ============================================ */

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* Sidebar Header */
.sidebar-header {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.app-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Kanal Bölümü */
.channel-section {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  user-select: none;
}

.channel-icon {
  font-size: 1rem;
}

.user-count-badge,
.pending-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  margin-left: auto;
}

.pending-count-badge {
  background: var(--warning);
  color: #000;
}

/* Kullanıcı Listesi */
.user-list {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: default;
  position: relative;
  animation: slideInUser 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-item:hover {
  background: var(--glass-strong);
}

/* Konuşurken yeşil glow */
.user-item.speaking {
  background: rgba(67, 181, 129, 0.08);
  box-shadow: inset 3px 0 0 var(--success);
}

.user-item.speaking .avatar {
  box-shadow: 0 0 0 2px var(--success), 0 0 12px var(--success-glow);
  animation: speakingPulse 1.5s ease-in-out infinite;
}

/* Avatar */
.user-item .avatar,
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent) 0%, #7c74ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  transition: var(--transition);
}

/* Kullanıcı Bilgisi */
.user-item .user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-item .user-info .username {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-item .status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Durum İkonları */
.status-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon svg {
  width: 14px;
  height: 14px;
}

.notification.success {
  border-left-color: var(--success);
}

.notification.error {
  border-left-color: var(--danger);
}

.notification.warning {
  border-left-color: var(--warning);
}

/* ============================================ */
/* Ses Kanalı Bağlan/Ayrıl Butonu              */
/* ============================================ */
.btn-join-voice {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
.btn-join-voice.join {
  background: var(--success);
  color: #fff;
}
.btn-join-voice.join:hover {
  background: #3aa876;
  transform: scale(1.05);
}
.btn-join-voice.leave {
  background: var(--danger);
  color: #fff;
}
.btn-join-voice.leave:hover {
  background: #d93636;
  transform: scale(1.05);
}

/* Kontroller deaktif durumu */
.control-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Çıkış Yap butonu */
.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.btn-logout:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-logout svg {
  width: 14px;
  height: 14px;
}

/* ============================================ */
/* Ayarlar Modalı                               */
/* ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: cardAppear 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.settings-section {
  margin-bottom: 28px;
}
.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.settings-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.settings-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.settings-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.settings-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Ses Testi */
.mic-test-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mic-test-area .btn-primary {
  width: 100%;
}

.mic-level-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-input);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mic-level-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--success), #7cff7c);
  border-radius: 5px;
  transition: width 0.1s ease;
}

.mic-level-fill.high {
  background: linear-gradient(90deg, var(--warning), var(--danger));
}

.mic-test-status {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

.mic-test-status.active {
  color: var(--success);
  font-weight: 500;
}

/* ============================================ */
/* Admin Paneli Tabları ve Kullanıcı Yönetimi   */
/* ============================================ */
.admin-tabs {
  display: flex;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.admin-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.admin-tab:hover:not(.active) {
  color: var(--text-primary);
}
.admin-tab-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.approved-request {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.approved-request .pending-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-kick, .btn-suspend {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-kick:hover {
  background: var(--warning);
  color: #fff;
}
.btn-suspend:hover {
  background: var(--danger);
  color: #fff;
}
.btn-kick svg, .btn-suspend svg {
  width: 14px;
  height: 14px;
}

.status-icon.muted {
  color: var(--danger);
}

.status-icon.deafened {
  color: var(--danger);
}

.status-icon.sharing {
  color: var(--success);
}

/* Ses Slider */
.volume-control {
  width: 100%;
  padding-top: 4px;
}

.volume-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.volume-control input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.12);
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-glow);
  transition: var(--transition-fast);
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-glow);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ---- ADMIN PANELİ ---- */
.admin-panel {
  border-top: 1px solid var(--border);
  padding: 12px 0;
  max-height: 220px;
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

#pending-list {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pending-request {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.pending-request .pending-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--warning) 0%, #f5a623 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pending-request .pending-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-request .pending-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pending-request .btn-approve,
.pending-request .btn-reject {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.pending-request .btn-approve {
  background: rgba(67, 181, 129, 0.15);
  color: var(--success);
}

.pending-request .btn-approve:hover {
  background: var(--success);
  color: #fff;
  transform: scale(1.1);
}

.pending-request .btn-reject {
  background: rgba(240, 71, 71, 0.15);
  color: var(--danger);
}

.pending-request .btn-reject:hover {
  background: var(--danger);
  color: #fff;
  transform: scale(1.1);
}

/* ---- SIDEBAR FOOTER ---- */
.sidebar-footer {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
}

.user-info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 6px;
}

.user-info-bar .avatar {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
}

.user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-details .username {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details .user-status {
  font-size: 0.7rem;
  color: var(--success);
}

/* Kontrol Çubuğu */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px 12px;
}

.control-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  outline: none;
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

.control-btn:hover {
  background: rgba(15, 52, 96, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
  transform: translateY(0);
}

.control-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.control-btn.muted {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 16px var(--danger-glow);
}

.control-btn.danger {
  background: rgba(240, 71, 71, 0.2);
  color: var(--danger);
}

.control-btn.danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 16px var(--danger-glow);
}

/* ---- ANA İÇERİK ---- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-primary);
  position: relative;
}

/* ---- EKRAN PAYLAŞIMI ---- */
.screen-share-area {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.screen-share-area.active {
  display: flex;
  flex: 1;
  min-height: 200px;
}

.screen-share-header {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  z-index: 5;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.screen-share-header span {
  color: var(--success);
  font-weight: 600;
}

.screen-share-area video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

/* ---- CHAT ---- */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chat-header span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Mesajlar */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-message {
  display: flex;
  gap: 14px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  animation: messageAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-message:hover {
  background: var(--glass-strong);
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent) 0%, #7c74ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.message-body {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.message-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.message-content {
  font-size: 0.925rem;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: break-word;
}

/* Sistem mesajları */
.chat-message.system-message {
  justify-content: center;
  padding: 4px 10px;
  gap: 0;
}

.chat-message.system-message .message-content {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Chat Input */
.chat-input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

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

.chat-input-area input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.btn-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #7c74ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-send svg {
  width: 20px;
  height: 20px;
}

.btn-send:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

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

/* ============================================
   ONAY BEKLENİYOR SAYFASI
   ============================================ */

.pending-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(108, 99, 255, 0.06) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-primary) 0%, #0d1b2a 100%);
  padding: 20px;
}

.pending-card {
  text-align: center;
  max-width: 420px;
  width: 100%;
  background: rgba(22, 33, 62, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 48px 36px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease;
}

.pending-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.pending-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.pending-hint {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 16px !important;
}

/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* ============================================
   BİLDİRİM SİSTEMİ
   ============================================ */

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.notification {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  animation: notificationIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  max-width: 340px;
}

.notification.info {
  background: rgba(108, 99, 255, 0.15);
  color: #b4afff;
  border-color: rgba(108, 99, 255, 0.3);
}

.notification.success {
  background: rgba(67, 181, 129, 0.15);
  color: #7ddeaf;
  border-color: rgba(67, 181, 129, 0.3);
}

.notification.error {
  background: rgba(240, 71, 71, 0.15);
  color: #f58a8a;
  border-color: rgba(240, 71, 71, 0.3);
}

.notification.warning {
  background: rgba(250, 166, 26, 0.15);
  color: #fcc760;
  border-color: rgba(250, 166, 26, 0.3);
}

.notification.fade-out {
  animation: notificationOut 0.3s ease forwards;
}

/* ============================================
   ANİMASYONLAR
   ============================================ */

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

@keyframes slideInUser {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes speakingPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--success), 0 0 8px var(--success-glow);
  }
  50% {
    box-shadow: 0 0 0 3px var(--success), 0 0 16px var(--success-glow);
  }
}

@keyframes notificationIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes notificationOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--success-glow);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px transparent;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
    box-shadow: none;
  }

  .sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .main-content {
    width: 100vw;
  }

  /* Mobilde sidebar açma butonu */
  .mobile-menu-btn {
    display: flex;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }

  .mobile-menu-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Sidebar açıkken overlay */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .chat-header {
    padding-left: 56px;
  }

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

@media (min-width: 769px) {
  .mobile-menu-btn,
  .sidebar-overlay {
    display: none !important;
  }
}

/* ============================================
   YARDIMCI SINIFLAR
   ============================================ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.empty-state svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.85rem;
}

/* Hoş geldiniz mesajı (chat boşken) */
.welcome-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
  padding: 40px 20px;
}

.welcome-message svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  opacity: 0.2;
}

.welcome-message h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.welcome-message p {
  font-size: 0.85rem;
  max-width: 280px;
}
