/* =========================================================
   POLL Admin Dashboard Stylesheet
   Professional Dark Analytics Theme
   ========================================================= */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
}

.login-card {
  background: rgba(18, 24, 43, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px var(--primary-glow);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-icon-field {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-field i {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.input-icon-field input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: all var(--transition-fast);
}

.input-icon-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.input-icon-field input:focus + i,
.input-icon-field:focus-within i {
  color: var(--primary-light);
}

.login-helper-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.login-helper-box strong {
  color: var(--secondary);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: #fff;
}

/* =========================================================
   Admin Header & Navigation
   ========================================================= */

.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-card-border);
}

.admin-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-left .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.4px;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Survey Active Status Toggle */
.survey-status-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.survey-status-toggle.inactive .status-indicator-dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: none;
}

.btn-toggle-switch {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-toggle-switch:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Header Buttons */
.btn-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-mock {
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.3);
}

.btn-mock:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-purple);
}

.btn-export {
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-export:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
}

/* User Menu */
.user-menu-wrap {
  position: relative;
}

.btn-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-user-profile:hover {
  background: rgba(99, 102, 241, 0.25);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: rgba(18, 24, 43, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  z-index: 110;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-header {
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-card-border);
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item.text-danger {
  color: #fca5a5;
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.dropdown-divider {
  height: 1px;
  background: var(--bg-card-border);
  margin: 6px 0;
}

/* =========================================================
   Admin Main & Container
   ========================================================= */

.admin-main {
  position: relative;
  z-index: 1;
  padding: 28px 24px 60px;
}

.dashboard-container {
  max-width: 1440px;
  margin: 0 auto;
}

/* =========================================================
   1. Metrics Grid
   ========================================================= */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

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

.metric-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.icon-indigo { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.icon-cyan   { background: rgba(6, 182, 212, 0.15); color: var(--secondary); }
.icon-amber  { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

.metric-body {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.metric-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-tag-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.badge-sub strong {
  color: var(--primary-light);
}

.nps-breakdown-mini {
  display: flex;
  gap: 8px;
}

.p-chip { color: #34d399; }
.u-chip { color: #22d3ee; }
.d-chip { color: #fca5a5; }

.stars-visual {
  color: var(--accent-amber);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.text-sub-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.text-sub-label i {
  color: var(--accent-amber);
}

/* =========================================================
   2. Charts Section
   ========================================================= */

.charts-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.charts-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .charts-row {
    flex-direction: column;
  }
}

.chart-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 330px;
  transition: all var(--transition-fast);
}

.chart-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 0.85rem;
}

.chart-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.score-avg-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.18);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.chart-body {
  flex: 1;
  position: relative;
  min-height: 240px;
  width: 100%;
}

/* =========================================================
   3. Qualitative Comments Insight Section
   ========================================================= */

.comments-section {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-with-badge i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.title-with-badge h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.sub-counter {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.comments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 992px) {
  .comments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .comments-grid {
    grid-template-columns: 1fr;
  }
}

.comment-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
}

.comment-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.comment-text {
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.55;
  word-break: break-word;
}

.comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.c-score-badge {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
}

.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-state-card i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.6;
}

/* =========================================================
   4. Table Section
   ========================================================= */

.table-section {
  margin-bottom: 40px;
}

.table-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.table-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-title-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-count {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
}

.table-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-wrap i {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.filter-search-wrap input {
  padding: 8px 14px 8px 34px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.85rem;
  width: 220px;
  outline: none;
  transition: all var(--transition-fast);
}

.filter-search-wrap input:focus {
  border-color: var(--primary);
  width: 260px;
}

.filter-select {
  padding: 8px 12px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.btn-danger-outline {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-danger-outline:hover {
  background: var(--accent-red);
  color: #fff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--bg-card-border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.tbl-badge-score {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-en);
}

.tbl-badge-score.score-promoter { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tbl-badge-score.score-passive  { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.tbl-badge-score.score-detractor{ background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.tbl-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 240px;
}

.tbl-mini-tag {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  white-space: nowrap;
}

.tbl-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-tbl-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--bg-card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-tbl-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-tbl-action.btn-tbl-del:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--accent-red);
  color: #fca5a5;
}

/* Pagination */
.table-footer-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.pagination-nav {
  display: flex;
  gap: 4px;
}

.btn-page {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-page:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.btn-page.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
   Modals
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.modal-dialog {
  background: rgba(18, 24, 43, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-dialog.modal-lg {
  max-width: 720px;
}

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

.m-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-light);
}

.m-title-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.btn-modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.input-form {
  width: 100%;
  padding: 11px 14px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.92rem;
  outline: none;
}

.input-form:focus {
  border-color: var(--primary);
}

.detail-item-row {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.detail-item-val {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(18, 24, 43, 0.95);
  border: 1px solid var(--bg-card-border);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-color: rgba(16, 185, 129, 0.5); }
.toast-success i { color: #34d399; }
.toast-error { border-color: rgba(239, 68, 68, 0.5); }
.toast-error i { color: #f87171; }
