/* ============================================================
   SANDBOX ADMIN PAGE STYLES
   v1.0 - Initial sandbox tool selection and workspace
   ============================================================ */

/* Info Banner */
.sandbox-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 12px;
  margin-bottom: 32px;
}

.sandbox-info-banner > i {
  font-size: 24px;
  color: #ec4899;
  margin-top: 2px;
}

.sandbox-info-content {
  flex: 1;
}

.sandbox-info-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 6px;
}

.sandbox-info-text {
  font-size: 14px;
  color: var(--admin-text-muted);
  line-height: 1.6;
}

/* Tool Selection Grid */
.sandbox-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* Tool Card */
.sandbox-tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sandbox-tool-card:hover {
  border-color: var(--admin-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sandbox-tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.sandbox-tool-content {
  flex: 1;
  min-width: 0;
}

.sandbox-tool-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--admin-text);
  margin: 0 0 6px 0;
}

.sandbox-tool-desc {
  font-size: 13px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin: 0;
}

.sandbox-tool-status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.sandbox-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sandbox-status--dev {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.sandbox-status--ready {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.sandbox-status--beta {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.sandbox-tool-arrow {
  color: var(--admin-text-muted);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.sandbox-tool-card:hover .sandbox-tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Workspace */
.sandbox-workspace {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sandbox-workspace-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--admin-line);
}

.sandbox-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sandbox-back-btn:hover {
  background: var(--admin-bg);
  border-color: var(--admin-accent);
}

.sandbox-workspace-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sandbox-workspace-content {
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 24px;
}

/* Tool Panel */
.sandbox-tool-panel {
  max-width: 800px;
}

.sandbox-panel-section {
  margin-bottom: 24px;
}

.sandbox-panel-section:last-child {
  margin-bottom: 0;
}

.sandbox-panel-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sandbox-panel-section h3 i {
  color: var(--admin-accent);
}

.sandbox-panel-desc {
  font-size: 14px;
  color: var(--admin-text-muted);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

/* Upload Zone */
.sandbox-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  background: var(--admin-bg);
  border: 2px dashed var(--admin-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sandbox-upload-zone:hover,
.sandbox-upload-zone.dragover {
  border-color: var(--admin-accent);
  background: rgba(236, 72, 153, 0.05);
}

.sandbox-upload-zone i {
  font-size: 48px;
  color: var(--admin-text-muted);
}

.sandbox-upload-zone span {
  font-size: 14px;
  color: var(--admin-text-muted);
}

/* File Preview */
.sandbox-file-preview {
  padding: 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.sandbox-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sandbox-file-info i {
  font-size: 24px;
  color: var(--admin-accent);
}

.sandbox-file-info span {
  flex: 1;
  font-size: 14px;
  color: var(--admin-text);
  font-weight: 500;
}

.sandbox-file-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 6px;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sandbox-file-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Input Group */
.sandbox-input-group {
  margin-bottom: 16px;
}

.sandbox-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sandbox-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.sandbox-input:focus {
  outline: none;
  border-color: var(--admin-accent);
}

.sandbox-input::placeholder {
  color: var(--admin-text-muted);
}

/* Results Section */
.sandbox-results {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--admin-line);
}

.sandbox-results h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sandbox-results h3 i {
  color: #22c55e;
}

.sandbox-result-section {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--admin-bg);
  border-radius: 8px;
}

.sandbox-result-section:last-child {
  margin-bottom: 0;
}

.sandbox-result-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-accent);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Button Styles */
.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-lg i {
  margin-right: 8px;
}

/* Loading State */
.sandbox-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--admin-text-muted);
}

.sandbox-loading i {
  font-size: 32px;
  margin-bottom: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   AGREEMENT ANALYZER STYLES
   ============================================================ */

/* Views */
.aa-view {
  animation: fadeIn 0.2s ease;
}

/* Header */
.aa-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-line);
}

.aa-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.aa-header h3 i {
  color: var(--admin-accent);
}

.aa-header .btn-primary {
  margin-left: auto;
}

.aa-profile-header-info {
  flex: 1;
}

.aa-profile-header-info h3 {
  margin-bottom: 4px;
}

.aa-profile-meta {
  font-size: 13px;
  color: var(--admin-text-muted);
}

/* Profiles Grid */
.aa-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* Profile Card */
.aa-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aa-profile-card:hover {
  border-color: var(--admin-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aa-profile-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.aa-profile-card-content {
  flex: 1;
  min-width: 0;
}

.aa-profile-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.aa-profile-card-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.aa-profile-card-meta span:not(:last-child)::after {
  content: '•';
  margin-left: 8px;
  opacity: 0.5;
}

.aa-profile-card-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--admin-text-muted);
}

