/* ===================================
   DEVA Account Page Styles
   =================================== */

.deva-account-wrapper {
  background: #f7fdf6;
  padding: 1em 0;
}

.deva-account-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
}

/* Breadcrumb */
.deva-account-breadcrumb {
  margin-bottom: 2rem;
}

.deva-breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
}

.deva-breadcrumb a {
  color: #48733d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.deva-breadcrumb a:hover {
  color: #3a5c2f;
}

/* Top Section Layout */
.deva-account-top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Profile Card */
.deva-profile-section {
  width: 100%;
}

.deva-profile-card {
  background: #eaf2e5;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.deva-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #48733d;
  object-fit: cover;
}

.deva-profile-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.deva-email {
  font-weight: 600;
  color: #48733d;
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

.deva-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Program and Menu Section */
.deva-program-menu-section {
  width: 100%;
}

.deva-program-section {
  background: #eaf2e5;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: fit-content;
  display: flex;
  flex-direction: column;
}

.deva-program-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
}

/* Program Box */
.deva-program-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #d4e5ce;
  transition: all 0.3s ease;
}

.deva-program-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.deva-program-image {
  width: 100px;
  height: aut;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.deva-program-info {
  flex: 1;
}

.deva-program-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.deva-program-info p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
}

.deva-program-info small {
  font-size: 0.75rem;
  color: #9ca3af;
}

.deva-program-price {
  font-size: 1em;
  font-weight: 700;
  color: #48733d;
  flex-shrink: 0;
  width: 100%;
  justify-content: flex-end;
  display: flex;
}

/* No Program State */
.deva-no-program {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border: 2px dashed #d4e5ce;
}

