/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 28px;
}

.tagline {
  font-size: 13px;
  color: var(--gray-500);
  padding-left: 16px;
  border-left: 1px solid var(--gray-200);
}

.header-nav {
  display: flex;
  gap: 8px;
}

.nav-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.nav-btn:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.nav-btn.active {
  background: var(--primary);
  color: white;
}

/* Main Content */
.main-content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Dashboard */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-header h2 {
  font-size: 24px;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}

.project-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pillar-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.pillar-badge.video {
  background: #dbeafe;
  color: #1d4ed8;
}

.pillar-badge.blog {
  background: #dcfce7;
  color: #16a34a;
}

.status-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge.draft { background: var(--gray-200); color: var(--gray-600); }
.status-badge.pre_production { background: #fef3c7; color: #d97706; }
.status-badge.production { background: #dbeafe; color: #2563eb; }
.status-badge.post_production { background: #e0e7ff; color: #4f46e5; }
.status-badge.complete { background: #dcfce7; color: #16a34a; }
.status-badge.pending { background: var(--gray-200); color: var(--gray-600); }
.status-badge.in_progress { background: #dbeafe; color: #2563eb; }
.status-badge.review { background: #fef3c7; color: #d97706; }
.status-badge.approved { background: #dcfce7; color: #16a34a; }
.status-badge.published { background: #6366f1; color: white; }

.project-card-description {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.asset-count {
  font-size: 13px;
  color: var(--gray-500);
}

.project-date {
  font-size: 12px;
  color: var(--gray-400);
}

/* Phase Indicator */
.phase-indicator {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.phase {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}

.phase.active {
  color: var(--primary);
}

.phase.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Steps */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step-card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.step-card h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-description {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-50);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-warning:hover {
  background: #d97706;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  width: 100%;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

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

/* Pillar Selector */
.pillar-selector {
  margin: 24px 0;
}

.pillar-selector h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pillar-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillar-option input {
  display: none;
}

.pillar-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.pillar-option input:checked + .pillar-card {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pillar-card p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.pillar-card ul {
  list-style: none;
  font-size: 13px;
  color: var(--gray-600);
}

.pillar-card li {
  padding: 2px 0;
}

.pillar-card li::before {
  content: '+ ';
  color: var(--success);
  font-weight: 600;
}

/* Angles Selector */
.angles-selector {
  margin: 24px 0;
}

.angles-selector h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.angles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.angle-item {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.angle-item:hover {
  border-color: var(--gray-300);
}

.angle-item.selected {
  border-color: var(--primary);
  background: white;
}

.angle-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.angle-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.angle-tag {
  padding: 2px 6px;
  background: var(--gray-200);
  border-radius: 4px;
}

.angle-tag.tofu { background: #dcfce7; color: #16a34a; }
.angle-tag.mofu { background: #fef3c7; color: #d97706; }
.angle-tag.bofu { background: #fee2e2; color: #dc2626; }

/* Analysis Result */
.analysis-result {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.analysis-item {
  margin-bottom: 8px;
}

.analysis-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis-value {
  font-size: 14px;
  font-weight: 500;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* Project View */
.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.project-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-title h2 {
  font-size: 24px;
  font-weight: 600;
}

.project-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

/* Sidebar */
.project-sidebar {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 88px;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-item .label {
  color: var(--gray-500);
}

.detail-item .value {
  font-weight: 500;
  text-transform: capitalize;
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s;
}

.progress-text {
  font-size: 12px;
  color: var(--gray-500);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: var(--gray-50);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.upload-zone p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 12px;
  color: var(--gray-400);
}

.upload-progress {
  margin-top: 12px;
}

.upload-progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.upload-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 50%;
  background: var(--primary);
  animation: progress 1s ease-in-out infinite;
}

@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.upload-status {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  display: block;
}

/* Transcript Section */
#transcript-input {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 13px;
  margin-bottom: 12px;
  resize: vertical;
}

/* Assets Container */
.assets-container {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
}

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

.assets-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.assets-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-right: 4px;
}

.assets-filter {
  display: flex;
  gap: 4px;
}

.filter-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--border-radius);
}

.filter-btn:hover {
  background: var(--gray-100);
}

.filter-btn.active {
  background: var(--gray-800);
  color: white;
}

/* Assets Grid */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.asset-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.asset-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.asset-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.asset-icon {
  font-size: 24px;
}

.asset-type-badge {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.asset-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.asset-card-preview {
  font-size: 13px;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.asset-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
}

.asset-assignee {
  font-size: 12px;
  color: var(--gray-500);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-400);
}

.modal-close:hover {
  color: var(--gray-600);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-assignee {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.modal-assignee select {
  padding: 4px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 13px;
}

.modal-content-area {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--gray-200);
}

/* Social Posts Container */
.social-posts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-post-variation {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 16px;
}

.variation-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-post-variation p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.social-post-variation .hashtags {
  color: var(--primary);
  font-size: 13px;
}

.thread-posts {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-300);
}

.thread-item {
  padding-left: 16px;
  border-left: 2px solid var(--gray-300);
  margin: 8px 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Settings Button */
.settings-btn {
  font-size: 18px;
  padding: 8px 12px;
}

/* AI Provider Selector */
.ai-provider-selector {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.ai-provider-selector h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ai-provider-options {
  display: flex;
  gap: 12px;
}

.ai-provider-option input {
  display: none;
}

.provider-card {
  padding: 12px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.provider-card:hover {
  border-color: var(--gray-300);
}

.ai-provider-option input:checked + .provider-card {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.provider-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.provider-model {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Section Hint */
.section-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* Asset Types Selection Grid */
.assets-to-generate {
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.assets-to-generate h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.asset-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.asset-type-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.asset-type-item:hover {
  border-color: var(--gray-300);
}

.asset-type-item.selected {
  border-color: var(--primary);
  background: white;
}

.asset-type-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.asset-type-item .icon {
  font-size: 20px;
}

.asset-type-item .info {
  flex: 1;
}

.asset-type-item .name {
  font-size: 14px;
  font-weight: 500;
}

.asset-type-item .desc {
  font-size: 12px;
  color: var(--gray-500);
}

/* Settings Modal */
.modal-large {
  max-width: 900px;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* AI Model Settings */
.ai-model-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.model-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

.provider-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.provider-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.provider-hint {
  font-size: 12px;
  color: var(--gray-500);
}

.model-input {
  width: 280px;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.model-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-asset-types {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-asset-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

.settings-asset-item .icon {
  font-size: 24px;
}

.settings-asset-item .info {
  flex: 1;
}

.settings-asset-item .name {
  font-size: 14px;
  font-weight: 500;
}

.settings-asset-item .desc {
  font-size: 12px;
  color: var(--gray-500);
}

.settings-asset-item .category {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--gray-200);
  border-radius: 4px;
  text-transform: capitalize;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Category Headers in Settings */
.category-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.category-header:first-child {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
  }

  .tagline {
    display: none;
  }

  .main-content {
    padding: 16px;
  }

  .pillar-options {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-content {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }
}