.aa-profile-card-stats i {
  margin-right: 4px;
  opacity: 0.7;
}

.aa-profile-card-arrow {
  color: var(--admin-text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.aa-profile-card:hover .aa-profile-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Empty State */
.aa-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--admin-text-muted);
  text-align: center;
  grid-column: 1 / -1;
}

.aa-empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.aa-empty-state.small {
  padding: 32px 16px;
}

.aa-empty-state.small i {
  font-size: 32px;
  margin-bottom: 12px;
}

/* Form */
.aa-form {
  max-width: 500px;
}

.aa-form .sandbox-input-group {
  margin-bottom: 20px;
}

/* Sections */
.aa-section {
  margin-top: 32px;
}

.aa-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.aa-section-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.aa-section-header h4 i {
  color: var(--admin-accent);
  font-size: 14px;
}

.aa-count-badge {
  font-size: 12px;
  color: var(--admin-text-muted);
  background: var(--admin-bg);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Agreements List */
.aa-agreements-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aa-agreement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.aa-agreement-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.aa-agreement-info {
  flex: 1;
  min-width: 0;
}

.aa-agreement-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--admin-text);
}

.aa-agreement-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.aa-agreement-delete {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.aa-agreement-item:hover .aa-agreement-delete {
  opacity: 1;
}

/* Equipment Grid */
.aa-equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Equipment Card */
.aa-equipment-card {
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.aa-equipment-card:hover {
  border-color: var(--admin-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aa-equipment-card-header {
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid var(--admin-line);
}

.aa-equipment-type-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #3b82f6;
}

.aa-equipment-card-body {
  padding: 14px;
}

.aa-equipment-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--admin-text);
  margin-bottom: 8px;
}

.aa-equipment-detail {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aa-equipment-detail i {
  width: 14px;
  text-align: center;
  opacity: 0.7;
}

.aa-equipment-specs {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--admin-line);
  font-style: italic;
}

/* Equipment Groups (Collapsible) */
.aa-equipment-group {
  margin-bottom: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--admin-card);
}

.aa-equipment-group-header {
  padding: 14px 16px;
  background: var(--admin-bg);
  cursor: pointer;
  transition: background 0.2s;
}

.aa-equipment-group-header:hover {
  background: var(--admin-hover);
}

.aa-equipment-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aa-group-chevron {
  color: var(--admin-text-muted);
  font-size: 12px;
  transition: transform 0.2s;
}

.aa-equipment-group.collapsed .aa-group-chevron {
  transform: rotate(-90deg);
}

.aa-equipment-group-count {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-left: auto;
}

.aa-equipment-group-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--admin-card);
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.aa-equipment-group.collapsed .aa-equipment-group-items {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Cards inside groups don't need the full header */
.aa-equipment-group .aa-equipment-card {
  margin: 0;
}

.aa-equipment-group .aa-equipment-card-body {
  padding-top: 12px;
}

/* Page Range Selector */
.aa-page-range-section {
  margin: 20px 0;
  padding: 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
}

.aa-page-range-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--admin-text);
  margin-bottom: 8px;
}

.aa-page-range-header i {
  color: var(--admin-accent);
}

.aa-page-range-hint {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin: 0 0 16px 0;
}

.aa-page-range-inputs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.aa-page-range-inputs .sandbox-input-group {
  flex: 1;
  max-width: 120px;
  margin-bottom: 0;
}

.aa-page-range-inputs .sandbox-input {
  text-align: center;
}

.aa-page-range-to {
  padding-bottom: 12px;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.aa-page-range-preview {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--admin-line);
  font-size: 13px;
  color: var(--admin-accent);
  font-weight: 500;
}

/* Progress */
.aa-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  margin-top: 24px;
  background: var(--admin-bg);
  border-radius: 12px;
}

.aa-progress-spinner {
  font-size: 32px;
  color: var(--admin-accent);
  margin-bottom: 16px;
}

.aa-progress-text {
  font-weight: 600;
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 8px;
}

.aa-progress-detail {
  font-size: 13px;
  color: var(--admin-text-muted);
}

/* Results */
.aa-results-summary {
  margin-bottom: 24px;
}

.aa-results-summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
}

.aa-results-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.aa-results-summary-content {
  flex: 1;
}

.aa-results-summary-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.aa-results-summary-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--admin-text-muted);
}

.aa-results-summary-stats i {
  margin-right: 6px;
}

.aa-results-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--admin-line);
}

/* Button Variants */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--admin-line);
  color: var(--admin-text);
}

.btn-ghost:hover {
  background: var(--admin-bg);
  border-color: var(--admin-accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* ============================================================
   COMPANY PROFILE BUILDER STYLES
   ============================================================ */

/* Tool Layout */
.cpb-tool {
  max-width: 100%;
}

/* Input Section */
.cpb-input-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--admin-line);
}

