/* Chat Section Container Styling */
.dashboard-chat-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  padding: 32px 28px;
  margin: 24px 0 32px 0;
  min-height: 220px;
  width: 100%;
  box-sizing: border-box;
}
.dashboard-chat-container h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}
.dashboard-chat-container p {
  color: #6b7a90;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
/* Recent Leads Row (Dashboard) */
.dashboard-recent-leads-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.dashboard-recent-lead-card {
  background: #f8fafb;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  padding: 22px 22px 18px 22px;
  flex: 0 0 calc(25% - 24px); /* 4 per row, minus gap */
  max-width: calc(25% - 24px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .dashboard-recent-lead-card {
    flex: 0 0 calc(33.333% - 22px);
    max-width: calc(33.333% - 22px);
  }
}
@media (max-width: 900px) {
  .dashboard-recent-leads-row { flex-direction: column; gap: 24px; }
  .dashboard-recent-lead-card {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* Dashboard Welcome */
.dashboard-welcome {
  margin-bottom: 24px;
}
.dashboard-welcome-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #222;
}
.dashboard-welcome-sub {
  color: #6b7a90;
  font-size: 1.08rem;
}

/* Stats Row */
.dashboard-stats-row {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}
.dashboard-stat-card {
  background: #f8fafb;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  padding: 22px 28px 18px 28px;
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dashboard-stat-label {
  color: #6b7a90;
  font-size: 1.01rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-stat-change {
  font-size: 0.98rem;
  font-weight: 600;
  margin-left: 6px;
  border-radius: 8px;
  padding: 2px 8px;
}
.dashboard-stat-up {
  color: #00c6a2;
  background: #e6f7f3;
}
.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}
.dashboard-stat-desc {
  font-size: 1rem;
  color: #6b7a90;
  font-weight: 400;
  margin-left: 6px;
}

/* Plan Card */
.dashboard-plan-card {
  background: #f8fafb;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  padding: 20px 28px;
  margin: 24px 0 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.dashboard-plan-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}
.dashboard-plan-free {
  color: #00c6a2;
  font-weight: 700;
}
.dashboard-plan-desc {
  color: #6b7a90;
  font-size: 1.01rem;
  flex: 1 1 200px;
}
.dashboard-plan-upgrade-btn {
  background: #00c6a2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.dashboard-plan-upgrade-btn:hover {
  background: #009e82;
}

/* Leads Section */
.dashboard-leads-section {
  margin-top: 18px;
}
.dashboard-leads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dashboard-leads-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
}
.dashboard-leads-viewall {
  color: #00c6a2;
  font-size: 1rem;
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
}
.dashboard-leads-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.dashboard-lead-card {
  background: #f8fafb;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  padding: 22px 22px 18px 22px;
  min-width: 270px;
  max-width: 320px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.dashboard-lead-tag {
  display: inline-block;
  background: #e6f7f3;
  color: #00c6a2;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.dashboard-lead-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.dashboard-lead-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #222;
}
.dashboard-lead-time {
  color: #6b7a90;
  font-size: 0.98rem;
}
.dashboard-lead-meta {
  color: #00c6a2;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.dashboard-lead-distance {
  color: #6b7a90;
  margin-left: 4px;
}
.dashboard-lead-desc {
  color: #6b7a90;
  font-size: 0.99rem;
  margin-bottom: 14px;
}
.dashboard-lead-btn {
  background: #00c6a2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.18s;
}
.dashboard-lead-btn:hover {
  background: #009e82;
}

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 110px - 260px); /* header and footer height */
}

.dashboard-main-content {
  flex: 1 1 0;
  min-width: 0;
  padding: 20px 32px 40px 32px;
  background: #fff;
  min-height: calc(100vh - 110px - 260px);
  margin-left: 0px; /* Adjusted for side menu width */
  /* Add overflow if you want scrolling for content */
}

.main-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-logo {
  height: 95px;
}

.dashboard-header-profile-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.dashboard-header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 22px;
  transition: background 0.2s;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-header-icon {
  font-size: 26px;
  color: #555;
}

.dashboard-header-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #00c6a2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.dashboard-header-name {
  font-size: 16px;
  color: #222;
  font-weight: 500;
}

.dashboard-side-menu {
  position: sticky;
  top: 110px;
  left: 0;
  width: 240px;
  background: #f7f9fa;
  border-right: 1px solid #e0e4e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 0 0;
  z-index: 1;
  transition: width 0.2s;
  /* Remove fixed height and bottom to allow natural height and prevent footer overlap */
}

.dashboard-side-menu-collapse-btn {
  position: absolute;
  top: 16px;
  right: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.dashboard-side-menu-profile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dashboard-side-menu-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #00c6a2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 28px;
}

.dashboard-side-menu-profile-group .side-menu-profile-name {
  font-size: 18px;
  color: #222;
  font-weight: 600;
}

.dashboard-side-menu-nav {
  margin-top: 40px;
  width: 100%;
}

.side-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.side-menu-link {
  display: flex;
  align-items: center;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.13s;
}
.side-menu-link:hover,
.side-menu-link:focus {
  background: #e6f7f3;
  color: #00c6a2;
}
.side-menu-icon {
  font-size: 22px;
  margin-right: 12px;
  color: inherit;
  transition: color 0.13s;
}
.side-menu-link:hover .side-menu-icon,
.side-menu-link:focus .side-menu-icon {
  color: #00c6a2;
}
.side-menu-link-text {
  transition: opacity 0.2s;
}
