.dashboard-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: calc(100vh - 135px);
}

.welcome-banner {
  background: var(--hm-secondary-dark);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-left: 5px solid var(--hm-primary);
}
.welcome-banner h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  color: var(--hm-primary-dark);
}
.welcome-banner p {
  margin: 0;
  color: #6c757d;
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.stat-icon {
  width: 40px;
  height: 40px;
  background: var(--hm-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.stat-number {
  font-size: 32px;
  font-weight: 600;
  color: #2c3e50;
}
.stat-label {
  color: #6c757d;
  font-size: 14px;
  margin-top: 4px;
}

/* Section Card */
.section-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}
.section-header i {
  font-size: 22px;
  color: var(--hm-primary);
}
.section-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

/* Appointments List */
.appointment-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appointment-item {
  background: #f8f9fa;
  border-radius: 12px;
  display: flex;
  transition: all 0.2s;
  border-left: 4px solid var(--hm-primary);
}
.details-side {
  padding: 15px;
  gap: 18px;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  width: 87%;
}
.button-side {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Date/Time Badge */
.date-box {
  background: var(--hm-primary);
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  min-width: 65px;
  font-weight: 600;
  line-height: 1.3;
}
.date-box .day {
  font-size: 22px;
  font-weight: 600;
  display: block;
  line-height: 1;
}
.date-box .month {
  font-size: 11px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
}
.date-box .time {
  font-size: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

/* Appointment Info */

.patient-details {
  padding: 15px;
}
.view-details{
  cursor: pointer;
  text-decoration: none;
  color: #333333;
  font-size: 14px;
  transition: font-size 0.2s;
}
.view-details:hover{
  font-size: 16px;
  color: #000000;
}
.patient-details h5 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6c757d;
  margin: 4px 0;
}
.detail-row i {
  color: var(--hm-primary);
  font-size: 13px;
}
.symptoms-box {
  background: #fff3cd;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #856404;
  border-left: 3px solid #ffc107;
}

/* Status Badges */
.status-indicator {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.status-pending {
  background: #fff3cd;
  color: #856404;
}
.status-accepted {
  background: #d1e7dd;
  color: #0f5132;
}
.status-rejected {
  background: #f8d7da;
  color: #842029;
}
.status-reschedule {
  background: #cee6ff;
  color: #007bff;
}

.msg-style{
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

/* Empty State */
.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}
.empty-message i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.3;
}
.empty-message h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-message p {
  font-size: 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .date-box,
  .time-badge {
    width: fit-content;
  }

  .hero-section h1,
  .welcome-banner h2 {
    font-size: 24px;
  }
}

@media (max-width:600px) {
  .details-side{
    width: 100%;
  }
  .appointment-item {
    flex-direction: column;
  }
  .button-side{
    justify-content: center;
    padding: 10px;
  }
  .date-box {
    padding: 8px;
    min-width: 50px;
  }
  .date-box .day {
    font-size: 18px;
  }
}

@media (max-width:426px) {
  .section-card{
    padding: 15px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-header {
    gap: 6px;
  }
}

@media (max-width:376px) {
  .details-side{
    grid-template-columns: 1fr;
  }
  .date-box{
    display: flex;
    gap: 10px;
  }
  .date-box .time {
    margin-top: 4px;
    padding-top: 0px;
    padding-left: 4px;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.522);
  }
}