.cpb-input-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cpb-input-section h3 i {
  color: var(--admin-accent);
}

.cpb-input-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.cpb-input-row .sandbox-input {
  flex: 1;
}

.cpb-input-row .btn {
  white-space: nowrap;
}

/* Status Message */
.cpb-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--admin-bg);
  border-radius: 8px;
  font-size: 14px;
  color: var(--admin-text);
}

.cpb-status i {
  font-size: 16px;
}

/* Cards Section */
.cpb-cards-section {
  margin-top: 24px;
}

.cpb-cards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cpb-cards-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cpb-cards-header h3 i {
  color: var(--admin-accent);
}

.cpb-card-count {
  font-size: 13px;
  color: var(--admin-text-muted);
  background: var(--admin-bg);
  padding: 4px 12px;
  border-radius: 12px;
}

/* Cards Grid */
.cpb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Empty State */
.cpb-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--admin-bg);
  border: 2px dashed var(--admin-line);
  border-radius: 12px;
  color: var(--admin-text-muted);
  text-align: center;
}

.cpb-empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Mini Card */
.cpb-mini-card {
  position: relative;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.cpb-mini-card:hover {
  border-color: var(--admin-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cpb-mini-card-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 6px;
  color: #ef4444;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

.cpb-mini-card:hover .cpb-mini-card-delete {
  opacity: 1;
}

.cpb-mini-card-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

.cpb-mini-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cpb-mini-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cpb-mini-card-title {
  flex: 1;
  min-width: 0;
}

.cpb-mini-card-title h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpb-mini-card-location {
  font-size: 12px;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cpb-mini-card-location i {
  font-size: 10px;
}

.cpb-mini-card-tagline {
  font-size: 13px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cpb-mini-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.cpb-mini-detail {
  font-size: 13px;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpb-mini-detail i {
  width: 14px;
  text-align: center;
  color: var(--admin-accent);
  font-size: 12px;
}

.cpb-mini-detail a {
  color: var(--admin-accent);
  text-decoration: none;
}

.cpb-mini-detail a:hover {
  text-decoration: underline;
}

.cpb-mini-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cpb-mini-tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--admin-text);
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 4px;
}

.cpb-mini-tag-more {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--admin-text-muted);
}

.cpb-mini-card-footer {
  padding-top: 10px;
  border-top: 1px solid var(--admin-line);
}

.cpb-mini-card-date {
  font-size: 11px;
  color: var(--admin-text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .cpb-input-row {
    flex-direction: column;
  }
  
  .cpb-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FLIP CARD STYLES FOR EQUIPMENT
   ============================================================ */

.aa-flip-card {
  perspective: 1000px;
  min-height: 160px;
}

.aa-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.aa-flip-card.flipped .aa-flip-card-inner {
  transform: rotateY(180deg);
}

.aa-flip-card-front,
.aa-flip-card-back {
  position: absolute;
  width: 100%;
  min-height: 160px;
  backface-visibility: hidden;
  border-radius: 10px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
}

.aa-flip-card-front {
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.aa-flip-card-back {
  transform: rotateY(180deg);
  padding: 12px;
  overflow-y: auto;
  max-height: 300px;
}

.aa-flip-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  transition: color 0.2s;
}

.aa-flip-btn:hover {
  color: var(--admin-accent);
}

.aa-flip-btn.back {
  color: var(--admin-text-muted);
}

.aa-flip-btn.back:hover {
  color: #ef4444;
}

.aa-equipment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--admin-line);
}

.aa-equipment-card-header.minimal {
  justify-content: flex-end;
  padding: 6px 8px;
  border-bottom: none;
}

.aa-equipment-card-body {
  padding: 12px;
  flex: 1;
}

.aa-equipment-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--admin-text);
  margin-bottom: 8px;
}

.aa-equipment-detail {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aa-equipment-detail i {
  width: 14px;
  text-align: center;
  color: var(--admin-accent);
}

.aa-equipment-detail.rate {
  color: #22c55e;
  font-weight: 600;
}

.aa-equipment-table-ref {
  font-size: 11px;
  color: var(--admin-text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--admin-line);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.aa-equipment-table-ref i {
  color: var(--admin-accent);
}

/* Back of card styles */
.aa-flip-card-back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.aa-equipment-type-badge.small {
  font-size: 10px;
  padding: 3px 8px;
}

.aa-flip-card-back-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--admin-text);
  margin-bottom: 6px;
}

.aa-flip-card-table-title {
  font-size: 11px;
  color: var(--admin-text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-line);
  line-height: 1.4;
}

.aa-fields-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aa-field-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--admin-line);
}

.aa-field-row:last-child {
  border-bottom: none;
}

