/* BhofAppForm - Proper form validation styling */

.bhof-app-form .form-group {
  margin-bottom: 20px;
}

.bhof-app-form .form-group.has-error .form-control {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.bhof-app-form .form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.bhof-app-form .form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.bhof-app-form .invalid-feedback,
.bhof-app-form .text-danger {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.bhof-app-form .help-block {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.bhof-app-form .form-group.has-error .help-block {
  color: #6c757d;
}

.bhof-app-form .actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.bhof-app-form .well {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.bhof-app-form .well ul {
  margin-bottom: 15px;
}

.bhof-app-form .well .has-error {
  margin-top: 15px;
}


/* BhofEntryForm - Proper form validation styling */

.bhof-entry-form .form-group {
  margin-bottom: 20px;
}

.bhof-entry-form .form-group.has-error .form-control,
.bhof-entry-form .form-group.has-error .form-select {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.bhof-entry-form .form-control.is-invalid,
.bhof-entry-form .form-select.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.bhof-entry-form .form-control.is-invalid:focus,
.bhof-entry-form .form-select.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.bhof-entry-form .invalid-feedback,
.bhof-entry-form .text-danger {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.bhof-entry-form .help-block {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.bhof-entry-form .form-group.has-error .help-block {
  color: #6c757d;
}

.bhof-entry-form .actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}


/* Chat Drawer Overlay */
.chat-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Chat Drawer */
.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background-color: #1a1a1a;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.chat-drawer.open {
  transform: translateX(0);
}

/* Header */
.chat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
  flex-shrink: 0;
}

.chat-drawer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
}

.chat-drawer-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chat-drawer-close:hover {
  background-color: #3a3a3a;
  color: #fff;
}

/* Messages Area */
.chat-drawer-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Empty State */
.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  text-align: center;
  padding: 2rem;
}

.chat-empty-state p {
  margin: 0.25rem 0;
  color: #999;
}

/* Message */
.chat-message {
  display: flex;
  gap: 0.75rem;
  padding: 0.25rem 0;
  animation: slideIn 0.2s ease;
}

.chat-message.consecutive {
  padding-top: 0.125rem;
}

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

/* Avatar */
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.chat-avatar-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* Message Content */
.chat-message-content {
  flex: 1 1;
  min-width: 0;
}

.chat-message-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.chat-username {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.chat-timestamp {
  font-size: 0.75rem;
  color: #999;
}

.chat-message-text {
  color: #ddd;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Own Message Styling */
.chat-message.own-message .chat-username {
  color: #0dcaf0;
}

/* Input Area */
.chat-drawer-input {
  padding: 1rem 1.5rem;
  background-color: #2a2a2a;
  border-top: 1px solid #3a3a3a;
  flex-shrink: 0;
}

.chat-input-field {
  flex: 1 1;
  background-color: #1a1a1a;
  border: 1px solid #3a3a3a;
  color: #fff;
  padding: 0.625rem 0.875rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.chat-input-field:focus {
  background-color: #1a1a1a;
  border-color: #0d6efd;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.chat-input-field::-moz-placeholder {
  color: #6c757d;
}

.chat-input-field::placeholder {
  color: #6c757d;
}

.chat-send-button {
  padding: 0.625rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.chat-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Scrollbar Styling */
.chat-drawer-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-drawer-messages::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.chat-drawer-messages::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}

.chat-drawer-messages::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}

/* Responsive */
@media (max-width: 768px) {
  .chat-drawer {
    width: 100vw;
  }
}


/* LiveView.css - Scoped styles for LiveView components */

/* All classes are prefixed with 'lv-' to prevent conflicts */

/* Show title header */
.lv-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lv-show-selector .dropdown-toggle {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.lv-show-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Sticky header styles */
.lv-sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #1a1a1a;
  padding-top: 0.5rem;
}

/* Ensure sticky header works properly within container */
.lv-table-responsive .lv-sticky-top {
  position: sticky;
  top: 0;
}

/* Table wrapper for proper scrolling */
.lv-table-responsive {
  border-radius: 0.375rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  padding: 0 1rem 0.5rem 1rem;
  overflow-x: auto;
  overflow-y: auto;
}

/* Row and Column styling - CARD/TILE LAYOUT */
.lv-row {
  margin: 0.5rem 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 8px;
  background-color: #3a3a3a;
  display: flex;
  flex-wrap: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: none;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 100%;
}

.lv-row:last-child {
  margin-bottom: 0.5rem;
}

/* Override Bootstrap's default column styles */
.lv-row > [class*="col"] {
  padding: 1rem !important;
  border-right: 3px solid #000 !important;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  flex-shrink: 0;
  box-sizing: border-box;
}

.lv-col, .lv-col-1, .lv-col-2, .lv-col-3, .lv-col-4, .lv-col-5, .lv-col-6, .lv-col-7, .lv-col-8, .lv-col-9, .lv-col-10, .lv-col-11, .lv-col-12 {
  padding: 1rem;
  border-right: 3px solid #000 !important;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  flex-shrink: 0;
}

/* First column - rounded corners on the left to match row */
.lv-col:first-child,
.lv-col-1:first-child,
.lv-row > [class*="col-"]:first-child,
.lv-row > .col:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* Last column - rounded corners on the right to match row, no border */
.lv-col:last-child,
.lv-col-1:last-child, .lv-col-2:last-child, .lv-col-3:last-child, .lv-col-4:last-child, 
.lv-col-5:last-child, .lv-col-6:last-child, .lv-col-7:last-child, .lv-col-8:last-child, 
.lv-col-9:last-child, .lv-col-10:last-child, .lv-col-11:last-child, .lv-col-12:last-child,
.lv-row > [class*="col-"]:last-child,
.lv-row > .col:last-child {
  border-right: none !important;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Header row styling */
.lv-sticky-top.lv-row {
  background-color: #2a2a2a;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem 0 !important;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

}

/* Data row styling */
.lv-row:not(.lv-sticky-top) {
  background-color: #3a3a3a;
  color: #ddd;
}

.lv-row:not(.lv-sticky-top):hover {
  background-color: #424242;
}

/* Highlighted row styles */
.lv-highlighted {
  background-color: #0d6efd !important;
  color: #fff !important;
}

.lv-highlighted:hover {
  background-color: #0b5ed7 !important;
}

/* Column menu positioning */
.lv-position-relative .dropdown {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Backstage view styles */
.lv-bsview {
  background-color: #212529;
  color: #fff;
  padding: 2rem;
  border-radius: 0.375rem;
  text-align: center;
  margin: 1rem 0;
}

.lv-bsViewActive {
  background-color: #000;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lv-bshead {
  font-size: 3rem;
  font-weight: 400;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin: 2rem 0 1rem 0;
}

.lv-bstitle {
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  margin: 1rem 0 3rem 0;
  line-height: 1.2;
  display: block;
}

/* Loading spinner */
.lv-fa-spinner {
  color: #6c757d;
}

/* Backstage schedule view styles */
.lv-bsSchedule {
  background-color: #000;
  color: #fff;
  width: 100%;
  display: block;
}

.lv-bsSchedule .container-fluid {
  max-width: 100%;
  padding: 2rem;
}

.lv-bsSchedule .row {
  font-size: 1.8rem;
  padding: 1rem 0.5rem;
  margin: 0;
  border-bottom: 1px solid #333;
}

.lv-bsSchedule .row.highlighted {
  background-color: #4a2c7d;
  font-weight: bold;
}

.lv-bsSchedule .col, 
.lv-bsSchedule .col-2,
.lv-bsSchedule .col-3,
.lv-bsSchedule .col-7 {
  color: #fff;
}

/* Right-align the time column for better readability */
.lv-bsSchedule .row > [class*="col-"]:first-child {
  text-align: right;
}

/* Keep old styles for the container when showing "On Now / Up Next" */
.lv-bsViewActive .container-fluid {
  max-width: 100%;
  padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lv-col, .lv-col-1, .lv-col-2, .lv-col-3, .lv-col-4, .lv-col-5, .lv-col-6, .lv-col-7, .lv-col-8, .lv-col-9, .lv-col-10, .lv-col-11, .lv-col-12 {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .lv-bstitle {
    font-size: 3rem;
  }
  
  .lv-bshead {
    font-size: 2rem;
  }
  
  .lv-bsViewActive .row,
  .lv-bsSchedule .row {
    font-size: 1.2rem;
  }
}

/* Ensure proper column alignment */
.lv-col, .lv-col-1, .lv-col-2, .lv-col-3, .lv-col-4, .lv-col-5, .lv-col-6, .lv-col-7, .lv-col-8, .lv-col-9, .lv-col-10, .lv-col-11, .lv-col-12 {
  box-sizing: border-box;
}

/* Ensure content wraps within cells */
.lv-col, .lv-col-1, .lv-col-2, .lv-col-3, .lv-col-4, .lv-col-5, .lv-col-6, .lv-col-7, .lv-col-8, .lv-col-9, .lv-col-10, .lv-col-11, .lv-col-12 {
  word-break: break-word;
  hyphens: auto;
}

/* Typography styles for tiles */
.lv-row h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #fff;
}

.lv-row .timeholder {
  display: flex;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.lv-row .cue_start_time,
.lv-row .cue_duration,
.lv-row .cue_length {
  flex: 1 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  border-right: 1px solid #eee;
}

.lv-row .cue_length {
  border-right: none;
}

.lv-row .cue_start_time a,
.lv-row .cue_duration a {
  color: #aaa;
  text-decoration: none;
  font-weight: 400;
  display: block;
}

.lv-row .cue_start_time a:hover,
.lv-row .cue_duration a:hover {
  color: #fff;
}

.lv-row .cue_length span {
  color: #888;
  font-weight: 400;
  display: block;
}

.lv-row p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #ccc;
}

/* Column header labels - bold */
.lv-sticky-top .fw-bold {
  font-weight: 700 !important;
}

/* Control column styling */
.lv-controls-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lv-control-btn {
  transition: all 0.2s ease;
}

.lv-control-btn:not(:disabled):hover {
  transform: scale(1.2);
}

.lv-control-btn:focus {
  outline: none;
}

.lv-control-target:hover {
  background: #0b5ed7 !important;
  border-color: #0b5ed7 !important;
  transform: scale(1.15);
}

.lv-control-target:active {
  background: #0a58ca !important;
  border-color: #0a58ca !important;
}

/* Sequence number styling - clickable button */
.lv-row .text-end a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: #555;
  transition: background-color 0.2s ease;
}

.lv-row .text-end a:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Highlighted row - sequence number is already blue */
.lv-highlighted .text-end a {
  background-color: #0b5ed7;
}

.lv-highlighted .text-end a:hover {
  background-color: #0a58ca;
}

/* Owner name styling */
.lv-row > div > div {
  color: #ddd;
  font-size: 0.85rem;
}



.cursor-pointer{cursor:pointer}.custom-tab{background-color:#000;color:gray}.custom-tab.active{background-color:#fff;color:#000}.custom-tab:hover{color:#fff}.link-white:a{color:#6c757d;text-decoration:none !important;text-decoration-line:none !important}.link-white:a:hover{color:#fff;text-decoration:none !important;text-decoration-line:none !important}.link.white:a:-webkit-any-link{color:#6c757d;text-decoration:none !important;text-decoration-line:none !important}.option_selected{background-color:#3789a1;color:#fff}.modal-body-fixed-height{max-height:400px;min-height:400px;overflow-y:auto}.modal-lg{max-width:800px}
