/* DashboardProjects Component Styles */

/* CSS Variables for consistent theming */
:root {
  /* Color Palette - Professional Dark Theme */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  --bg-active: #475569;

  /* Accent Colors */
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-secondary: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #1e293b;

  /* Border Colors */
  --border-primary: #334155;
  --border-secondary: #475569;
  --border-accent: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Projects Section */
.projectsSection {
  padding: var(--spacing-xl);
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.sectionHeader h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Loading and Error States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.errorMessage {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-danger);
  color: var(--accent-danger);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.errorMessage button {
  background: none;
  border: none;
  color: var(--accent-danger);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  margin-left: var(--spacing-md);
}

/* Projects Grid */
.projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

/* Project Card */
.projectCard {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  position: relative;
}

.projectCard:hover {
  border-color: var(--border-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.projectImage {
  position: relative;
  height: 200px;
  background-color: var(--bg-hover);
  overflow: hidden;
}

.projectImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.projectCard:hover .projectImage img {
  transform: scale(1.05);
}

.imagePlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: var(--spacing-sm);
}

.imageNotAvailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-hover), var(--bg-tertiary));
  color: var(--text-muted);
  gap: var(--spacing-sm);
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-md);
  margin: var(--spacing-md);
  height: calc(100% - 2rem);
  transition: var(--transition-fast);
}

.imageNotAvailable span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.featuredBadge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: linear-gradient(135deg, var(--accent-warning), #f97316);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.projectContent {
  padding: var(--spacing-lg);
}

.projectContent h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.shortDescription {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  font-style: normal; /* Removed italic */
  opacity: 0.9;
}

.description {
  max-height: none !important;
  overflow: visible !important;
  word-wrap: break-word;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md) !important;
}

.projectMeta {
  margin-bottom: var(--spacing-md);
}

.statusBadge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  background-color: var(--bg-hover);
  color: var(--text-secondary);
  margin-right: 5px;
}

.statusCompleted {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(16, 185, 129, 0.25)
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.statusInProgress {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(37, 99, 235, 0.25)
  );
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusPlanning {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15),
    rgba(147, 51, 234, 0.25)
  );
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.statusPlanned {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(79, 70, 229, 0.25)
  );
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.statusOnHold {
  background: linear-gradient(
    135deg,
    rgba(251, 113, 133, 0.15),
    rgba(244, 63, 94, 0.25)
  );
  color: #f43f5e;
  border: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 2px 8px rgba(251, 113, 133, 0.2);
}

.statusCanceled {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(220, 38, 38, 0.25)
  );
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
  position: relative;
}

.statusCanceled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.statusPrototype {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.15),
    rgba(99, 102, 241, 0.25),
    rgba(165, 180, 252, 0.15)
  );
  color: #6366f1;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.2);
}

.statusLaunched {
  background: linear-gradient(
    135deg,
    rgba(192, 31, 192, 0.15),
    rgba(192, 31, 192, 0.25),
    rgba(192, 31, 192, 0.15)
  );
  color: #c01fc0;
  border: 1px solid rgba(192, 31, 192, 0.4);
  box-shadow: 0 2px 8px rgba(192, 31, 192, 0.3);
}

.statusMetrics {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.15),
    rgba(59, 130, 246, 0.25),
    rgba(147, 197, 253, 0.15)
  );
  color: #3b82f6;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.statusAwarded {
  background: linear-gradient(
    135deg,
    rgba(255, 154, 0, 0.15),
    rgba(255, 109, 0, 0.25),
    rgba(230, 81, 0, 0.15)
  );
  color: #ca5801;
  border: 1px solid rgba(255, 154, 0, 0.4);
  box-shadow: 0 2px 8px rgba(255, 109, 0, 0.3);
}

.statusPassed {
  background: linear-gradient(
    135deg,
    rgba(144, 238, 144, 0.25),
    rgba(101, 185, 9, 0.35),
    rgba(173, 255, 47, 0.25)
  );
  color: #b4ff04;
  border: 1px solid rgba(180, 255, 4, 0.8);
  box-shadow: 0 2px 6px rgba(180, 255, 4, 0.4);
}

.statusAchievement {
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.18),
    rgba(184, 134, 11, 0.28),
    rgba(218, 165, 32, 0.18)
  );
  color: #daa520;
  font-weight: 600;
  border: 1px solid rgba(218, 165, 32, 0.75);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.35),
    0 0 6px rgba(218, 165, 32, 0.25);
  transition: all 0.3s ease;
}