.aa-field-label {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 500;
  flex-shrink: 0;
  max-width: 40%;
}

.aa-field-value {
  font-size: 12px;
  color: var(--admin-text);
  text-align: right;
  word-break: break-word;
}

.aa-no-fields {
  font-size: 12px;
  color: var(--admin-text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* ============================================================
   ROSTER BUILDER STYLES
   ============================================================ */

/* Views */
.rb-view {
  animation: fadeIn 0.2s ease;
}

/* Header */
.rb-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-line);
}

.rb-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.rb-header h3 i {
  color: #f97316;
}

/* Files List */
.rb-files-list {
  margin: 16px 0;
  padding: 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
}

.rb-files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--admin-text);
}

.rb-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  margin-bottom: 8px;
}

.rb-file-item:last-child {
  margin-bottom: 0;
}

.rb-file-item i {
  font-size: 18px;
  color: var(--admin-accent);
}

.rb-file-name {
  flex: 1;
  font-size: 14px;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-file-size {
  font-size: 12px;
  color: var(--admin-text-muted);
}

.rb-file-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 6px;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rb-file-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Extraction Summary */
.rb-extraction-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  margin-bottom: 24px;
}

.rb-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.rb-summary-content {
  flex: 1;
}

.rb-summary-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.rb-summary-stats {
  font-size: 14px;
  color: var(--admin-text-muted);
}

.rb-summary-stats i {
  margin-right: 6px;
}

/* Decision Question */
.rb-decision-question {
  text-align: center;
  padding: 24px;
  margin-bottom: 24px;
}

.rb-question-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.rb-decision-question h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 8px 0;
}

.rb-decision-question p {
  font-size: 14px;
  color: var(--admin-text-muted);
  margin: 0;
}

/* Decision Cards */
.rb-decision-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.rb-decision-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--admin-bg);
  border: 2px solid var(--admin-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rb-decision-card:hover {
  border-color: var(--admin-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rb-decision-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.rb-decision-card-content {
  flex: 1;
}

.rb-decision-card-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 6px 0;
}

.rb-decision-card-content p {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin: 0;
  line-height: 1.5;
}

.rb-decision-card-arrow {
  color: var(--admin-text-muted);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.rb-decision-card:hover .rb-decision-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Cards Grid */
.rb-contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  max-height: 500px;
  overflow-y: auto;
  padding: 4px;
}

.rb-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.rb-contact-card:hover {
  border-color: var(--admin-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rb-contact-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.rb-contact-card-info {
  flex: 1;
  min-width: 0;
}

.rb-contact-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.rb-contact-card-detail {
  font-size: 12px;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.rb-contact-card-detail i {
  font-size: 10px;
  opacity: 0.7;
}

.rb-contact-card-edit {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  color: var(--admin-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

.rb-contact-card:hover .rb-contact-card-edit {
  opacity: 1;
}

.rb-contact-card-edit:hover {
  background: var(--admin-card);
  color: var(--admin-accent);
  border-color: var(--admin-accent);
}

/* Results Actions */
.rb-results-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--admin-line);
}

/* Invite Preview */
.rb-invite-preview {
  margin-bottom: 24px;
}

.rb-invite-preview h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-invite-preview h4 i {
  color: var(--admin-accent);
}

.rb-email-preview {
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  overflow: hidden;
}

.rb-email-subject {
  padding: 12px 16px;
  background: var(--admin-card);
  border-bottom: 1px solid var(--admin-line);
  font-size: 13px;
  color: var(--admin-text);
}

.rb-email-body {
  padding: 20px;
  font-size: 14px;
  color: var(--admin-text);
  line-height: 1.6;
}

.rb-email-body p {
  margin: 0 0 12px 0;
}

.rb-email-body p:last-child {
  margin-bottom: 0;
}

/* Invite List */
.rb-invite-list-section {
  margin-bottom: 24px;
}

.rb-invite-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rb-invite-list-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-invite-list-header h4 i {
  color: var(--admin-accent);
}

.rb-invite-actions {
  display: flex;
  gap: 8px;
}

.rb-invite-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
}

.rb-invite-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-line);
  cursor: pointer;
  transition: background 0.2s ease;
}

.rb-invite-item:last-child {
  border-bottom: none;
}

.rb-invite-item:hover {
  background: var(--admin-bg);
}

.rb-invite-item.no-email {
  opacity: 0.5;
  cursor: not-allowed;
}

.rb-invite-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-accent);
}

.rb-invite-item-info {
  flex: 1;
  min-width: 0;
}

.rb-invite-item-name {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--admin-text);
}

