.app-dashboard {
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-app);
  display: flex;
  min-height: 100vh;
}

.dashboard-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.metrics-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.metric-card {
  height: 64px;
  width: 260px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 200px;
  max-width: 280px;
  border-radius: 10px;
  background-color: #e4e9f4;
}

.metric-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.metric-icon {
  font-size: 24px;
  color: var(--blue-text);
  flex-shrink: 0;
}

.metric-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-text);
  white-space: nowrap;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-text);
  line-height: 1;
  flex-shrink: 0;
}

.add-task-header-btn {
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  flex-shrink: 0;
}

.add-task-header-btn i {
  font-size: 18px;
  font-weight: bold;
}

.add-task-header-btn:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-1px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  padding-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .content {
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .app-dashboard {
    overflow: auto;
  }

  .board-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-main-container,
  .content {
    height: auto;
    overflow: visible;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .add-task-header-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