.statusArchived {
  background: linear-gradient(
    135deg,
    rgba(156, 163, 175, 0.18),
    rgba(120, 85, 60, 0.25),
    rgba(75, 85, 99, 0.18)
  );
  color: #6b4f3f; /* muted brown-gray text */
  border: 1px solid rgba(120, 85, 60, 0.5);
  box-shadow: 0 2px 6px rgba(107, 114, 128, 0.2);
  border-radius: 8px;
  opacity: 0.92;
  font-weight: 500;
}

.statusDefault {
  background: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.15),
    rgba(100, 116, 139, 0.25)
  );
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
}

/* Animations for specific statuses */
@keyframes pulse-blue {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 2px 15px rgba(59, 130, 246, 0.4);
  }
}

@keyframes pulse-yellow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow: 0 2px 15px rgba(251, 191, 36, 0.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes glow-green {
  0% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.5);
  }
}

@keyframes achievement-glow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.6),
      0 0 30px rgba(236, 72, 153, 0.3);
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .statusInProgress,
  .statusOnHold,
  .statusPrototype,
  .statusLaunched,
  .statusAwarded,
  .statusAchievement {
    animation: none;
  }
}

.techStack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  min-height: 0;
}

.techTag {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition-fast);
  border: 1px solid var(--border-primary);
}

.techTag:hover {
  background-color: var(--bg-active);
  border-color: var(--border-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Hide tech stack when empty */
.techStack:empty {
  display: none;
  margin-bottom: 0;
}

.projectLinks {
  display: flex;
  gap: var(--spacing-lg);
}

.projectLinks a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: var(--transition-fast);
}

.projectLinks a:hover {
  color: var(--accent-primary-hover);
}

.liveUrlBtn {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-primary-hover)
  );
  color: white !important;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.liveUrlBtn:hover {
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--accent-primary-hover), #1d4ed8);
}

.projectActions {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  display: flex;
  gap: var(--spacing-sm);
  opacity: 0;
  transition: var(--transition-fast);
}

.projectCard:hover .projectActions {
  opacity: 1;
}

.projectActions .iconBtn {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  width: 32px;
  height: 32px;
}

.projectActions .iconBtn:hover {
  background-color: var(--accent-primary);
}

.projectActions .iconBtn.featured {
  color: var(--accent-warning);
  background-color: rgba(245, 158, 11, 0.2);
}

.projectActions .iconBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Styles */
.btnPrimary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-primary-hover)
  );
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
}

.btnPrimary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btnPrimary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btnSecondary {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
}

.btnSecondary:hover {
  background-color: var(--bg-active);
  border-color: var(--border-accent);
}

.btnDanger {
  background-color: var(--accent-danger);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
}

.btnDanger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.iconBtn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconBtn:hover:not(:disabled) {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.iconBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Slide Panel */
.slidePanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.slidePanelHeader {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slidePanelHeader h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.closeBtn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.closeBtn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.slidePanelContent {
  flex: 1;
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.slidePanelFooter {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-primary);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.formGroup label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.formGroup input,
.formGroup textarea,
.formGroup select {
  background-color: var(--bg-hover);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.formGroup input:focus,
.formGroup textarea:focus,
.formGroup select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.formGroup textarea {
  resize: vertical;
  min-height: 80px;
}

.formGroup select {
  cursor: pointer;
}

/* Error States */
.errorInput {
  border-color: var(--accent-danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.errorText {
  color: var(--accent-danger);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: var(--spacing-xs);
}

.featuredToggle {
  margin-top: var(--spacing-sm);
}

.featuredLabel {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  position: relative;
}

.featuredLabel input[type="checkbox"] {
  display: none;
}

.featuredSlider {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-primary);
  border-radius: 15px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px;
}

.featuredSlider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition-fast);
  transform: translateX(0);
}

.featuredLabel input[type="checkbox"]:checked + .featuredSlider {
  background: linear-gradient(135deg, var(--accent-warning), #f97316);
  border-color: var(--accent-warning);
}

.featuredLabel input[type="checkbox"]:checked + .featuredSlider::before {
  background-color: white;
  transform: translateX(30px);
}

.featuredSlider svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  transition: var(--transition-fast);
  z-index: 1;
}

.featuredLabel input[type="checkbox"]:checked + .featuredSlider svg {
  color: white;
}

.featuredText {
  color: var(--text-primary);
  font-weight: 500;
}

/* Upload Area */
.uploadArea {
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.uploadArea:hover,
.uploadArea.dragActive {
  border-color: var(--accent-primary);
  background-color: rgba(59, 130, 246, 0.05);
}

.uploadPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-muted);
}

.imagePreview {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto;
}

.imagePreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clearImageBtn {
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-xs);
  background-color: var(--accent-danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clearImageBtn:hover {
  background-color: #dc2626;
}

/* Modal Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-xl);
}

.modal h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.modalActions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projectsGrid {
    grid-template-columns: 1fr;
  }

  .slidePanel {
    width: 100%;
  }

  .sectionHeader {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  .projectLinks {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .featuredLabel {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
}

.emptyMessage {
  grid-column: 1 / -1; /* Span full width of grid */
  text-align: center;
  color: var(--text-muted);
  padding: var(--spacing-2xl);
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-primary);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Responsive adjustments for empty message */
@media (max-width: 768px) {
  .emptyMessage {
    padding: var(--spacing-xl);
    margin: var(--spacing-md) 0;
  }

  .emptyMessage h3 {
    font-size: 1.1rem;
  }

  .emptyMessage p {
    font-size: 0.85rem;
  }
}

/* Add these styles to your DashboardProjects.module.css file */

/* Rich Text Editor Styles */
.richTextContainer {
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-hover);
}

.richTextToolbar {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-primary);
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.toolbarBtn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  position: relative;
}

