:root {
  --bg-primary: #f6f2ee;
  --bg-card: #fff;
  --primary: #2a5674;
  --secondary: #c79d7f;
  --accent: #e9d8cb;
  --text-primary: #383838;
  --text-secondary: #666;
  --innerself: #8e9aaf;
  --actions: #7eb5b0;
  --body: #e1b16a;
  --heart: #d98c74;
  --communication: #d46c6c;
  --mind: #8bba9c;
  --spirit: #c2a68b;
  --relationships: #c27b55;
  --intuition: #a587ca;
  --highlight: #ffeb3b;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
}

.card {
  background-color: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 86, 116, 0.15);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #e5e7eb;
}

/* VIP link highlighting */
.vip-link {
  background-color: var(--secondary) !important;
  color: white !important;
  font-weight: bold !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(199, 157, 127, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(199, 157, 127, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(199, 157, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(199, 157, 127, 0);
  }
}

.timeline-container {
  overflow-x: auto;
  position: relative;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) #f1f1f1;
}

.timeline-container::-webkit-scrollbar {
  height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 4px;
}

.gantt-row {
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #f3f4f6;
}

.gantt-label {
  position: sticky;
  left: 0;
  z-index: 30;
  background-color: white;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 160px;
  font-weight: 500;
  border-right: 1px solid #f3f4f6;
}

.gantt-bar {
  position: absolute;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gantt-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.month-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(203, 213, 225, 0.5);
  z-index: 1;
}

.tooltip {
  visibility: hidden;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 5px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gantt-bar:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.aspect-innerself { background-color: var(--innerself); }
.aspect-actions { background-color: var(--actions); }
.aspect-body { background-color: var(--body); }
.aspect-heart { background-color: var(--heart); }
.aspect-communication { background-color: var(--communication); }
.aspect-mind { background-color: var(--mind); }
.aspect-spirit { background-color: var(--spirit); }
.aspect-relationships { background-color: var(--relationships); }
.aspect-intuition { background-color: var(--intuition); }

/* Colored aspect badges */
.aspect-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Aspect name styling for overlaps section */
.aspect-name {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
}

/* VIP link highlight */
.vip-highlight {
  display: inline-block;
  background-color: var(--secondary);
  color: white !important;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vip-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-left-color: var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  padding: 1.5rem;
}

.input-wrapper {
  position: relative;
}

.custom-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: white;
  transition: all 0.2s;
}

.custom-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(199, 157, 127, 0.1);
}

.custom-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.overlap-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s;
  background-color: white;
}

.overlap-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.timeline-header {
  height: 40px;
  background-color: #f9fafb;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 10;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* Enhanced form elements */
.form-card {
  background-image: linear-gradient(to right bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.98));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Download button enhancement */
.download-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: #f3f4f6;
  transition: all 0.2s ease;
}

.download-link:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
}

/* Responsive improvements */
@media (max-width: 640px) {
  .timeline-container {
    max-height: 400px;
    overflow-y: auto;
  }
  
  .gantt-label {
    width: 120px;
  }
}

/* Added scrolling indicator */
.scroll-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline-container:hover .scroll-indicator {
  opacity: 1;
}

/* Summary text area styling */
.summary-textarea {
  background-color: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  resize: none;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all 0.2s;
}

.summary-textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(199, 157, 127, 0.1);
}

/* Copy button enhancement */
.copy-btn {
  position: relative;
}

.copy-btn::after {
  content: "Copied!";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.copy-btn.copied::after {
  opacity: 1;
}