/* ══════════════════════════════════════════════════════════════
   TalqueAI – Globales Stylesheet (CSP-konform, kein inline)
   Design-System übernommen aus _landingpage/css/home.css
   ══════════════════════════════════════════════════════════════ */

/* ── Fonts ───────────────────────────────────────────────────── */
@import url("../fonts/bootstrap-icons.min.css");

@font-face {
  font-family: "bootstrap-icons";
  src: url("../fonts/bootstrap-icons.woff2") format("woff2"), url("../fonts/bootstrap-icons.woff") format("woff");
}

@font-face {
  font-family: Avenir;
  src: url(../fonts/Avenir/AvenirLTStd-Medium.otf);
  font-weight: normal;
}

@font-face {
  font-family: Avenir;
  src: url(../fonts/Avenir/AvenirLTStd-Heavy.otf);
  font-weight: bold;
}

@font-face {
  font-family: Avenir;
  src: url(../fonts/Avenir/AvenirLTStd-Light.otf);
  font-weight: 300;
}

/* ── CSS Custom Properties (Branding) ────────────────────────── */
:root {
  --color-orange: #DB6318;
  --color-darkblue: #1B3B5B;
  --color-blue: #267BD8;
  --color-beige: #E9E0D5;
  --color-bg: #f5f3f0;
  --transition-speed: 0.25s;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Avenir, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  background-color: var(--color-bg);
  color: #333;
  margin: 0;
}

body.modal-open {
  padding-right: 0 !important;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  color: var(--color-darkblue);
}

/* ── App Navbar ──────────────────────────────────────────────── */
.app-navbar {
  background-color: var(--color-darkblue);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-navbar .navbar-logo {
  height: 28px;
  filter: brightness(0) invert(1);
}

.app-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-navbar .nav-links a,
.app-navbar .nav-links button {
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.app-navbar .nav-links a:hover,
.app-navbar .nav-links button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.app-navbar .nav-links .active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.app-navbar .user-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Landing Page ────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.landing-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero .hero-overlay {
  background-color: var(--color-darkblue);
  color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 25px 35px;
  font-size: 24px;
  opacity: 0.88;
  width: 58%;
  max-width: 700px;
}

.landing-hero .hero-overlay h1 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.landing-hero .hero-overlay p {
  font-size: 1.15rem;
  line-height: 1.6;
}

.landing-navbar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-navbar .logo {
  height: 90px;
  filter: drop-shadow(rgba(255, 255, 255, 1) 2px 2px 4px);
}

.landing-nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.landing-nav-links a {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.9rem;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.landing-nav-links a:hover {
  background: var(--color-blue);
  color: #fff;
}

@media (max-width: 768px) {
  .landing-hero .hero-overlay {
    width: 100%;
    opacity: 1;
    font-size: 18px;
  }

  .landing-navbar .logo {
    height: 60px;
  }

  .landing-nav-links {
    display: none;
  }
}

/* ── btn-orange (Brand-Button) ───────────────────────────────── */
.btn-orange {
  background-color: var(--color-orange);
  padding: 12px 36px;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-orange:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(219, 99, 24, 0.3);
}

.btn-outline-dark {
  border: none;
  color: var(--color-darkblue);
  background: rgba(0, 0, 0, 0.06);
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: bold;
  transition: all 0.25s;
}

.btn-outline-dark:hover {
  background: var(--color-darkblue);
  color: #fff;
}

.btn-outline-dark:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 43, 90, 0.18);
}

/* ── Modal (Login) ───────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  background-color: var(--color-beige);
}

.modal-header {
  border-bottom: none;
  padding: 20px 20px 10px;
}

.modal-body {
  text-align: center;
  padding: 20px 30px 10px;
}

.modal-footer {
  border-top: none;
  padding: 10px 30px 25px;
  justify-content: center;
}

.modal-body .form-control {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-body .form-control:focus {
  border-color: var(--color-orange);
  box-shadow: none;
}

/* ── Password Toggle ─────────────────────────────────────────── */
.password-input-group {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}

.password-input-group .form-control {
  padding-right: 40px;
}

.password-input-group .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-blue);
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

/* ── Page Container ──────────────────────────────────────────── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-title {
  font-weight: bold;
  color: var(--color-darkblue);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

/* ── Scenario Cards ──────────────────────────────────────────── */
.card-scenario {
  border: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  cursor: pointer;
  overflow: hidden;
}

.card-scenario:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-scenario .card-body {
  padding: 1.4rem;
}

.card-scenario .card-title {
  font-weight: bold;
  color: var(--color-darkblue);
  font-size: 1.1rem;
}

.card-scenario .badge-tone {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  background: var(--color-beige);
  color: var(--color-darkblue);
}

