
.hide {
    display: none;
}

#requests {
  width: 100%;
  display: table;
}

#requests .request-container:nth-child(even) {
  background: #eee;
}

/* .request-container {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  color: black;
  display: table-row;
  vertical-align: middle;
} */
.request-container {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  display: flex;
  align-items: center;   /* vertical centering */
  gap: 12px;             /* spacing between items */
  padding: 12px;
}

.request-container.visible {
  opacity: 1;
}

div.request-container img.request-image {
    aspect-ratio: 1/1;
    max-width: 50px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
   }

.ignored {
  color: #ccc;
}

.soon {
  color: green;
}

.request-container .song-info-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.request-container .request-song {
  font-weight: 600;
}
.request-container .request-artist {
  color: #555;
  font-size: 0.9em;
}

.request-container .requestor {
  margin-left: auto;
  margin-right: 12px;
  color: #333;
}

.request-container .buttons {
  padding: 6px 12px;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
}

.error, #message {
    color: red;
}

#entry-title {
	font-size: 24px;
}

/* .blog:not(.has-sidebar) #primary article, .archive:not(.page-one-column):not(.has-sidebar) #primary article, .search:not(.has-sidebar) #primary article, .error404:not(.has-sidebar) #primary .page-content, .error404.has-sidebar #primary .page-content, body.page-two-column:not(.archive) #primary .entry-content, body.page-two-column #comments {
  width: 100%;
  } */
  
  div.entry-content {
      clear: both !important;
      width: 100% !important;
  
  }
  .entry-content {
      clear: both !important;
      width: 100% !important;
  
  }

/* 
input#eventId, input#companyId {
    text-transform: uppercase;
} */

.screen {
    min-height: 500px;
    text-align: center;
}

.screen table {
    text-align: left;
}

input[type="button"] {
    padding: 10px;
}

::placeholder {
    color: #ccc;
    font-size: small;
}

#user-header {
    position: fixed;
    width: 100%;
    height: auto;
    padding: 5px;
    top: 0px;
    left: 0px;
    color: white;
    background: black;
}

#user-header #change {
    font-style: italic;
    color: rgb(255, 174, 0);
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    right: 50%;
    bottom: 80px;
    font-size: 17px;
    box-shadow: 0.5em 0.5em 1em #ccc;
  }
  
  #snackbar.fade {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }


  
  @-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 80px; opacity: 1;}
  }
  
  @keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 80px; opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {bottom: 80px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
  }
  
  @keyframes fadeout {
    from {bottom: 80px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }

  .dark#content, .dark#colophon {
    background: #333;
    color: #ccc;
  }
  .dark h1#entry-title {
    color: #ccc;
  }
  .dark .button {
    background: darkgray;
  }

  .dark #snackbar {
    background-color: #ccc;
    box-shadow: 0.5em 0.5em 1em #000;
    color: #333;
  }

.dark #requests .request-container:nth-child(even) {
  background: #555;
}
.dark #requests .request-container:nth-child(odd) {
  background: #444;
}    
.dark .pending {
  color: rgb(255, 174, 0);;
}
.dark .soon {
  color: #111;
}
.dark .ignored {
  color: #888;
}
.dark .site-footer {
  background: #333;
}

.alignLeft {
  float: left;
  width:33.33333%;
  text-align:left;
}
.alignCenter {
  float: left;
  width:33.33333%;
  text-align:center;
}
.alignRight {
 float: left;
 width:33.33333%;
 text-align:right;
}

caption {
    font-weight: bold;
}

span.eventCount {
    font-size: small;
    color: black;
    padding-right: 8px;
}
table#companiesTable, table#eventsTable, table#djsTable {
  font-size: small;
  margin-bottom: 5em;
}

html {
    background: #333;
}
table#companiesTable span input[type="button"] {
  margin: 4px;
}

.codes {
    font-weight: bold;
}

.wrap {
  max-width: 1200px;
}

#searchForm {
  margin-bottom: 36px;
  select {
    margin-right: 1em;
  }
}

#search-list-results-tracks {
  display: flex;
  flex-direction:column;
  gap: .5em;
}

