/* PDD Widget Admin Panel Styles */
.content-wrapper { min-height: calc(100vh - 57px); }

.stat-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.stat-card .stat-icon { font-size: 2.5rem; opacity: .2; position: absolute; right: 16px; top: 16px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-card .stat-label { font-size: .85rem; color: #6c757d; }

.table-actions { white-space: nowrap; width: 1px; }
.badge-status { padding: 4px 10px; border-radius: 20px; font-weight: 500; font-size: .75rem; }

.question-text-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.import-progress { display: none; }
.import-progress.active { display: block; }

.widget-preview {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 20px;
  background: #f8f9fa;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow .2s;
}
.integration-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.integration-card .integration-icon { font-size: 2rem; margin-bottom: 12px; }

.topic-card-link .card { transition: transform .15s, box-shadow .15s; }
.topic-card-link .card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); border-color: #007bff; }

.copy-btn { cursor: pointer; }
.copy-btn:hover { color: #2563eb; }

.sections-sort-list { display: flex; flex-direction: column; gap: 8px; }
.sections-sort-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.sections-sort-item .custom-control { margin-bottom: 0; }
.sections-sort-item .custom-control-label { cursor: pointer; }

/* Tariff cards */
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan-card ul li {
  padding: 4px 0;
  font-size: .85rem;
  color: #374151;
}
.plan-card .plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2563eb;
}
.plan-card .plan-year-note {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  border-radius: 20px;
  padding: 2px 12px;
}

@media (max-width: 768px) {
  .stat-card .stat-value { font-size: 1.3rem; }
  .card-body { padding: 1rem; }
}

/* ============================================================
   VODITEL PARTNER LINKS PICKER (аккордеоны)
   ============================================================ */
.voditel-group .card-header {
  cursor: pointer;
  background: #f8f9fa;
}
.voditel-group .card-header[aria-expanded="true"] .voditel-chev {
  transform: rotate(90deg);
}
.voditel-chev {
  transition: transform .15s ease;
  color: #adb5bd;
  font-size: 0.75rem;
}
.voditelink-item {
  margin-bottom: 2px;
}
.voditelink-item .form-check-label {
  display: flex;
  flex-direction: column;
  font-weight: 400;
  cursor: pointer;
}
.voditelink-label {
  font-weight: 500;
}
.voditelink-label-withicon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.voditelink-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #495057;
  flex: 0 0 auto;
}
.voditelink-ico svg {
  width: 16px;
  height: 16px;
}
.voditelink-ico-sm svg {
  width: 14px;
  height: 14px;
}
.voditelink-desc {
  color: #6c757d;
  font-size: 0.78rem;
  line-height: 1.25;
  padding-left: 42px;
  margin-top: -2px;
}
.voditel-group-count {
  font-size: 0.7rem;
}

.alert a {
  color: inherit;
  font-weight: 700;
}

/* ============================================================
   НАСТРОЙКИ → ВИДЖЕТ: саб-табы и живой предпросмотр
   ============================================================ */
.widget-config-subtabs {
  margin-bottom: 0;
  border-bottom: 0;
}
.widget-config-subtabs .nav-link {
  padding: .4rem .85rem;
  font-size: .9rem;
}
.widget-live-preview-col {
  position: sticky;
  top: 70px;
  align-self: flex-start;
}
#widget-preview-container {
  max-height: 540px;
  overflow-y: auto;
}
#embed-code-output {
  max-height: 180px;
  overflow: auto;
}
@media (max-width: 991.98px) {
  .widget-live-preview-col {
    position: static;
  }
}