.rb-invite-item-email {
  display: block;
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Invite Status Badges */
.rb-invite-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.rb-status-sent {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.rb-status-opened {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.rb-status-signed-up {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.rb-status-completed {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

/* Tracking Section */
.rb-tracking-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--admin-line);
}

.rb-tracking-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rb-tracking-section h4 i {
  color: var(--admin-accent);
}

.rb-tracking-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.rb-tracking-stat {
  text-align: center;
  padding: 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
}

.rb-tracking-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.rb-tracking-stat-label {
  font-size: 12px;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rb-tracking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rb-tracking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

.rb-tracking-item-info {
  flex: 1;
}

.rb-tracking-item-name {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--admin-text);
}

.rb-tracking-item-email {
  display: block;
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .sandbox-tools-grid {
    grid-template-columns: 1fr;
  }

  .sandbox-tool-card {
    flex-wrap: wrap;
  }

  .sandbox-tool-status {
    position: static;
    order: 3;
    width: 100%;
    margin-top: 12px;
  }

  .sandbox-workspace-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sandbox-workspace-content {
    padding: 16px;
  }
  
  .aa-flip-card {
    min-height: 180px;
  }
  
  .aa-flip-card-inner,
  .aa-flip-card-front,
  .aa-flip-card-back {
    min-height: 180px;
  }

  /* Roster Builder Mobile */
  .rb-decision-cards {
    grid-template-columns: 1fr;
  }

  .rb-contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .rb-tracking-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rb-header {
    flex-wrap: wrap;
  }

  .rb-header h3 {
    order: 2;
    width: 100%;
    margin-top: 12px;
  }

  .rb-modal {
    width: 95%;
    max-height: 90vh;
    margin: 5vh auto;
  }

  .rb-modal-row {
    flex-direction: column;
  }

  .rb-modal-field-small {
    flex: 1;
  }
}

/* ============================================
   ROSTER BUILDER - EMPLOYEE EDIT MODAL
   ============================================ */

.rb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.rb-modal {
  background: var(--admin-card);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-line);
  background: var(--admin-bg);
}

.rb-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rb-modal-header h3 i {
  color: var(--admin-accent);
}

.rb-modal-close {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.rb-modal-close:hover {
  background: var(--admin-line);
  color: var(--admin-text);
}

.rb-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.rb-modal-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.rb-modal-row:last-child {
  margin-bottom: 0;
}

.rb-modal-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rb-modal-field-small {
  flex: 0.5;
}

.rb-modal-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text-muted);
}

.rb-modal-field input,
.rb-modal-field textarea {
  padding: 10px 12px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.rb-modal-field input:focus,
.rb-modal-field textarea:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.rb-modal-field input::placeholder,
.rb-modal-field textarea::placeholder {
  color: var(--admin-text-muted);
  opacity: 0.6;
}

.rb-modal-field textarea {
  resize: vertical;
  min-height: 80px;
}

.rb-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--admin-line);
  background: var(--admin-bg);
}

.rb-modal-footer-right {
  display: flex;
  gap: 12px;
}

.rb-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.rb-btn-primary {
  background: var(--admin-accent);
  color: white;
}

.rb-btn-primary:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.rb-btn-secondary {
  background: var(--admin-line);
  color: var(--admin-text);
}

.rb-btn-secondary:hover {
  background: var(--admin-bg);
}

#rb-modal-delete {
  color: #ef4444;
}

#rb-modal-delete:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Contact Card Position Style */
.rb-contact-card-position {
  font-size: 13px;
  color: var(--admin-accent);
  font-weight: 500;
  margin-bottom: 4px;
}

/* Make contact cards clickable */
.rb-contact-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.rb-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--admin-accent);
}

/* ============================================
   ROSTER BUILDER - SAVED ROSTERS SIDEBAR
   ============================================ */

.rb-with-sidebar {
  display: flex;
  gap: 0;
}

.rb-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--admin-bg);
  border-right: 1px solid var(--admin-line);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
}

.rb-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-line);
}

.rb-sidebar-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-sidebar-header h4 i {
  color: var(--admin-accent);
}

.rb-new-roster-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--admin-accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.rb-new-roster-btn:hover {
  background: #ea580c;
  transform: scale(1.05);
}

.rb-saved-rosters-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.rb-no-rosters {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--admin-text-muted);
  text-align: center;
  gap: 12px;
}

.rb-no-rosters i {
  font-size: 32px;
  opacity: 0.5;
}

.rb-no-rosters span {
  font-size: 13px;
}

.rb-saved-roster-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rb-saved-roster-item:hover {
  border-color: var(--admin-accent);
  transform: translateX(2px);
}

.rb-saved-roster-item.active {
  border-color: var(--admin-accent);
  background: rgba(249, 115, 22, 0.1);
}

.rb-saved-roster-info {
  flex: 1;
  min-width: 0;
}

