/* =============================================
   DASHBOARD CONSOLIDATED STYLES
   This file combines styles from both dashboard.css 
   and dashboardstyles.css into a single file
   ============================================= */

/* ===== GENERAL STYLING ===== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5dc; /* Creamy white */
  color: #5c4033; /* Rich brown */
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* ===== HEADER & LOGO ===== */
.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo img {
  height: 120px;
  width: auto;
  margin: 0;
}

.logo h1 {
  color: #d4a373;
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1200px;
  margin: 0 2rem 2rem 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-header h1 {
  color: #d4a373; /* Warm terracotta */
  font-family: 'Playfair Display', serif;
}

.dashboard-content {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 250px;
  background-color: #f5f5dc;
  padding: 1rem;
  border-radius: 10px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 1rem;
}

.sidebar a {
  color: #5c4033;
  text-decoration: none;
  font-size: 1.1rem;
}

.sidebar a:hover {
  text-decoration: underline;
}

.main-content {
  flex: 1;
  padding-left: 2rem;
}

.card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

/* ===== BUTTONS & FORMS ===== */
button, .cta-button, .logout-button {
  padding: 0.75rem 1.5rem;
  background-color: #d4a373; /* Warm terracotta */
  color: #ffffff;
  border: none;
  border-radius: 25px; /* Bubbled buttons */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

button:hover, .cta-button:hover, .logout-button:hover {
  background-color: #b22222; /* Vibrant red */
}

.top-nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-nav-buttons .cta-button,
.top-nav-buttons .logout-button {
  min-width: 120px;
  text-align: center;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  border-color: #d4a373; /* Warm terracotta */
  outline: none;
}

textarea {
  height: 100px;
}

/* ===== APPOINTMENT CARDS ===== */
.appointment-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-bottom: 45px; /* Add padding at the bottom for the chat button */
}

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

.appointment-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #4a4a4a;
  flex: 1;
  min-width: 200px;
}

.appointment-buttons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}

.reschedule-btn, .cancel-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reschedule-btn {
  background-color: #d4a373;
  color: #ffffff;
}

.cancel-btn {
  background-color: #b22222;
  color: #ffffff;
}

.cancel-reschedule-btn {
  background-color: #b22222;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
  display: inline-block;
}

.cancel-reschedule-btn:hover {
  background-color: #8b0000;
  transform: translateY(-2px);
}

.cancel-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(178, 34, 34, 0.3);
}

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

.appointment-details p {
  margin: 5px 0;
  line-height: 1.4;
}

/* ===== STATUS TAGS ===== */
.status-tags {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
  font-weight: bold;
  border-width: 1px;
  border-style: solid;
}

/* Override styles for reschedule-pending with specific new/old styles */
.status-tag.reschedule-pending.new {
  background-color: #4CAF50; /* Green for new */
  border-color: #2E7D32;
  color: white;
}

.status-tag.reschedule-pending.old {
  background-color: #F44336; /* Red for old */
  border-color: #C62828;
  color: white;
}

/* Style for time-changed status tag */
.status-tag.time-changed {
  background-color: #2196F3; /* Blue color */
  border-color: #0D47A1;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
  display: inline-block;
  font-weight: bold;
  border-width: 1px;
  border-style: solid;
}

/* Style for remainder-failed status tag */
.status-tag.remainder-failed {
  background-color: #f44336; /* Red color */
  border-color: #c62828;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
  display: inline-block;
  font-weight: bold;
  border-width: 1px;
  border-style: solid;
}

.status-time-changed {
  background-color: rgba(33, 150, 243, 0.1);
  border: 1px solid #2196F3;
}

/* Inspiration Photo Styling */
.inspiration-photo {
  margin-top: 10px;
  margin-bottom: 10px;
}

.photo-thumbnail {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
  text-decoration: none;
  color: #5c4033;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.photo-thumbnail:hover {
  transform: scale(1.05);
}

.photo-thumbnail img {
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #d4a373;
  margin-bottom: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100px;
  height: 100px;
}

/* Photo viewer modal */
.photo-viewer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.photo-viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-photo {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 5px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

.close-viewer {
  position: absolute;
  top: -40px;
  right: -40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 30px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
}

.close-viewer:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* For inspiration photo previews */
.inspiration-photo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #d4a373;
  margin-top: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.inspiration-photo img:hover {
  transform: scale(1.05);
}

/* Notes styling */
.appointment-notes {
  margin-top: 10px;
  margin-bottom: 10px;
  font-style: italic;
  color: #5c4033;
  line-height: 1.4;
}

.appointment-notes strong {
  font-weight: bold;
  font-style: normal;
  margin-right: 5px;
  color: #5c4033;
}

/* Location styling */
.location-section {
  margin-top: 10px;
  margin-bottom: 10px;
}

.location-section p {
  margin: 5px 0;
  color: #5c4033;
  line-height: 1.4;
}

.location-section strong {
  font-weight: bold;
  margin-right: 5px;
  color: #5c4033;
}

/* Style for appointment option */
.appointment-option {
  margin-top: 5px;
  margin-left: 0;
  font-size: 1em;
  color: inherit;
}

.appointment-option strong {
  font-weight: bold;
  font-style: normal;
  margin-right: 5px;
}

/* ===== APPOINTMENT HISTORY ===== */
.history-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #eaeaea;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eaeaea;
}

