/* Action Buttons */
.action-buttons-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-chat,
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  line-height: 15px;
}

.btn-chat {
  background: linear-gradient(180deg, #616161 0%, #000000 100%);
  color: #ffffff;
}

.btn-back {
  background: #d2b767;
  color: #000000;
}

/* Event Status Badge */
.event-status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.event-status-badge.status-active {
  background: #d4edda;
  color: #155724;
}

.event-status-badge.status-draft {
  background: #fff3cd;
  color: #856404;
}

/* Event Info Grid */
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.info-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5e5e5e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item p {
  margin: 0;
  font-size: 15px;
  color: #000000;
  font-weight: 400;
}

/* Tile Section */
.tile-section-wrapper {
  margin-bottom: 15px;
}

.tile-header-toggle {
  cursor: pointer;
  transition: all 0.2s;
}

.tile-header-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
}

.tile-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.5);
  color: #5e5e5e;
}

.toggle-arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
  color: #5e5e5e;
}

.tile-content-area {
  padding-top: 15px;
}

/* Subsection */
.subsection-wrapper {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.subsection-wrapper:last-child {
  margin-bottom: 0;
}

.subsection-header-area {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(195, 162, 89, 0.3);
}

.subsection-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subsection-content {
  padding: 20px;
}

.subsection-info-block {
  margin-bottom: 20px;
}

.subsection-info-block label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5e5e5e;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subsection-info-block p {
  margin: 0;
  color: #5e5e5e;
  line-height: 1.6;
  font-size: 14px;
}

/* PDF Section */
.pdf-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5e5e5e;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdf-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: all 0.2s;
}

.pdf-row:hover {
  background: rgba(255, 255, 255, 0.7);
}

.pdf-icon-box {
  width: 40px;
  height: 40px;
  background: #dc3545;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.pdf-info {
  flex: 1;
  min-width: 0;
}

.pdf-filename {
  display: block;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.pdf-type {
  display: block;
  font-size: 11px;
  color: #5e5e5e;
  margin-top: 2px;
}

.pdf-buttons {
  display: flex;
  gap: 8px;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #000000;
  text-decoration: none;
  transition: all 0.2s;
  padding: 0;
}

.btn-icon-action:hover {
  background: linear-gradient(180deg, #616161 0%, #000000 100%);
  color: white;
}

/* Empty States */
.empty-pdfs,
.empty-state-box {
  text-align: center;
  padding: 40px 20px;
  color: #5e5e5e;
}

.empty-pdfs i,
.empty-state-box i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-pdfs p,
.empty-state-box p {
  color: #5e5e5e;
  font-size: 14px;
  margin: 0;
}

/* Chat Modal */
.chat-modal-custom {
  max-width: 600px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.chat-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(195, 162, 89, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-modal-header .modal-title {
  margin: 0;
}

.btn-close-chat {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
}

.btn-close-chat:hover {
  background: #dc3545;
  color: white;
}

.chat-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 25px;
}

.chat-modal-footer {
  padding: 16px 25px;
  border-top: 1px solid rgba(195, 162, 89, 0.3);
  display: flex;
  gap: 12px;
}

.chat-input-field {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.chat-input-field:focus {
  background: rgba(255, 255, 255, 0.7);
}

.btn-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #616161 0%, #000000 100%);
  color: white;
  padding: 0;
}

@media (max-width: 768px) {
  .action-buttons-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .btn-chat,
  .btn-back {
    width: 100%;
    justify-content: center;
  }

  .event-info-grid {
    grid-template-columns: 1fr;
  }

  .chat-modal-custom {
    width: 95%;
    height: 90vh;
  }
}

/* chat css */
.chat-messages-area {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
}

.chat-message {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

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

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

.message-bubble {
  max-width: 70%;
  padding: 4px 12px;
  border-radius: 12px;
  word-wrap: break-word;
}

.chat-message.admin .message-bubble {
  background: #007bff;
  color: white;
}

.chat-message.user .message-bubble {
  background: white;
  color: #333;
  border: 1px solid #ddd;
}

.message-time {
  font-size: 11px;
  color: #818080ff;
  margin-top: 4px;
}

.chat-loading {
  text-align: center;
  padding: 20px;
  color: #999;
}

.no-messages {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.user-chat-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.user-chat-item:hover {
  background: #dbbf68ff;
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.last-message {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  background: #dc3545;
  color: white;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
}

.chat-users-list {
  max-height: 500px;
  overflow-y: auto;
}

.chat-area {
  display: flex;
  flex-direction: column;
  height: 500px;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  background: #deb94dff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-user-name {
  font-weight: 600;
  font-size: 16px;
}

/* Full Width Navigation Logic */
.btn-back-to-list {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  color: #333;
}

/* Initial State: List is full width, Chat is hidden */
#chatUsersCol {
  flex: 0 0 100%;
  max-width: 100%;
  display: block;
}
#chatAreaCol {
  display: none;
}

/* Active Chat State: List is hidden, Chat is full width */
.is-chatting #chatUsersCol {
  display: none;
}
.is-chatting #chatAreaCol {
  display: block;
  flex: 0 0 100%;
  max-width: 100%;
}