.deva-program-placeholder strong {
  display: block;
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.deva-program-placeholder p {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.deva-browse-programs {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #48733d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.deva-browse-programs:hover {
  background: #3a5c2f;
  transform: scale(1.05);
}

/* Menu List */
.deva-menu-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.deva-menu-list li {
  border-bottom: 1px solid #d4e5ce;
}

.deva-menu-list li:last-child {
  border-bottom: none;
}

.deva-menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.deva-menu-list a:hover {
  color: #48733d;
  padding-left: 0.5rem;
}

.deva-icon {
  font-size: 1rem;
  opacity: 0.7;
}

/* Dashicons specific styles */
.deva-icon.dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.deva-menu-list .deva-icon.dashicons {
  margin-left: 8px;
}

/* Edit icons */
.deva-edit.dashicons {
  cursor: pointer;
  font-size: 14px;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.deva-edit.dashicons:hover {
  opacity: 1;
}

/* Session icons */
.deva-session-time .dashicons,
.deva-session-date .dashicons,
.deva-session-calendar .dashicons {
  margin-right: 8px;
  color: #48733d;
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Call button icons */
.deva-call-button .dashicons {
  margin-right: 8px;
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Amelia Services/Packages Styling */
.deva-program-meta {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  flex-direction: column;
}

.deva-package-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deva-service-badge {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deva-amelia-price {
  font-weight: 700;
  color: #2c3e50;
  font-size: 18px;
}

.deva-program-duration {
  color: #7f8c8d;
  font-size: 14px;
  margin-top: 4px;
}

.deva-package-dates {
  color: #27ae60;
  font-size: 14px;
  margin-top: 8px;
  padding: 8px;
  background: #e8f5e8;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
}

.deva-no-program {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
}

.deva-program-placeholder h3 {
  color: #6c757d;
  margin-bottom: 16px;
}

.deva-program-placeholder p {
  color: #868e96;
  margin-bottom: 12px;
}

.deva-browse-programs {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 16px;
  transition: transform 0.3s ease;
}

.deva-browse-programs:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Schedule Section Styles */
.deva-schedule-section {
  margin-bottom: 3rem;
}

.deva-schedule-section h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 2rem 0;
  text-align: center;
}

.deva-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Session Cards */
.deva-session-card {
  background: #eaf2e5;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.deva-session-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.deva-session-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
}

.deva-session-card p {
  font-size: 0.875rem;
  color: #374151;
  margin: 0 0 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deva-edit {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  font-size: 1rem;
}

.deva-edit:hover {
  opacity: 1;
}

/* Call Buttons */
.deva-call-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #48733d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.deva-call-button:hover:not(:disabled) {
  background: #3a5c2f;
  transform: scale(1.05);
}

.deva-call-button.deva-disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

.deva-call-button.deva-completed {
  background: #10b981;
  color: #ffffff;
  cursor: default;
}

/* Footer */
.deva-account-footer {
  text-align: center;
  margin-top: 3rem;
}

.deva-schedule-next {
  background: #48733d;
  color: #ffffff;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(72, 115, 61, 0.3);
}

.deva-schedule-next:hover {
  background: #3a5c2f;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(72, 115, 61, 0.4);
}

.deva-program-placeholder {
  text-align: center;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .deva-account-container {
    padding: 1rem;
  }

  .deva-account-top-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .deva-profile-card,
  .deva-program-section {
    padding: 1.5rem;
  }

  .deva-program-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .deva-program-image {
    width: 200px;
    height: auto;
  }

  .deva-schedule-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .deva-session-card {
    padding: 1.25rem;
  }

  .deva-schedule-next {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .deva-account-container {
    padding: 0.75rem;
  }

  .deva-profile-card,
  .deva-program-section,
  .deva-session-card {
    padding: 1rem;
  }

  .deva-profile-card h2 {
    font-size: 1.5rem;
  }

  .deva-schedule-section h3 {
    font-size: 1.5rem;
  }

  .deva-program-box {
    padding: 0.75rem;
  }

  .deva-menu-list a {
    font-size: 0.8rem;
  }
  .deva-program-price {
    justify-content: center;
  }
}

/* Modal Styles */
.deva-calendar-modal,
.deva-scheduling-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.deva-calendar-modal-content,
.deva-scheduling-modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.deva-calendar-modal-content h3,
.deva-scheduling-modal-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.deva-calendar-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deva-calendar-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #ebf3e8;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.deva-calendar-option:hover {
  background: #48733d;
  color: #ffffff;
  transform: scale(1.05);
}

.deva-close-modal,
.deva-cancel-schedule {
  width: 100%;
  padding: 0.75rem;
  background: #e5e7eb;
  color: #374151;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deva-close-modal:hover,
.deva-cancel-schedule:hover {
  background: #d1d5db;
}

/* Scheduling Form */
.deva-scheduling-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deva-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deva-form-group label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.deva-form-group input,
.deva-form-group select,
.deva-form-group textarea {
  padding: 0.75rem;
  border: 2px solid #d4e5ce;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.deva-form-group input:focus,
.deva-form-group select:focus,
.deva-form-group textarea:focus {
  outline: none;
  border-color: #48733d;
  box-shadow: 0 0 0 3px rgba(72, 115, 61, 0.1);
}

.deva-form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.deva-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.deva-schedule-submit {
  flex: 1;
  padding: 0.75rem;
  background: #48733d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deva-schedule-submit:hover {
  background: #3a5c2f;
  transform: scale(1.05);
}

/* Notification Styles */
.deva-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 500;
  z-index: 10001;
  cursor: pointer;
  animation: slideInRight 0.3s ease;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.deva-notification-success {
  background: #10b981;
}

.deva-notification-error {
  background: #ef4444;
}

.deva-notification-warning {
  background: #f59e0b;
}

.deva-notification-info {
  background: #3b82f6;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Modal Styles */
@media (max-width: 480px) {
  .deva-calendar-modal-content,
  .deva-scheduling-modal-content {
    padding: 1.5rem;
    margin: 1rem;
    max-width: none;
    width: auto;
  }

  .deva-form-actions {
    flex-direction: column;
  }

  .deva-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ===================================
   Expandable Settings Section Styles
   =================================== */

.deva-settings-section {
  /* background: #ffffff; */
  /* border: 1px solid #e5e7eb; */
  border-radius: 12px;
  /* margin-top: 1.5rem; */
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
}

.deva-settings-section.deva-settings-open {
  max-height: 2000px; /* Increased to accommodate all content */
  opacity: 1;
  transform: translateY(0);
}

.deva-settings-header {
  /* background: linear-gradient(135deg, #48733d, #5d8a51); */
  /* color: white; */
  /* padding: 1.5rem 0; */
  text-align: center;
}

.deva-settings-header h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.deva-settings-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.875rem;
}

.deva-profile-form {
  padding: 2rem 0;
}

.deva-settings-group {
  margin-bottom: 2.5rem;
}

.deva-settings-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

main#content button.deva-password-toggle,
main#content button.deva-password-toggle:hover {
  background: none;
  right: 7px;
  top: 10px;
  transform: none;
  padding: 0;
  color: #111;
}

.deva-settings-group h5 {
  margin: 0 0 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #48733d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deva-settings-group h5::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #48733d, #5d8a51);
  border-radius: 2px;
}

.deva-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.deva-form-field {
  margin-bottom: 1.5rem;
}

.deva-form-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.deva-form-field label .dashicons {
  color: #48733d;
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.deva-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

.deva-input:focus {
  outline: none;
  border-color: #48733d;
  box-shadow: 0 0 0 3px rgba(72, 115, 61, 0.1);
}

.deva-input::placeholder {
  color: #9ca3af;
}

/* Password Toggle Styles */
.deva-password-wrapper {
  position: relative;
}

.deva-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.deva-password-toggle:hover {
  background: #f3f4f6;
  color: #48733d;
}

.deva-password-toggle .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

/* Checkbox Styles */
.deva-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  cursor: pointer;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.deva-checkbox-label:hover {
  background: #f3f4f6;
  border-color: #48733d;
}

.deva-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #48733d;
  cursor: pointer;
  margin-top: 2px;
}

.deva-checkbox-label .dashicons {
  margin-top: 2px;
  color: #48733d;
}

/* Form Actions */
.deva-settings-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
}

.deva-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  white-space: nowrap;
  min-width: auto;
}

.deva-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.deva-btn-primary {
  background: linear-gradient(135deg, #48733d, #5d8a51);
  color: white;
}

.deva-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3a5c2f, #4a7043);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(72, 115, 61, 0.3);
  color: white;
  text-decoration: none;
}

.deva-btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.deva-btn-secondary:hover:not(:disabled) {
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

.deva-btn .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

/* Alert Messages */
.deva-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  animation: slideInDown 0.3s ease;
}

.deva-alert-success {
  background: #f0f9f4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.deva-alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.deva-alert .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Settings Toggle Arrow Animation */
.deva-settings-toggle .dashicons {
  transition: transform 0.3s ease;
}

.deva-settings-toggle .dashicons.dashicons-arrow-up {
  transform: rotate(180deg);
}

/* Responsive Settings Styles */
@media (max-width: 768px) {
  .deva-form-row {
    grid-template-columns: 1fr;
  }

  .deva-settings-header {
    padding: 1rem 1.5rem;
  }

  .deva-profile-form {
    padding: 1.5rem;
  }

  .deva-settings-actions {
    flex-direction: column;
  }

  .deva-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .deva-settings-header h4 {
    font-size: 1.25rem;
  }

  .deva-checkbox-label {
    padding: 0.75rem;
  }

  .deva-form-field label {
    font-size: 0.8125rem;
  }
}

/* Amelia Appointments Integration */
.deva-appointments-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.deva-appointments-section h5 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.deva-amelia-appointments {
  margin-bottom: 20px;
}

.deva-appointment-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.deva-appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.deva-appointment-header h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.deva-appointment-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.deva-status-approved {
  background: #d4edda;
  color: #155724;
}

.deva-status-pending {
  background: #fff3cd;
  color: #856404;
}

.deva-status-canceled {
  background: #f8d7da;
  color: #721c24;
}

.deva-appointment-details {
  margin-bottom: 15px;
}

.deva-appointment-details > div {
  margin-bottom: 5px;
  font-size: 13px;
  color: #666;
}

.deva-appointment-details .dashicons {
  font-size: 14px;
  margin-right: 5px;
  color: #28a745;
}

.deva-appointment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deva-btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deva-reschedule-btn {
  background: #007cba;
  color: white;
}

.deva-reschedule-btn:hover {
  background: #005a87;
}

.deva-btn-danger {
  background: #dc3545;
  color: white;
}

.deva-btn-danger:hover {
  background: #c82333;
}

.deva-join-btn {
  background: #28a745;
  color: white;
}

.deva-join-btn:hover {
  background: #218838;
}

.deva-schedule-section {
  border-top: 1px solid #e9ecef;
  padding-top: 15px;
}

.deva-schedule-new {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  width: 100%;
  justify-content: center;
}

.deva-schedule-new:hover {
  background: #218838;
}

.deva-schedule-new .dashicons {
  font-size: 16px;
}

.deva-amelia-booking {
  margin-top: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.deva-no-appointments,
.deva-appointments-error {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

.deva-loading {
  text-align: center;
  color: #666;
  padding: 20px;
}

/* Responsive adjustments for Amelia integration */
@media (max-width: 768px) {
  .deva-appointment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .deva-appointment-actions {
    justify-content: center;
  }

  .deva-btn-small {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }
}

/* Schedule Grid Styles */
.deva-schedule-grid {
  margin-top: 20px;
}

.deva-schedule-program-group {
  margin-bottom: 3rem;
}

.deva-schedule-program-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.deva-schedule-program-title .dashicons {
  color: #48733d;
  font-size: 1.5rem;
}

.deva-schedule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.deva-schedule-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.deva-schedule-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #48733d;
}

.deva-schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #48733d;
}

.deva-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.deva-schedule-appointment-number {
  flex-grow: 1;
}

.deva-appointment-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deva-schedule-date .deva-date {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2937;
  display: block;
}

.deva-schedule-status {
  flex-shrink: 0;
}

.deva-schedule-card .deva-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deva-schedule-body {
  margin-top: 1rem;
}

.deva-schedule-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #374151;
  font-size: 0.875rem;
}

.deva-schedule-date .dashicons {
  color: #48733d;
  font-size: 16px;
}

.deva-schedule-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.deva-schedule-time .dashicons {
  color: #48733d;
  font-size: 16px;
}

.deva-schedule-time .deva-time {
  font-weight: 500;
}

.deva-schedule-actions {
  margin-top: 1rem;
}

.deva-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #48733d;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.deva-join-btn:hover {
  background: #3a5c2f;
  color: white;
  transform: translateY(-1px);
}

.deva-join-btn .dashicons {
  font-size: 16px;
}

.deva-status {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.deva-status-upcoming {
  background: #d4edda;
  color: #155724;
}

.deva-status-approved {
  background: #d4edda;
  color: #155724;
}

.deva-status-pending {
  background: #fff3cd;
  color: #856404;
}

.deva-status-completed {
  background: #d1ecf1;
  color: #0c5460;
}

.deva-status-scheduled {
  background: #e2e3e5;
  color: #383d41;
}

.deva-join-link {
  padding: 6px 12px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.deva-join-link:hover {
  background: #218838;
  color: white;
}

.deva-schedule-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
}

.deva-page-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  font-size: 14px;
  transition: all 0.2s ease;
}

.deva-page-btn:hover {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.deva-page-info {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.deva-no-schedule {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.deva-no-schedule p {
  margin: 10px 0;
}

.deva-no-schedule em {
  font-size: 14px;
  color: #999;
}

/* Responsive adjustments for schedule grid */
@media (max-width: 768px) {
  .deva-schedule-program-group {
    margin-bottom: 2rem;
  }

  .deva-schedule-program-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

  .deva-schedule-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .deva-schedule-card {
    padding: 1rem;
  }

  .deva-schedule-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .deva-appointment-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .deva-schedule-pagination {
    flex-direction: column;
    gap: 15px;
  }

  .deva-page-btn {
    width: 100%;
    justify-content: center;
  }
}
