.mdclara-appointments-container {
  background: #0a2148;
  color: #ffffff;
  font-family: 'Geist', sans-serif !important;
  padding: 20px;
  border-radius: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.appointments-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
  margin-top: 0 !important;
  color: #ffffff !important;
}

/* Updated Upcoming Appointments Grid */
.appointments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* Updated Appointment Card Styles */
.appointment-card {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 24px 16px ;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(40px);
}

.appointment-card.upcoming:hover ,
.appointment-card.active {
  border-color: #cea860;
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Doctor Avatar Styles */
.doctor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
}

/* Updated Doctor Info Layout */
.doctor-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.woocommerce-MyAccount-content-wrapper .doctor-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.woocommerce-MyAccount-content-wrapper .doctor-details * {
  line-height: 1 !important;
}
.woocommerce-MyAccount-content-wrapper .doctor-details h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600 !important;
  color: #ffffff;
  margin-bottom: 0px !important;
  text-transform: capitalize !important;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content p.doctor-specialty {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-bottom: 0px !important;
}

/* Updated Appointment Time */
.appointment-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}

.section-divider {
  border: none;
  height: 1px;
  background: #4a5568;
  margin: 40px 0;
}

/* Updated Past Appointments List */
.past-appointments-list {
  display: none;
}

.past-appointments-list.active {
  display: block;
}

/* Updated Past Appointment Item - More Compact Design */
.past-appointment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 10px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  border-bottom: 1px solid #FFFFFF33;
}

/* Appointment Actions Container */
.appointment-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

/* Updated Date Box - Smaller and More Compact */
.appointment-date-box { 

  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.date-day {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
}

.woocommerce-MyAccount-content-wrapper .date-month {
    font-size: 20px;
    color: #a0aec0 !important;
    text-transform: capitalize;
    margin-top: 2px;
    font-weight: 700;
}

/* Updated Past Appointment Details */
.past-appointment-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.past-appointment-details h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2 !important;
}

.woocommerce-MyAccount-content-wrapper .past-appointment-details .specialty {
  color: #a0aec0 !important;
  font-size: 14px;
  line-height: 1.2 !important;
}

.past-appointment-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 14px;
}

/* Updated Status Badge */
.appointment-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.status-completed {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-confirmed {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  border: 1px solid #007bff;
}

.status-requested {
  background: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
  border: 1px solid #6f42c1;
}

.status-cancelled {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
}

.status-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Pagination Styles */
.pagination-container {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 20px;
  gap: 10px;
  margin: 0px;
}

.pagination-btn {
  background: transparent;
  color: #fff;
  border: 0px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content .mdclara-appointments-container p{
  margin-bottom: 0px !important;
}

.pagination-btn:nth-child(1) .pagination-btn-icon{
  position: absolute;
  top: 54%;
  left: 46%;
  transform: translateX(-50%) translateY(-50%);
}
.pagination-btn:last-of-type .pagination-btn-icon{
  position: absolute;
  top: 54%;
  left: 54%;
  transform: translateX(-50%) translateY(-50%);
}
.pagination-btn:nth-child(1) {
  border: 1px solid #fff;
  border-radius: 50%;
}
.pagination-btn:last-of-type {
  border: 1px solid #fff;
  border-radius: 50%;
}

.pagination-btn:hover:not(:disabled) {
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: #1a2a4a;
  color: #fff;
  font-weight: 600;
}

.pagination-container .page-number {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a99b4;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.pagination-container .page-number:hover {
  background: #1a2a4a;
  color: #fff;
}

.pagination-container .page-number.active {
  background: #1a2a4a;
  color: #fff;
  font-weight: 600;
}

.pagination-container .ellipsis {
  color: #8a99b4;
  padding: 0 5px;
  cursor: default;
}

.pagination-info {
  color: #a0aec0;
  font-size: 14px;
  margin: 0 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .appointments-grid {
    grid-template-columns: 1fr;
  }

  .appointment-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .doctor-info {
    width: 100%;
  }

  .appointment-time {
    margin-top: 0;
  }

  .past-appointment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .appointment-date-box {
    align-self: flex-start;
  }

  .appointment-actions {
    align-self: flex-end;
    flex-direction: column;
    gap: 10px;
  }

  /* Responsive adjustments for pagination */
  .pagination-btn {
    width: 32px;
    height: 32px;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a0aec0;
}

.empty-state h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Additional refinements to match screenshot exactly */
.appointment-card .doctor-info {
  margin-bottom: 0;
}

/* Ensure proper spacing in upcoming appointments */
@media (min-width: 769px) {
  .appointment-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .doctor-info {
    width: 100%;
    margin-bottom: 15px;
  }

  .appointment-time {
    margin-top: 0;
  }
}
.woocommerce-MyAccount-content-wrapper .mdclara-appointments-container a.video-call-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #C7A42D;
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 12px;
  transition: background-color 0.2s;
  font-weight: 500;
  width: fit-content;
}

.woocommerce-MyAccount-content-wrapper .mdclara-appointments-container a.video-call-btn:hover {
  background-color: #071938;
  color: white;
  text-decoration: none;
}

/* Feedback Button Styles */
.feedback-btn {
  background-color: #f59e0b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.feedback-btn:hover {
  background-color: #d97706;
}