div#search-list-results-tracks div.track, div#search-list-results-tracks div.artist {
  padding: 10px 0;
  /* border-bottom: 2px solid #ccc; */
}

div#search-list-results-tracks div.track:last-child {
  border-bottom: none;
}

.track, .artist {
  background-color: #444;
  max-width: 800px;
  width: 100%;
  margin: auto;
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: start;

  div {
    width: 200px;
  }
   div.requestImage {
    aspect-ratio: 1/1;
    max-width: 200px;
    width: 100%;
    height: 100%;
    img {
      width: 100%;
      height: 100%;
    }
   }
}

@media (width <= 1080px) {
  .track, .artist {
    margin-top: 2px;
    width: auto;
    flex-direction: column;
    justify-content: center;

  }
  div.track, div.artist {
      width: 100%;
      min-width: 200px;
      max-width: 400px;
  }
}

.link {
    text-decoration: underline;
    cursor: pointer;
}
.link:hover {
    color: cornflowerblue;
}

/* Dashed border */
hr.dashed {
  width: 800px;
  border-top: 1px dashed #bbb;
  margin: 0px;
}

/* Chat CSS */
/* FAB styling */
#fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  padding: 0px;
}

.badge {
      position: absolute;
      top: -8px;
      left: -8px;
      background: red;
      color: white;
      font-size: 14px;
      font-weight: bold;
      border-radius: 50%;
      padding: 7px 7px;
      line-height: 1;
      min-width: 12px;
      text-align: center;
    }

/* Bottom sheet styling */
#chatSheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: #f0f0f0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: bottom 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

#chatSheet.active {
  bottom: 0;
}

#chatHeader {
  padding: 10px;
  background: #000000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  max-height: 50px;
}

#djChatBox {
  display: flex; 
  height: 100%;
}

#chatMessages, #chatMessagesRight {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#chatMessagesRight {
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: scroll;
  grid-row: 1;
}

#djChatBoxRight {
  flex-direction: column;
  width: 50%;
  position: relative;
  display: grid;
  grid-template-rows: 80% minmax(50px, max-content);
}

#chatListLeft {
  height: 100%;
  width: 50%;
  overflow-y: scroll;
  background-color: #2f3136;
  color: white;
  padding: 1rem;
  box-sizing: border-box;
}

#chatInput {
  display: flex;
  border-radius: 20px;
  background-color: transparent;
  width: 100%;
  grid-row:2
}

#chatInput input {
  /* flex: 1;
  padding: 10px;
  border: none;
  outline: none; */

  flex: 1;
  padding: 0.6rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

#chatInput button {
  padding: 10px 20px;
  border: none;
  /* color: #fff; */
  cursor: pointer;
  border-radius: 20px;
}

#closeBtn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Chat bubbles */
.chat-bubble {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 20px;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  animation: fadeInUp 0.3s ease-out;
}

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

.chat-bubble-row.sent {
  display: flex;
  justify-content: flex-end;
}

.chat-bubble-row.received {
  display: flex;
  justify-content: flex-start;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: #007aff;
  color: white;
  border-bottom-right-radius: 4px;
}

/* .chat-bubble.sent::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #007aff;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
} */

.chat-bubble.received {
  align-self: flex-start;
  background: #e5e5ea;
  color: black;
  border-bottom-left-radius: 4px;
}

.chat-bubble.received::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #e5e5ea;
  clip-path: polygon(100% 0, 0 100%, 0 0);
}

/* Timestamp */
.timestamp {
  font-size: 11px;
  color: gray;
  margin-top: 2px;
  text-align: right;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.chatListRow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: sans-serif;
  padding: 10px;
  width: 100%;
}

.chatListRow:nth-child(even) {
  background-color: #434343;
}

.chatListCircle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #4a90e2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.chatListStack {
  display: flex;
  flex-direction: column;
  flex: 1;
} 

.chatListName {
  font-weight: bold;
}

.chatListDate {
  font-style: italic;
  font-size: 0.9em;
  color: #555;
}

.selectedChat {
  background-color: burlywood !important;
}