.rb-saved-roster-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.rb-saved-roster-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--admin-text-muted);
}

.rb-saved-roster-meta i {
  margin-right: 4px;
}

.rb-saved-roster-delete {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  color: var(--admin-text-muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.rb-saved-roster-item:hover .rb-saved-roster-delete {
  opacity: 1;
}

.rb-saved-roster-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.rb-main-content {
  flex: 1;
  min-width: 0;
  padding: 24px;
  overflow-y: auto;
}

/* Mobile: Hide sidebar, show as dropdown or collapse */
@media (max-width: 900px) {
  .rb-with-sidebar {
    flex-direction: column;
  }
  
  .rb-sidebar {
    width: 100%;
    min-width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--admin-line);
  }
  
  .rb-saved-rosters-list {
    max-height: 200px;
  }
  
  .rb-main-content {
    padding: 16px;
  }
}

/* ============================================
   ROSTER BUILDER - ENHANCED INVITE FLOW
   ============================================ */

/* Email Preview Enhancements */
.rb-email-preview {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  max-height: 400px;
  overflow-y: auto;
}

.rb-email-preview p {
  margin: 12px 0;
  line-height: 1.6;
}

.rb-email-preview ul {
  margin: 12px 0;
  padding-left: 24px;
}

.rb-email-preview li {
  margin: 6px 0;
}

/* Invite List Enhancements */
.rb-invite-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.rb-invite-item:hover {
  border-color: var(--admin-accent);
}

.rb-invite-item.has-status {
  opacity: 0.8;
}

.rb-invite-item.no-email {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}

.rb-invite-item-checkbox {
  flex-shrink: 0;
}

.rb-invite-item-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.rb-invite-item-info {
  flex: 1;
  min-width: 0;
}

.rb-invite-item-name {
  display: block;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 2px;
}

.rb-invite-item-email {
  display: block;
  font-size: 13px;
  color: var(--admin-text-muted);
}

.rb-invite-item-email em {
  color: #ef4444;
}

.rb-invite-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* No Email Section */
.rb-no-email-section {
  margin-top: 16px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

.rb-no-email-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ef4444;
  font-weight: 600;
  font-size: 14px;
}

.rb-no-email-section .rb-invite-item {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.15);
}

/* Invite Status Badges */
.rb-invite-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.rb-status-sent {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.rb-status-opened {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.rb-status-signed-up {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.rb-status-completed {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

/* Tracking Section Enhancements */
.rb-tracking-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
}

.rb-tracking-section h4 {
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text);
}

.rb-tracking-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.rb-tracking-stat {
  text-align: center;
  padding: 16px;
  background: var(--admin-bg);
  border-radius: 10px;
}

.rb-tracking-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--admin-accent);
}

.rb-tracking-stat-label {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

/* Tracking Groups */
.rb-tracking-group {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--admin-bg);
  border-radius: 10px;
}

.rb-tracking-group.rb-needs-followup {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.rb-tracking-group.rb-completed {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.rb-tracking-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-line);
  font-weight: 600;
  font-size: 13px;
  color: var(--admin-text);
}

.rb-tracking-group-header i {
  margin-right: 6px;
}

.rb-tracking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--admin-card);
  border-radius: 8px;
  margin-bottom: 6px;
}

.rb-tracking-item:last-child {
  margin-bottom: 0;
}

.rb-tracking-item-info {
  flex: 1;
  min-width: 0;
}

.rb-tracking-item-name {
  display: block;
  font-weight: 600;
  color: var(--admin-text);
  font-size: 14px;
}

.rb-tracking-item-email {
  display: block;
  font-size: 12px;
  color: var(--admin-text-muted);
}

.rb-tracking-item-time {
  display: block;
  font-size: 11px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.rb-tracking-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Button Styles */
.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--admin-line);
  color: var(--admin-text);
}

.btn-outline:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .rb-tracking-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rb-invite-item {
    flex-wrap: wrap;
  }
  
  .rb-invite-item-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}

/* ============================================================
   RESUME PROFILE BUILDER STYLES
   ============================================================ */

/* Layout with Sidebar */
.rpb-tool {
  max-width: 100%;
}

.rpb-with-sidebar {
  display: flex;
  gap: 0;
}

/* Sidebar */
.rpb-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--admin-bg);
  border-right: 1px solid var(--admin-line);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
}

.rpb-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-line);
}

.rpb-sidebar-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpb-sidebar-header h4 i {
  color: #8b5cf6;
}

.rpb-saved-profiles-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.rpb-no-profiles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--admin-text-muted);
  text-align: center;
  gap: 12px;
}

.rpb-no-profiles i {
  font-size: 32px;
  opacity: 0.5;
}

.rpb-no-profiles span {
  font-size: 13px;
}