.history-date {
  font-weight: 600;
  color: #5c4033;
  font-size: 0.95rem;
}

.history-status {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

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

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

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

.history-item-content {
  padding: 15px;
}

.history-item-content p {
  margin: 5px 0;
  font-size: 0.95rem;
}

/* For history items */
.history-item-content .appointment-option {
  margin-top: 5px;
  margin-left: 0;
  font-size: 0.95em;
}

/* ===== ENHANCED APPOINTMENT CONNECTION ===== */
.appointment-connection {
  display: flex;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  border-left: 4px solid #d4a373;
  transition: background-color 0.2s ease;
}

.appointment-connection:hover {
  background-color: #f0f0f0;
}

.appointment-connection.original {
  border-left-color: #17a2b8; /* Blue for original appointment */
  background-color: rgba(23, 162, 184, 0.1);
}

.appointment-connection.new {
  border-left-color: #28a745; /* Green for new proposed appointment */
  background-color: rgba(40, 167, 69, 0.1);
}

.connection-icon {
  margin-right: 15px;
  color: #d4a373;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.appointment-connection.original .connection-icon {
  color: #17a2b8;
}

.appointment-connection.new .connection-icon {
  color: #28a745;
}

.connection-info {
  flex: 1;
  line-height: 1.4;
}

.new-time-label {
  background-color: #28a745;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.proposed-time, .original-time {
  font-weight: 600;
  color: #ff9800;
}

.connection-note {
  font-style: italic;
  color: #6c757d;
  margin-top: 5px;
  font-size: 0.9rem;
}

/* ===== MESSAGES AND ALERTS ===== */
.success-message,
.error-message {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

.loading, .error, .no-history {
  text-align: center;
  padding: 15px;
  border-radius: 8px;
}

.loading {
  background-color: #f9f9f9;
  color: #666;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
}

.no-history {
  background-color: #f9f9f9;
  color: #666;
  font-style: italic;
}

/* ===== PROFILE SECTION ===== */
#profile-section {
  max-width: 600px;
  margin: 0 auto;
}

.profile-change-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fafafa;
}

.profile-change-section:last-child {
  margin-bottom: 0;
}

.profile-change-section h3 {
  color: #d4a373;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.profile-change-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-change-section label {
  font-weight: 600;
  color: #5c4033;
  margin-bottom: 0.5rem;
}

.profile-change-section input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.profile-change-section input:focus {
  border-color: #d4a373;
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.2);
}

.profile-change-section button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: #d4a373;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.profile-change-section button:hover {
  background-color: #b22222;
}

.profile-change-section button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#email-change-message,
#phone-change-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  min-height: 1rem;
}

/* ===== SETTINGS SECTION ===== */
.settings-group {
  margin-bottom: 2rem;
}

.settings-group h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.setting-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.setting-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #5c4033;
  cursor: pointer;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-left: 1rem;
}

.setting-description {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Add styles for appointment summaries in the dashboard overview */
.appointment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Reset styles for appointment lists */
.appointment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.appointment-summary:hover {
  background-color: #f0f0f0;
  transform: translateX(2px);
}

.appointment-summary.confirmed {
  border-left-color: #4CAF50;
}

.appointment-summary.pending {
  border-left-color: #FFC107;
}

.appointment-summary.reschedule-pending {
  border-left-color: #FF5722;
}

.appointment-summary .summary-date {
  font-weight: bold;
  min-width: 80px;
}

.appointment-summary .summary-time {
  color: #666;
  min-width: 70px;
}

.appointment-summary .summary-with {
  font-weight: 500;
  flex: 1;
  padding: 0 10px;
}

.appointment-summary .summary-style {
  color: #666;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-appointments {
  color: #666;
  font-style: italic;
  padding: 10px 0;
}

/* Chat Component Styles */
.chat-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.chat-button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.chat-button i {
  font-size: 20px;
}

/* Chat Modal */
#chat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#chat-modal.open {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 500px;
  height: 80%;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.close-button:hover {
  color: #333;
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 130px);
}

.message {
  margin-bottom: 10px;
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 15px;
  position: relative;
  word-wrap: break-word;
}

.message.sent {
  align-self: flex-end;
  background-color: #dcf8c6;
  border-bottom-right-radius: 5px;
}

.message.received {
  align-self: flex-start;
  background-color: #f1f0f0;
  border-bottom-left-radius: 5px;
}

.message.system {
  align-self: center;
  background-color: #f8f8f8;
  border-radius: 10px;
  font-style: italic;
  color: #777;
  max-width: 90%;
}

.message .time {
  font-size: 0.7rem;
  color: #999;
  margin-top: 5px;
  text-align: right;
}

