﻿/* --- FULL SCREEN QUALITY LMS STYLES --- */
.quality-fullscreen-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f4f6f9;
  z-index: 9000;
  display: flex;
  font-family: "Segoe UI", sans-serif;
}

/* SIDEBAR */
.q-sidebar {
  width: 260px;
  background: #0e1b42;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.q-sidebar-header {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #cf0a2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.q-user-profile {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.q-avatar-circle {
  width: 40px;
  height: 40px;
  background: #cf0a2c;
  color: #0e1b42;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.q-user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.q-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.q-nav-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  flex-grow: 1;
}

.q-nav-item {
  padding: 12px 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.q-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.q-nav-item.active {
  background: #cf0a2c;
  color: #0e1b42;
  font-weight: bold;
  border-right: 4px solid #fff;
}

.q-sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.q-exit-btn {
  /* Teknik alandaki geri butonu ile aynı renk */
  width: 100%;
  padding: 10px;
  background: #6c757d;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.q-exit-btn:hover {
  background: #5a6268;
}

/* CONTENT AREA */
.q-content {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  background: #f4f6f9;
  position: relative;
}

.q-view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.q-view-section.active {
  display: block;
}

.q-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

.q-view-header h2 {
  margin: 0;
  color: #0e1b42;
}

/* DASHBOARD WIDGETS */
.q-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.q-stat-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 5px solid transparent;
}

.box-blue {
  border-color: #1976d2;
}

.box-green {
  border-color: #2e7d32;
}

.box-orange {
  border-color: #ed6c02;
}

.box-red {
  border-color: #d32f2f;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.box-blue .stat-icon {
  background: #1976d2;
}

.box-green .stat-icon {
  background: #2e7d32;
}

.box-orange .stat-icon {
  background: #ed6c02;
}

.box-red .stat-icon {
  background: #d32f2f;
}

/* En Zayıf Kriter kartında metin taşmasın/okunabilir olsun */
#q-dash-worst {
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 900px) {
  #q-dash-worst {
    font-size: 0.95rem;
  }
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #333;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #777;
  margin-top: 5px;
}

.q-dashboard-grid {
  display: flex;
  gap: 20px;
}

.q-chart-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.large-ring {
  width: 150px;
  height: 150px;
  margin: 20px auto;
}

.large-ring .score-circle-inner {
  width: 120px;
  height: 120px;
  font-size: 2.5rem;
}

.simple-list {
  width: 100%;
  text-align: left;
}

.simple-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.simple-item:last-child {
  border: none;
}

.q-period-selector select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

/* --- EĞİTİM KARTLARI --- */
.q-training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.t-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--secondary);
  /* GÜNCEL STİL: Üstte sarı çizgi */
  transition: all 0.3s ease;
}

.t-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.t-card-header {
  padding: 18px;
  background: var(--primary);
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-card-body {
  padding: 15px;
  flex-grow: 1;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.t-card-footer {
  padding: 15px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  text-align: right;
}

.t-status-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.t-btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.t-btn-start {
  background: #cf0a2c;
  color: #0e1b42;
}

.t-btn-start:hover {
  background: #cf0a2c;
}

.t-btn-done {
  background: #2e7d32;
  color: white;
  cursor: default;
}

.t-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--info);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  padding: 5px 10px;
  background: #e3f2fd;
  border-radius: 4px;
}

.t-doc-link:hover {
  background: #bbdefb;
}

/* --- GERİ BİLDİRİM KARTLARI --- */
.feedback-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #1976d2;
  /* Renk, JS tarafından overwrite edilir */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.feedback-card:hover {
  background: #fcfcfc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.feedback-info-right {
  font-size: 0.75rem;
  color: #888;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feedback-info-right span i {
  width: 14px;
  color: var(--primary);
  margin-right: 3px;
}

.feedback-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.feedback-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

/* --- Değerlendirme Geçmişi Tarih İkonları (Evaluation List) --- */
.eval-date-info {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.eval-date-info i {
  color: var(--primary);
  width: 14px;
}

.eval-id {
  cursor: pointer;
  text-decoration: underline dotted;
}

/* --- REDESIGNED EVALUATION CARDS (v2) --- */
.eval-card-v2 {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid #edf2f7;
  overflow: hidden;
  position: relative;
}

.eval-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.eval-card-v2.expanded {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.eval-card-main {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.eval-card-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-grow: 1;
}

.eval-score-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.eval-score-orb .score-val {
  font-size: 1.2rem;
  line-height: 1;
}

.eval-score-orb .score-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.eval-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eval-agent-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-meta-row {
  display: flex;
  gap: 16px;
  color: #718096;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.eval-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eval-meta-item i {
  color: #a0aec0;
  width: 14px;
}

.eval-id-pill {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: monospace;
  font-weight: 600;
  font-size: 0.8rem;
  color: #4a5568;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.eval-id-pill:hover {
  background: #edf2f7;
  color: #2d3748;
}

.eval-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eval-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #cbd5e0;
  transition: 0.3s;
}

.eval-status-icon.seen {
  border-color: #48bb78;
  color: #48bb78;
  background: #f0fff4;
}

.eval-status-icon.unseen {
  border-color: #f56565;
  color: #f56565;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 101, 101, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 101, 101, 0);
  }
}

