:root {
  --bg-color: #020617;
  --surface-color: #0f172a;
  --surface-hover: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.4);
  --info: #0ea5e9;
  --warning: #f59e0b;
  --purple: #8b5cf6;
  --muted: #94a3b8;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  color: #f8fafc;
  min-height: 100vh;
  background-attachment: fixed;
}

.max-w-7xl {
  max-width: 1400px;
  margin: 0 auto;
}

.text-purple { color: var(--purple); }

/* Typography */
.text-gradient {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.small-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Glass & Surfaces */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.sticky-topbar {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

/* Icons & Badges */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
}

.pill {
  border: 1px solid;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
}

/* Progress Bar */
.global-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}
.global-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Journey Grid Layout */
.phase-section {
  margin-bottom: 2.5rem;
}
.phase-header {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 12px;
}

/* Day Cards */
.day-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.day-card:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.day-card.completed {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.day-card.completed .day-number {
  color: var(--success);
}

.day-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 8px;
}

/* Mini dots inside day card */
.task-dots {
  display: flex;
  gap: 4px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.dot.active {
  background: var(--success);
  box-shadow: 0 0 5px var(--success);
}

/* Offcanvas (Sidebar) */
.glass-offcanvas {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
}

/* Task Checkbox Items */
.task-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.task-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.task-item.checked {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}
.task-item.checked .task-desc {
  text-decoration: line-through;
  opacity: 0.6;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px; /* RTL spacing */
  transition: all 0.2s;
}
.task-item.checked .custom-checkbox {
  background: var(--success);
  border-color: var(--success);
}
.custom-checkbox i {
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.task-item.checked .custom-checkbox i {
  opacity: 1;
}

.task-content {
  flex-grow: 1;
  text-align: right;
}
.task-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}
.task-item.checked .task-label { color: var(--success); }
.task-desc {
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
}

/* Input / Textarea / Accordion */
.custom-textarea {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--border-color) !important;
  color: white !important;
  border-radius: 16px;
  resize: none;
}
.custom-textarea:focus {
  box-shadow: 0 0 0 0.25rem var(--primary-glow) !important;
  border-color: var(--primary) !important;
}

.custom-accordion .accordion-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}
.custom-accordion .accordion-button {
  background: transparent;
  color: white;
  box-shadow: none !important;
  font-weight: 600;
}
.custom-accordion .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
.custom-accordion .accordion-button::after {
  filter: invert(1);
}

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.transition-all { transition: all 0.3s ease; }

/* Custom App Additions */
.min-h-120px {
  min-height: 120px;
}

.btn-linkedin {
  background-color: #0a66c2;
  color: white;
  border: none;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
}

.btn-linkedin:hover {
  background-color: #004182;
  color: white;
}