/* ── Rally ATL Data Export Center Stylesheet ── */

.export-workspace {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.export-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.export-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.export-card-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.export-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-coaches {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.icon-lessons {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.icon-students {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.icon-coaching-logs {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}


.btn-export-download {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
}

.preview-body {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.fields-panel {
  width: 230px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.fields-panel-header {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}

.fields-list {
  flex: 1;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-white);
}

.fields-empty-msg {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 16px 0;
  text-align: center;
}

.preview-textarea-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.csv-preview-textarea {
  width: 100%;
  height: 380px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Monaco, monospace;
  font-size: 12px;
  background: black;
  color: white;
  padding: 6px;
  resize: vertical;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
  outline: none;
}

@media (max-width: 768px) {
  .preview-body {
    flex-direction: column;
  }

  .fields-panel {
    width: 100%;
  }
}

.export-details h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.export-details p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.export-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.preview-section {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.preview-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-group {
  display: flex;
  gap: 8px;
}

.tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background: #f8fafc;
  color: var(--text-white);
}

.tab-btn.active {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Toast styling */
.alert-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-left: 6px solid var(--success);
  padding: 16px 28px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.alert-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}