/* Saved Profile Item */
.rpb-saved-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rpb-saved-profile-item:hover {
  border-color: #8b5cf6;
  transform: translateX(2px);
}

.rpb-saved-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.rpb-saved-profile-info {
  flex: 1;
  min-width: 0;
}

.rpb-saved-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.rpb-saved-profile-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
}

.rpb-saved-profile-meta i {
  margin-right: 4px;
}

.rpb-saved-profile-delete {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  color: var(--admin-text-muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
  opacity: 0;
}

.rpb-saved-profile-item:hover .rpb-saved-profile-delete {
  opacity: 1;
}

.rpb-saved-profile-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Main Content */
.rpb-main-content {
  flex: 1;
  min-width: 0;
  padding: 24px;
  overflow-y: auto;
}

/* Views */
.rpb-view {
  animation: fadeIn 0.2s ease;
}

/* Header */
.rpb-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-line);
}

.rpb-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.rpb-header h3 i {
  color: #8b5cf6;
}

.rpb-header-actions {
  display: flex;
  gap: 8px;
}

/* Profile Card */
.rpb-profile-card {
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.rpb-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rpb-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  color: #8b5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.rpb-card-info {
  flex: 1;
}

.rpb-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0 0 4px 0;
}

.rpb-card-location {
  font-size: 14px;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rpb-card-location i {
  color: #8b5cf6;
  font-size: 12px;
}

.rpb-card-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.rpb-contact-item {
  font-size: 14px;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpb-contact-item i {
  color: #8b5cf6;
  font-size: 12px;
}

.rpb-card-summary {
  font-size: 14px;
  color: var(--admin-text);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--admin-line);
}

/* Sections Container */
.rpb-sections-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section */
.rpb-section {
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  overflow: hidden;
}

.rpb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--admin-card);
  border-bottom: 1px solid var(--admin-line);
}

.rpb-section-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.rpb-section-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8b5cf6;
}

.rpb-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpb-toggle-label i {
  color: #8b5cf6;
}

.rpb-section-count {
  font-size: 12px;
  color: var(--admin-text-muted);
  background: var(--admin-bg);
  padding: 4px 10px;
  border-radius: 12px;
}

.rpb-section-items {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

/* Item Card */
.rpb-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.rpb-item-card:hover {
  border-color: #8b5cf6;
}

.rpb-item-checkbox {
  flex-shrink: 0;
  padding-top: 2px;
}

.rpb-item-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.rpb-item-content {
  flex: 1;
  min-width: 0;
}

.rpb-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 2px;
}

.rpb-item-subtitle {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
}

.rpb-item-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
  opacity: 0.8;
}

.rpb-item-desc {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--admin-line);
  line-height: 1.5;
}

/* Status Badges */
.rpb-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rpb-status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.rpb-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  text-transform: capitalize;
}

/* Skills Grid */
.rpb-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.rpb-skill-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text);
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.rpb-skill-tag:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

/* Empty Section */
.rpb-empty-section {
  padding: 24px;
  text-align: center;
  color: var(--admin-text-muted);
  font-size: 13px;
}

/* Detail View */
.rpb-detail-card {
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.rpb-detail-section {
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.rpb-detail-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpb-detail-section h4 i {
  color: #8b5cf6;
}

.rpb-detail-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--admin-line);
}

.rpb-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rpb-detail-item:first-child {
  padding-top: 0;
}

.rpb-quals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rpb-qual-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 6px;
}

.rpb-detail-footer {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--admin-line);
}

.rpb-detail-date {
  font-size: 12px;
  color: var(--admin-text-muted);
}

/* Mobile Responsive for Resume Profile Builder */
@media (max-width: 900px) {
  .rpb-with-sidebar {
    flex-direction: column;
  }
  
  .rpb-sidebar {
    width: 100%;
    min-width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--admin-line);
  }
  
  .rpb-saved-profiles-list {
    max-height: 200px;
  }
  
  .rpb-main-content {
    padding: 16px;
  }
  
  .rpb-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .rpb-card-contact {
    justify-content: center;
  }
}

/* ============================================================
   TRAINING SITE SCRAPER TOOL (v8.0)
   ============================================================ */

.ts-tool {
  min-height: 400px;
}

.ts-view {
  animation: fadeIn 0.3s ease;
}

.ts-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ts-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-header h3 i {
  color: #14b8a6;
}

.ts-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.ts-site-header-info {
  flex: 1;
}

.ts-site-header-info h3 {
  margin-bottom: 4px;
}

.ts-detail-url {
  font-size: 13px;
  color: var(--admin-text-muted);
  word-break: break-all;
}

/* Sites Grid */
.ts-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* Site Card */
.ts-site-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.ts-site-card:hover {
  border-color: #14b8a6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ts-site-card.needs-review {
  border-color: rgba(249, 115, 22, 0.5);
}

