.dashboard-main {
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.section-title-group {
  margin-bottom: 24px;
}

.section-title-group h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

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

.resume-grid.drafts-section-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
}

.drafts-section-grid .resume-create-card {
  min-width: 280px;
  width: 280px;
  flex-shrink: 0;
}

.drafts-scroll-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.drafts-scroll-wrapper .resume-card {
  min-width: 320px;
  width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Кастомізація полоси скролу для акуратного дизайну */
.drafts-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.drafts-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.drafts-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.drafts-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--purple, #8f5cff);
}
/*
  resume-card start
*/

.resume-card {
  background: rgba(16, 25, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(12px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  overflow: hidden;
}

.resume-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--gradient);
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resume-card:hover {
  transform: translateX(-4px);
  background: rgba(16, 25, 46, 0.4);
}

.resume-card:hover::before {
  opacity: 0.2;
}

.resume-create-card {
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  gap: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.resume-create-card:hover {
  border-color: var(--purple);
  background: rgba(143, 92, 255, 0.95);
  transform: translateY(-4px);
  color: var(--text);
}

.resume-create-card i {
  font-size: 32px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resume-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.resume-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/*
  resume-card end
*/

.skeleton-card {
  opacity: 0.6;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-line {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-bottom: 12px;
}

.skeleton-line.title {
  height: 24px;
  width: 70%;
}

.skeleton-line.subtitle {
  height: 16px;
  width: 40%;
}

.skeleton-line.body {
  height: 40px;
  width: 100%;
}

.skeleton-actions {
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-top: 16px;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.4;
  }
}

@media (max-width: 1024px) {
  .resume-grid.drafts-section-grid {
     flex-direction: column;
     overflow: visible;
  }

  .drafts-section-grid .resume-create-card {
    width: 100%;
    min-width: 100%;
  }

  .drafts-scroll-wrapper {
    width: 100%;
  }
}