/* --- EVALUATION MODAL V2 --- */
.eval-modal-v2 {
  text-align: left;
  padding: 10px;
}

.eval-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.eval-form-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.eval-form-avatar {
  width: 48px;
  height: 48px;
  background: #3182ce;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.eval-form-score-box {
  text-align: center;
}

.eval-form-score-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #3182ce;
  line-height: 1;
}

.eval-form-score-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #a0aec0;
  text-transform: uppercase;
}

.eval-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.eval-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eval-input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4a5568;
}

.eval-input-v2 {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: 0.2s;
}

.eval-input-v2:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
  outline: none;
}

.criteria-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 24px;
}

.criteria-item-v2 {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 16px;
  transition: 0.2s;
}

.criteria-item-v2:hover {
  border-color: #cbd5e0;
}

.criteria-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.criteria-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
}

.criteria-max {
  font-size: 0.75rem;
  color: #a0aec0;
  font-weight: 700;
  white-space: nowrap;
}

.criteria-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eval-btn-group-v2 {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.eval-btn-v2 {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #64748b;
  transition: 0.2s;
}

.eval-btn-v2.active.good {
  background: #48bb78;
  color: white;
}

.eval-btn-v2.active.medium {
  background: #ed8936;
  color: white;
}

.eval-btn-v2.active.bad {
  background: #f56565;
  color: white;
}

.eval-details-pane-v2 {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fcfdfe;
  border-top: 1px solid transparent;
}

.expanded .eval-details-pane-v2 {
  border-top-color: #edf2f7;
}

.eval-details-inner {
  padding: 24px;
}

.eval-grid-v2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .eval-grid-v2 {
    grid-template-columns: 1fr;
  }
}

.eval-section-v2 {
  margin-bottom: 20px;
}

.eval-section-title-v2 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4a5568;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.eval-table-v2 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.eval-row-v2 {
  background: white;
  transition: 0.2s;
}

.eval-row-v2 td {
  padding: 12px 16px;
  border: 1px solid #edf2f7;
  border-left: none;
  border-right: none;
}

.eval-row-v2 td:first-child {
  border-left: 1px solid #edf2f7;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-size: 0.9rem;
  color: #2d3748;
}

.eval-row-v2 td:last-child {
  border-right: 1px solid #edf2f7;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  text-align: right;
  font-weight: 700;
}

.eval-row-failed {
  border-left: 3px solid #f56565 !important;
}

.eval-note-v2 {
  font-size: 0.8rem;
  color: #e53e3e;
  font-style: italic;
  margin-top: 4px;
  display: block;
}

.eval-feedback-box-v2 {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.eval-feedback-box-v2::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 2rem;
  color: #e2e8f0;
  font-family: serif;
}

.eval-interaction-pane {
  background: #f7fafc;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eval-interaction-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  position: relative;
}

.bubble-agent {
  background: #fffaf0;
  border: 1px solid #feebc8;
  color: #7b341e;
  border-bottom-left-radius: 2px;
}

.bubble-manager {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
  border-bottom-right-radius: 2px;
}

.bubble-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Redesigned Controls --- */
.eval-action-btn-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary-v2 {
  background: #3182ce;
  color: white;
}

.btn-primary-v2:hover {
  background: #2b6cb0;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-warning-v2 {
  background: #ed8936;
  color: white;
}