.message .sender {
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 3px;
}

.chat-input {
  border-top: 1px solid #eee;
  padding: 15px;
  display: flex;
  align-items: center;
}

.chat-input input {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 10px 15px;
  outline: none;
}

.chat-input button {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  margin-left: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.chat-input button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

.chat-input button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Loading indicator for chat */
.chat-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.chat-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top-color: #4CAF50;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  text-align: center;
  padding: 20px;
}

.chat-empty i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.chat-empty p {
  font-size: 1rem;
  max-width: 80%;
}

/* Chat notification badge */
.chat-button .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff5722;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add styles for pending status */
.pending-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  margin-bottom: 8px;
}

/* Style for the action buttons container under pending status */
.appointment-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.appointment-action-buttons button {
  padding: 4px 12px;
  font-size: 12px;
}

.appointment-box[data-status="time-changed"],
.appointment-box[data-status="new-time-offered"] {
  background-color: rgba(33, 150, 243, 0.1);
  border: 1px solid #2196F3;
}

.appointment-box[data-status="remainder_failed"] {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
}

/* Payment information in appointment cards */
.payment-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e0e0e0;
}

.payment-section p {
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Appointment Expiry Countdown */
.expiry-countdown {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.85rem;
  color: #ff5722;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  border-radius: 4px;
  border: 2px solid #ff5722;
  display: flex;
  align-items: center;
  z-index: 10;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.expiry-countdown i {
  font-size: 0.9rem;
  margin-right: 5px;
}

.expiry-countdown .expiry-label {
  font-weight: 500;
  margin-right: 4px;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.expiry-countdown.urgent {
  animation: pulse 1.2s ease-in-out infinite;
  background-color: rgba(255, 87, 34, 0.15);
  font-weight: bold;
  color: #d32f2f;
  border-color: #d32f2f;
}

/* Debug style for appointments with expiry dates */
.has-expiry-date {
  position: relative;
}

/* Payment warning styling */
.payment-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

/* Pay Remainder button styling - matches Find a Braider button */
.pay-remainder-btn {
  padding: 0.6rem 1.2rem;
  background-color: #d4a373; /* Warm terracotta like Find a Braider button */
  color: #ffffff;
  border: none;
  border-radius: 25px; /* Bubbled buttons */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-right: 8px;
}

.pay-remainder-btn:hover {
  background-color: #b22222; /* Vibrant red */
}

.pay-remainder-btn:focus {
  outline: 2px solid #d4a373;
  outline-offset: 2px;
}

/* ===== INQUIRIES SECTION ===== */
.inquiries-disclaimer {
  margin-bottom: 2rem;
}

.disclaimer-box {
  background-color: #f8f9fa;
  border: 1px solid #d4a373;
  border-radius: 8px;
  padding: 1.5rem;
}

.disclaimer-box h3 {
  color: #d4a373;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.disclaimer-box ul {
  margin: 0;
  padding-left: 1.5rem;
}

.disclaimer-box li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.inquiries-container {
  max-width: 100%;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.loading-state p,
.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

.inquiries-list {
  max-width: 100%;
}

.inquiry-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.inquiry-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inquiry-header {
  padding: 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fafafa;
  transition: background-color 0.3s ease;
}

.inquiry-header:hover {
  background-color: #f5f5f5;
}

.inquiry-braider-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.inquiry-braider-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #d4a373;
  margin-bottom: 0.5rem;
}

.inquiry-last-message {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-meta {
  text-align: right;
  flex-shrink: 0;
}

.inquiry-timestamp {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.inquiry-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inquiry-status.client-last {
  background-color: #e8f5e8;
  color: #2d5a2d;
}

.inquiry-status.braider-last {
  background-color: #fff3e0;
  color: #b8860b;
}

.inquiry-chat {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fff;
}

.inquiry-chat.expanded {
  max-height: 500px;
  border-top: 1px solid #e0e0e0;
}

.inquiry-messages {
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
  border-bottom: 1px solid #f0f0f0;
}

.inquiry-input-container {
  padding: 1rem;
  background-color: #fafafa;
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.inquiry-input {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
}

.inquiry-input:focus {
  outline: none;
  border-color: #d4a373;
  box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.2);
}

.inquiry-send-btn {
  padding: 0.75rem 1.5rem;
  background-color: #d4a373;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.inquiry-send-btn:hover {
  background-color: #b8956a;
  transform: translateY(-1px);
}

.inquiry-send-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.chat-message {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.chat-message.sent {
  align-items: flex-end;
}

.chat-message.received {
  align-items: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message.sent .message-bubble {
  background-color: #d4a373;
  color: white;
}

.chat-message.received .message-bubble {
  background-color: #f0f0f0;
  color: #333;
}

.message-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.no-messages {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
}

.error-message {
  text-align: center;
  color: #b22222;
  padding: 1rem;
  background-color: #ffe6e6;
  border-radius: 4px;
  margin: 1rem 0;
} 