.dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skeleton shimmer */
:root {
  --skeleton-bg: #ebebeb;
}

@keyframes skeleton-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}


/* =========================================
   DASHBOARD SPECIFIC GRID LAYOUT
   ========================================= */

@media (min-width: 1024px) {
  .dashboard .content-padded-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .hero-card,
  .alert-banner {
    grid-column: 1 / -1;
    /* Full width */
  }
}

/* Hero Section */
.hero-card {
  position: relative;
  height: 12.5rem;
  border-radius: 0.875rem;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=800&auto=format&fit=fit');
  background-size: cover;
  background-position: center;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .hero-card {
    height: 16rem;
    padding: var(--spacing-xl);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 600px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }
}

.hero-content h1 {
  color: white;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

.hero-content p {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.btn-hero {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
  width: fit-content;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Alert Banner */
.alert-banner {
  background-color: var(--primary-purple);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.alert-banner:hover {
  transform: translateY(-2px);
  background-color: var(--primary-purple-dark);
}

.alert-icon {
  background: white;
  color: var(--primary-purple);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.alert-text {
  font-size: 0.8rem;
  flex: 1;
}

.arrow-icon {
  opacity: 0.8;
}

/* Section Block */
.section-block {
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  justify-content: center;
}

@media (min-width: 768px) {
  .section-header {
    justify-content: flex-start;
  }
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.badge-number {
  background-color: var(--primary-purple);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Action List */
.action-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.action-item {
  background: var(--bg-surface);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.action-item:hover {
  background: #f8f8f8;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary-purple);
  border-radius: 50%;
  flex-shrink: 0;
}

.action-text {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.action-item svg {
  color: var(--text-grey);
}

/* Dashboard-specific calendar overrides */
.dashboard .calendar-widget {
  padding: var(--spacing-sm);
}

@media (min-width: 768px) {
  .dashboard .calendar-widget {
    padding: var(--spacing-md);
  }
}

.dashboard .calendar-header h3 {
  font-size: 1rem;
}

.dashboard .cal-btn {
  width: 1.75rem;
  height: 1.75rem;
}

.dashboard .calendar-grid {
  margin-bottom: var(--spacing-lg);
}

.dashboard .day {
  font-size: 0.85rem;
  height: 2rem;
}

.calendar-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.dots {
  color: var(--text-grey);
}

/* Results List */
.results-list,
.messages-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.result-card,
.message-item {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  position: relative;
  flex-wrap: wrap;
}

.result-card {
  justify-content: space-between;
}

.result-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .result-card {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .result-card .company-logo {
    flex-shrink: 0;
  }

  .result-card .result-info {
    flex: 1;
    min-width: 0;
  }

  .result-card .tags {
    order: 4;
  }

  .result-actions {
    order: 5;
    width: 100%;
    justify-content: flex-end;
    margin-top: var(--spacing-xs);
  }

  .result-actions .btn {
    flex: 1;
    max-width: 50%;
  }
}

.result-info {
  flex: 1;
}

.result-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.result-info p {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.tags {
  display: flex;
}

.result-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.view-all {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: var(--spacing-xs);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: var(--spacing-sm);
  transition: color 0.2s ease;
}

.view-all:hover {
  color: var(--primary-purple);
}

/* Messages */
.msg-avatar img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.msg-content {
  flex: 1;
}

.msg-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.125rem;
}

.msg-top h3 {
  font-size: 0.9rem;
  font-weight: 700;
}

.msg-top .dots {
  margin-left: auto;
}

.company-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-grey);
  margin-bottom: 0.25rem;
}

.msg-preview {
  font-size: 0.75rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.blue-dot {
  color: var(--primary-purple);
  font-size: 0.6rem;
}

/* Like Toast */
.like-toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-purple), #8B5CF6);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(106, 62, 235, 0.4);
  z-index: 1000;
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.like-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heartPulse 0.6s ease-in-out infinite;
}

@keyframes heartPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.like-toast span {
  font-size: 0.875rem;
  font-weight: 500;
}

.like-toast strong {
  font-weight: 700;
}

.sparkle-toast {
  color: #FFD700;
  animation: sparklePulse 0.5s ease-in-out infinite;
}

@keyframes sparklePulse {

  0%,
  100% {
    opacity: 1;
    transform: rotate(0deg);
  }

  50% {
    opacity: 0.6;
    transform: rotate(10deg);
  }
}

/* Empty Results */
.empty-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.empty-results span {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.empty-results p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}