.btn-warning-v2:hover {
  background: #dd6b20;
  box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

/* --- Manuel Geri Bildirim Butonu --- */
.add-manual-feedback-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.add-manual-feedback-btn:hover {
  background: #b50925;
}

/* --- Pop-up Tasarım İyileştirmeleri (v13.1) --- */
.swal2-popup {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  border-radius: 15px !important;
  font-family: "Segoe UI", sans-serif !important;
}

/* Eğitim Atama Modal Grid Yapısı */
.t-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.t-modal-grid .swal2-input {
  margin: 0 !important;
  height: 40px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.t-modal-grid .swal2-textarea {
  margin: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.t-modal-grid input[type="date"] {
  padding: 0 10px;
  color: #555;
}

.t-modal-grid input[placeholder="Süre (Örn: 20dk)"] {
  text-align: center;
}

/* Manuel Geri Bildirim Modal (swal2-input) Stilini iyileştirme */
#manual-q-agent,
#manual-q-topic,
#manual-q-callid,
#manual-q-date,
#manual-q-type {
  border-radius: 6px !important;
  padding: 10px 15px !important;
  border: 1px solid #ddd !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#manual-q-feedback {
  border-radius: 6px !important;
  padding: 10px 15px !important;
  border: 1px solid #ddd !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Swal butonlarını görseldeki gibi yapalım */
.swal2-actions button {
  border-radius: 6px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  transition: all 0.2s;
}

/* Ata / Kaydet butonu */
.swal2-confirm {
  background: var(--primary) !important;
  color: var(--secondary) !important;
}

.swal2-confirm:hover {
  background: #1c2438 !important;
}

/* Cancel butonu */
.swal2-cancel {
  background: #ccc !important;
  color: #333 !important;
}

.swal2-cancel:hover {
  background: #bbb !important;
}

/* --- v2 Quality Dashboard (Sales + Chat unified) --- */
/* (Styles are handled in app.js for Guide now to keep style.css clean) */


/* SEARCH & TOPBAR */
.q-top-search {
  position: relative;
  width: 350px;
}

.q-top-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.q-top-search input {
  width: 100%;
  padding: 10px 15px 10px 45px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
}

.q-top-search input:focus {
  border-color: #0e1b42;
  box-shadow: 0 0 0 3px rgba(14, 27, 66, 0.1);
}

@media (max-width: 768px) {
  .sg-grid-area {
    grid-template-columns: 1fr;
  }

  .q-top-search {
    width: 100%;
    margin-top: 10px;
  }
}

/* --- Dashboard Stat Boxes Enhancements --- */
.q-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .q-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .q-stats-row {
    grid-template-columns: 1fr;
  }
}

.q-stat-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.q-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.q-stat-box .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.box-blue {
  border-left: 5px solid #3498db;
}

.box-blue .stat-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.box-green {
  border-left: 5px solid #2ecc71;
}

.box-green .stat-icon {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.box-orange {
  border-left: 5px solid #f1c40f;
}

.box-orange .stat-icon {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.box-red {
  border-left: 5px solid #e74c3c;
}

.box-red .stat-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0e1b42;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* --- High Performance Ring --- */
.score-circle-outer.large-ring {
  width: 130px;
  height: 130px;
  margin: 15px auto;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.score-circle-inner {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #0e1b42;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.q-dashboard-grid.v2 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: flex-start;
}

.q-dashboard-grid.v2 .q-chart-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
}

/* Sol Panel (Skorlar listesi) yan panel gibi olsun */
.q-dashboard-grid.v2 .q-card-ring {
  grid-column: span 3;
  grid-row: 1 / span 4;
}

/* Orta/Sağ Paneldeki Geniş Grafikler */
.q-dashboard-grid.v2 .q-card-wide {
  grid-column: span 9;
}

/* Kanal ve Puan Dağılımı (Kısa olanlar) */
.q-dashboard-grid.v2 .q-chart-card:nth-child(3) {
  grid-column: span 4;
}

.q-dashboard-grid.v2 .q-chart-card:nth-child(4) {
  grid-column: span 5;
}

/* En alttaki Takım Ortalamaları */
.q-dashboard-grid.v2 .q-chart-card:last-child {
  grid-column: span 12;
}

.q-chart-wrap {
  height: 250px;
  min-height: 250px;
}

.q-card-wide .q-chart-wrap {
  height: 300px;
}

@media (max-width: 1400px) {
  .q-dashboard-grid.v2 .q-chart-card:not(.q-card-wide) {
    grid-column: span 12;
  }

  .q-dashboard-grid.v2 .q-card-wide {
    grid-column: span 12;
  }
}

@media (max-width: 1100px) {
  .q-dashboard-grid.v2 .q-chart-card {
    grid-column: span 6 !important;
  }

  .q-dashboard-grid.v2 .q-card-wide {
    grid-column: span 12 !important;
  }
}

@media (max-width: 768px) {
  .q-dashboard-grid.v2 {
    grid-template-columns: 1fr;
  }

  .q-dashboard-grid.v2 .q-chart-card {
    grid-column: span 1 !important;
  }
}

.q-card-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.q-card-head h3 {
  margin: 0;
  color: #0e1b42;
  font-size: 1.02rem;
}

.q-card-sub {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

/* --- Premium Filter Bar --- */
.q-dash-filters,
#admin-filters {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 12px;
  align-items: center;
}

.minimal-select {
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: 0.2s;
  outline: none;
}

.minimal-select:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* --- Compact Evaluation Cards --- */
.eval-card-v2 {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: 0.2s;
}

.eval-card-main {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.eval-card-main:hover {
  background: #f8fafc;
}

.eval-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Kriterler ve Diğerleri */
  gap: 20px;
  padding: 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.eval-row-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 12px;
}

.eval-crit-card-v2 {
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.eval-crit-card-v2.failed {
  border-left: 4px solid #ef4444;
  background: #fff5f5;
}

.eval-crit-card-v2.success {
  border-left: 4px solid #10b981;
}

.eval-crit-text-v2 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.eval-crit-val-v2 {
  font-weight: 900;
  font-size: 1rem;
  white-space: nowrap;
}

.q-chart-wrap {
  position: relative;
  height: 240px;
  width: 100%;
}

.q-card-ring .q-chart-wrap {
  height: auto;
}

/* Filters: keep compact on smaller screens */
.q-dash-filters .minimal-select {
  min-width: 120px;
}