.toolbarBtn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-secondary);
  transform: translateY(-1px);
}

.toolbarBtn.active {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Template Dropdown Styles */
.templateDropdown {
  position: relative;
  display: inline-block;
}

.templateBtn {
  background: linear-gradient(135deg, var(--accent-secondary), #059669);
  color: white;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.8rem;
  font-weight: 500;
  height: 32px;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.templateBtn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.templateMenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-fast);
  margin-top: var(--spacing-xs);
}

.templateDropdown:hover .templateMenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.templateOption {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--spacing-sm) var(--spacing-md);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-primary);
}

.templateOption:last-child {
  border-bottom: none;
}

.templateOption:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.templateOption:first-child {
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.templateOption:last-child {
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.toolbarDivider {
  width: 1px;
  height: 20px;
  background-color: var(--border-primary);
  margin: 0 var(--spacing-sm);
}

.richTextarea {
  width: 100%;
  border: none;
  background-color: transparent;
  color: var(--text-primary);
  padding: var(--spacing-md);
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
}

.richTextarea:focus {
  outline: none;
}

.richTextPreview {
  padding: var(--spacing-md);
  min-height: 200px;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.6;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-primary);
  border-radius: var(--radius-sm);
  margin: var(--spacing-md);
}

.richTextPreview h2 {
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: var(--spacing-sm);
}

.richTextPreview h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.richTextPreview strong {
  color: var(--text-primary);
  font-weight: 700;
}

.richTextPreview em {
  color: var(--text-secondary);
  font-style: italic;
}

.richTextPreview ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

.richTextPreview li {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.richTextPreview br {
  margin-bottom: var(--spacing-sm);
}

.formattingHelp {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05),
    rgba(16, 185, 129, 0.05)
  );
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
}

.formattingHelp small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md) !important;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.description h2 {
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--accent-primary);
  padding-bottom: 2px;
}

.description h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: var(--spacing-xs) 0;
}

.description strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.description em {
  color: var(--text-muted);
  font-style: italic;
}

.description ul {
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
}

.description li {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.description br {
  margin-bottom: 2px;
}

/* Improved Clear Image Button */
.clearImageBtn {
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-xs);
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.clearImageBtn:hover {
  background-color: var(--accent-danger);
  transform: scale(1.1);
}

.imagePreview {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto;
  border: 2px solid var(--border-secondary);
}

.imagePreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Smart formatting animations */
@keyframes smartInsert {
  0% {
    background-color: rgba(59, 130, 246, 0.1);
  }
  100% {
    background-color: transparent;
  }
}

.richTextarea.smart-insert {
  animation: smartInsert 0.5s ease-out;
}

/* Responsive adjustments for rich text editor */
@media (max-width: 768px) {
  .richTextToolbar {
    flex-wrap: wrap;
    padding: var(--spacing-sm);
    gap: var(--spacing-xs);
  }

  .toolbarBtn {
    width: 28px;
    height: 28px;
  }

  .templateBtn {
    font-size: 0.75rem;
    padding: var(--spacing-xs);
    height: 28px;
  }

  .templateMenu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 300px;
  }

  .templateDropdown:hover .templateMenu {
    transform: translate(-50%, -50%);
  }

  .richTextarea,
  .richTextPreview {
    font-size: 0.85rem;
    min-height: 150px;
  }

  .slidePanel {
    width: 100%;
  }
}

/* Loading state for toolbar buttons */
.toolbarBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.richTextContainer:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.templateMenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--border-primary);
}

.templateMenu::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 21px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--bg-secondary);
}

