/* Event Detail Page Inline Styles — mobile-first */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  font-size: 0.875rem;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .breadcrumb-nav {
    padding: 12px 24px;
  }
}

.breadcrumb-nav > div {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-nav a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-nav li:not(:last-child) {
  color: #6b7280;
  font-size: 0.75rem;
}

.breadcrumb-nav li:last-child {
  color: #374151;
  font-weight: 600;
}

/* Guest Messages Modal */
.guest-messages-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10060;
  align-items: center;
  justify-content: center;
}

.guest-messages-modal-overlay[aria-hidden="false"] {
  display: flex;
}

.guest-messages-modal-content {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.guest-messages-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #1f2937;
}

.guest-messages-modal-header button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
}

.guest-messages-modal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.guest-selection-sidebar {
  width: 300px;
  border-right: 1px solid #e2e8f0;
  padding: 20px;
  background: #f8fafc;
}

.guest-selection-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #374151;
}

.guest-search {
  margin-bottom: 16px;
}

.guest-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
}

.guest-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-content-area {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.selected-guest-info {
  margin-bottom: 20px;
  padding: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  display: none;
}

.selected-guest-info.show {
  display: block;
}

.selected-guest-info > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-guest-info > div > div:first-child {
  font-size: 1.5rem;
}

#selectedGuestName {
  font-weight: 600;
  color: #1e40af;
  font-size: 1.1rem;
}

#selectedGuestSequence {
  color: #64748b;
  font-size: 0.9rem;
}

.message-tabs-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.message-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.message-tab {
  flex: 1;
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.message-tab.active {
  color: #374151;
  border-bottom-color: #3b82f6;
  background: white;
}

.message-tab-content {
  padding: 16px;
  background: #fafbfc;
  flex: 1;
  display: none;
}

.message-tab-content.active,
#reminderMessageContent:not(.active) {
  display: block;
}

#wechatMessageContent:not(.active) {
  display: none;
}

.message-tab-content > div {
  position: relative;
  height: 100%;
}

.message-tab-content textarea {
  width: 100%;
  height: calc(100% - 60px);
  font-family: sans-serif;
  line-height: 1.6;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #374151;
  resize: vertical;
}

.message-tab-content button {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 6px 10px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Guest messages modal: stack on small screens */
@media (max-width: 639px) {
  .guest-messages-modal-body {
    flex-direction: column;
  }

  .guest-selection-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
  }

  .guest-messages-modal-content {
    width: 98%;
    max-height: 85vh;
  }

  .message-content-area {
    padding: 12px 16px;
  }
}