.ts-review-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.ts-site-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ts-site-card-content {
  flex: 1;
  min-width: 0;
}

.ts-site-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-site-card-url {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-site-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--admin-text-muted);
}

.ts-site-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ts-site-card-arrow {
  color: var(--admin-text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.ts-site-card:hover .ts-site-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Scrape Form */
.ts-scrape-form {
  max-width: 600px;
}

.ts-input-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--admin-text-muted);
}

/* Progress */
.ts-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  margin-top: 24px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
}

.ts-progress-spinner {
  font-size: 32px;
  color: #14b8a6;
}

.ts-progress-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
}

.ts-progress-detail {
  font-size: 13px;
  color: var(--admin-text-muted);
}

/* Results Summary */
.ts-results-summary {
  margin-bottom: 24px;
}

.ts-summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 12px;
}

.ts-summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.2);
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.ts-summary-content {
  flex: 1;
}

.ts-summary-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.ts-summary-url {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.ts-summary-stat {
  text-align: center;
  padding: 12px 20px;
  background: var(--admin-card);
  border-radius: 10px;
}

.ts-summary-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #14b8a6;
}

.ts-summary-label {
  font-size: 12px;
  color: var(--admin-text-muted);
}

/* Events List */
.ts-events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* Event Card */
.ts-event-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.ts-event-card:hover {
  border-color: var(--admin-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ts-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ts-event-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
}

.ts-event-type-badge.training { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.ts-event-type-badge.workshop { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.ts-event-type-badge.webinar { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.ts-event-type-badge.conference { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.ts-event-type-badge.seminar { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.ts-event-type-badge.recruiting { background: rgba(234, 179, 8, 0.15); color: #eab308; }

.ts-event-actions {
  display: flex;
  gap: 4px;
}

.ts-event-actions button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-event-actions button:hover {
  background: var(--admin-bg);
  color: var(--admin-text);
}

.ts-event-remove-btn:hover {
  color: #ef4444 !important;
}

.ts-event-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.ts-event-desc {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.ts-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--admin-bg);
  border-radius: 8px;
  margin-bottom: 12px;
}

.ts-event-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--admin-text-muted);
}

.ts-event-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ts-event-meta-row i {
  color: #14b8a6;
  width: 14px;
  text-align: center;
}

.ts-event-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #14b8a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ts-event-link:hover {
  color: #0d9488;
  text-decoration: underline;
}

/* Results Actions */
.ts-results-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--admin-line);
}

/* Site Detail */
.ts-site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  margin-bottom: 24px;
}

.ts-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--admin-text-muted);
}

.ts-meta-item i {
  color: #14b8a6;
}

.ts-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.ts-section {
  margin-bottom: 24px;
}

.ts-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ts-section-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-section-header h4 i {
  color: #14b8a6;
}

.ts-count-badge {
  font-size: 12px;
  color: var(--admin-text-muted);
  background: var(--admin-bg);
  padding: 4px 10px;
  border-radius: 12px;
}

/* Empty State */
.ts-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--admin-text-muted);
  background: var(--admin-bg);
  border: 1px dashed var(--admin-line);
  border-radius: 12px;
  grid-column: 1 / -1;
}

.ts-empty-state i {
  font-size: 32px;
  opacity: 0.5;
}

.ts-empty-state.small {
  padding: 24px;
}

.ts-empty-state.small i {
  font-size: 24px;
}

/* Modal */
.ts-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.ts-modal {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: var(--admin-card);
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ts-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-line);
}

.ts-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-modal-header h3 i {
  color: #14b8a6;
}

.ts-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-modal-close:hover {
  background: var(--admin-bg);
  color: var(--admin-text);
}

.ts-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.ts-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ts-form-grid .full-width {
  grid-column: 1 / -1;
}

.ts-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--admin-line);
}

/* Industry Chips */
.ts-industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ts-industry-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--admin-bg);
  border: 1px solid var(--admin-line);
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ts-industry-chip input {
  display: none;
}

.ts-industry-chip:hover {
  border-color: #14b8a6;
}

.ts-industry-chip.selected {
  background: rgba(20, 184, 166, 0.15);
  border-color: #14b8a6;
  color: #14b8a6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ts-sites-grid {
    grid-template-columns: 1fr;
  }
  
  .ts-events-list {
    grid-template-columns: 1fr;
  }
  
  .ts-form-grid {
    grid-template-columns: 1fr;
  }
  
  .ts-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ts-header-actions {
    margin-left: 0;
    width: 100%;
  }
  
  .ts-summary-card {
    flex-direction: column;
    text-align: center;
  }
  
  .ts-modal {
    max-height: 95vh;
  }
}