.card-scenario .card-topic {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.card-scenario .card-roles {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.6rem;
}

.card-scenario .card-roles i {
  color: var(--color-blue);
  margin-right: 4px;
}

/* ── Scenario Detail ─────────────────────────────────────────── */
.detail-header {
  background: var(--color-darkblue);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-weight: bold;
}

.detail-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.detail-meta span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.detail-meta i {
  margin-right: 5px;
}

.detail-docs {
  list-style: none;
  padding: 0;
}

.detail-docs li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.detail-docs li i {
  color: var(--color-orange);
  margin-right: 8px;
}

/* ── Interview View ──────────────────────────────────────────── */
.interview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 2rem;
}

.interview-video-area {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.interview-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.interview-timer {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-darkblue);
  font-variant-numeric: tabular-nums;
}

.btn-interview-end {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-interview-end:hover {
  background: #b02a37;
  transform: translateY(-1px);
}

/* ── Evaluation View ─────────────────────────────────────────── */
.eval-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-darkblue);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.eval-score-circle small {
  font-size: 0.7rem;
  font-weight: normal;
  opacity: 0.7;
}

.eval-summary {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  line-height: 1.7;
}

/* ── Dashboard Stats ─────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
  position: relative;
  overflow: hidden;
}

/* 
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-blue);
  transition: background var(--transition-speed);
}
.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.stat-card:hover::before { background: var(--color-orange); }
 */

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-darkblue);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.2rem;
}

/* ── Tables (Dashboards) ─────────────────────────────────────── */
.table-talque {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: auto;
}

.table-talque thead th {
  background: var(--color-darkblue);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  border: none;
}

.table-talque tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: #f0eded;
  font-size: 0.9rem;
}

.table-talque tbody tr:hover {
  background: #faf8f6;
}

.table-talque tbody tr.pd-org-row {
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}

.table-talque tbody tr.pd-org-row:hover {
  background: #f7f5f2;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* When a dropdown is open, elevate that row above siblings */
.table-talque tbody tr.pd-org-row.dropdown-open {
  z-index: 10;
}

/* Suppress hover effects on ALL rows while any dropdown is open */
.table-talque tbody.dropdown-active tr.pd-org-row:hover {
  background: inherit;
  transform: none;
  box-shadow: none;
}

/* Keep hover on the row that owns the open dropdown */
.table-talque tbody.dropdown-active tr.pd-org-row.dropdown-open:hover {
  background: #f7f5f2;
}

.table-talque tbody tr.pd-org-row td:last-child {
  cursor: default;
}

/* ── Quota Bar ───────────────────────────────────────────────── */
.quota-bar-bg {
  background: #e9ecef;
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  border-radius: 8px;
  background: var(--color-blue);
  transition: width 0.5s ease;
  width: var(--bar-pct, 0%);
}

.quota-bar-hidden {
  display: none;
}

.quota-bar-fill.warning {
  background: var(--color-orange);
}

.quota-bar-fill.danger {
  background: #dc3545;
}

/* ── Status Badges ───────────────────────────────────────────── */
.badge-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-invited {
  background: #dbeafe;
  color: #1e40af;
}

.badge-deactivated {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Change Password Page ────────────────────────────────────── */
.change-pw-card {
  max-width: 420px;
  margin: 4rem auto;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-orange {
  color: var(--color-orange);
}

.text-darkblue {
  color: var(--color-darkblue);
}

.bg-darkblue {
  background-color: var(--color-darkblue);
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mt-page {
  margin-top: 2rem;
}

.btn-orange-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.btn-pill-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.modal-body-left {
  text-align: left;
}

.text-small-09 {
  font-size: 0.9rem;
}

.text-small-085 {
  font-size: 0.85rem;
}

.text-small-08 {
  font-size: 0.8rem;
}

.password-input-group-full {
  max-width: 100%;
}

.icon-3-opacity-04 {
  font-size: 3rem;
  opacity: 0.4;
}

.icon-3-orange {
  font-size: 3rem;
  color: var(--color-orange);
}

.link-back-muted {
  font-size: 0.9rem;
}

.link-back-on-dark {
  color: rgba(255, 255, 255, 0.7);
}

.btn-table-action {
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 50px;
}

.org-action-select {
  width: auto;
  min-width: 170px;
}

.btn-icon-dropdown {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--color-darkblue);
  text-decoration: none;
}

.btn-icon-dropdown.dropdown-toggle::after {
  display: none;
}

.btn-icon-dropdown:hover {
  color: var(--color-darkblue);
  background: rgba(0, 0, 0, 0.04);
}

.btn-icon-dropdown:focus {
  box-shadow: none;
}

.btn-icon-dropdown i {
  font-size: 1.2rem;
}

.table-responsive {
  overflow: visible;
}

.table-responsive .dropdown-menu {
  z-index: 2000;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 576px) {
  .page-container {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .stat-card .stat-value {
    font-size: 1.4rem;
  }

  .interview-video-area {
    aspect-ratio: 4 / 3;
  }
}