/* Success animation for template insertion */
@keyframes templateInserted {
  0% {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  100% {
    border-color: var(--border-primary);
    box-shadow: none;
  }
}

.richTextContainer.template-inserted {
  animation: templateInserted 1s ease-out;
}

/* Smart list continuation indicator */
.richTextarea[data-list-mode="true"] {
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent calc(var(--spacing-md) - 2px),
    rgba(16, 185, 129, 0.1) calc(var(--spacing-md) - 2px),
    rgba(16, 185, 129, 0.1) calc(var(--spacing-md) + 2px),
    transparent calc(var(--spacing-md) + 2px)
  );
}

.richTextPreview h2 {
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: var(--spacing-sm);
}

.richTextPreview h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.richTextPreview strong {
  color: var(--text-primary);
  font-weight: 700;
}

.richTextPreview em {
  color: var(--text-secondary);
  font-style: italic;
}

.richTextPreview ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

.richTextPreview li {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.richTextPreview br {
  margin-bottom: var(--spacing-sm);
}

.formattingHelp {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
}

.formattingHelp small {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md) !important;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.description h2 {
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--accent-primary);
  padding-bottom: 2px;
}

.description h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: var(--spacing-xs) 0;
}

.description strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.description em {
  color: var(--text-muted);
  font-style: italic;
}

.description ul {
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
}

.description li {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.description br {
  margin-bottom: 2px;
}

/* Improved Clear Image Button */
.clearImageBtn {
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-xs);
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}

.clearImageBtn:hover {
  background-color: var(--accent-danger);
  transform: scale(1.1);
}

.imagePreview {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto;
  border: 2px solid var(--border-secondary);
}

.imagePreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustments for rich text editor */
@media (max-width: 768px) {
  .richTextToolbar {
    flex-wrap: wrap;
    padding: var(--spacing-sm);
  }

  .toolbarBtn {
    width: 28px;
    height: 28px;
  }

  .richTextarea,
  .richTextPreview {
    font-size: 0.85rem;
    min-height: 150px;
  }

  .slidePanel {
    width: 100%;
  }
}

/* Loading state for toolbar buttons */
.toolbarBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.richTextContainer:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.projectDescription {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
}

.projectDescription h2 {
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: var(--spacing-sm);
}

.projectDescription h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.projectDescription strong {
  color: var(--text-primary);
  font-weight: 600;
}

.projectDescription em {
  color: var(--text-secondary);
  font-style: italic;
}

.projectDescription ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
  list-style-type: disc;
}

.projectDescription li {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.projectDescription br {
  line-height: 1.7;
}

@media (max-width: 768px) {
  .modalContainer {
    width: 95vw;
    max-width: none;
    margin: var(--spacing-md);
    max-height: calc(100vh - 2rem);
  }

  .projectDescription {
    font-size: 0.9rem;
  }

  .projectDescription h2 {
    font-size: 1.2rem;
  }

  .projectDescription h3 {
    font-size: 1.1rem;
  }

  .shortDescription {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .modalContainer {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  .modalContent {
    padding: var(--spacing-md);
  }

  .projectDescription {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* Blue bullets in lists */
.richTextPreview li::marker,
.description li::marker,
.projectDescription li::marker {
  color: var(--accent-primary);
}

.toggleDescription {
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: var(--spacing-xs);
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
}

.toggleDescription:hover {
  text-decoration: underline;
}

.description.expanded {
  word-wrap: break-word; /* Breaks long words if needed */
  max-height: none !important;
  overflow: visible !important;
}

.description li,
.richTextPreview li {
  list-style-type: none; /* remove default bullet */
}

.description li::before,
.richTextPreview li::before {
  content: "• "; /* real bullet */
  color: var(--accent-primary);
  font-weight: bold;
}

.helpText {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  display: block;
}

.infoBox {
  background: #e3f2fd;
  border-left: 3px solid #2196f3;
  padding: 12px;
  border-radius: 4px;
  margin-top: 16px;
}

.infoBox p {
  margin: 0;
  font-size: 14px;
  color: #1976d2;
}

.positionSelect {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
}

.positionSelect:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.positionBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 10px;

  background: linear-gradient(
    135deg,
    rgba(125, 211, 252, 0.15),
    /* light cyan-blue */ rgba(56, 189, 248, 0.25) /* sky teal */
  );
  color: #0ea5e9; /* cyan-500 */
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
  transition: var(--transition-fast);
}

.positionBadge:hover {
  background: linear-gradient(
    135deg,
    rgba(125, 211, 252, 0.25),
    rgba(56, 189, 248, 0.35)
  );
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.FeaturedpositionBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.15),
    rgba(249, 115, 22, 0.25)
  );
  margin-top: 10px;
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.4);
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.2);
  transition: var(--transition-fast);
}

.FeaturedpositionBadge:hover {
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, 0.25),
    rgba(249, 115, 22, 0.35)
  );
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
  transform: translateY(-1px);
}
