/* Navbar Styles */
.navbar {
  border-bottom: 3px solid #C0392B;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  padding-bottom: 3px;
}

.navbar-link:hover {
  background-color: #C0392B;
}

#btn_issues_list,
#btn_admin,
#btn_share {
  border-width: 2px;
  border-color: #C0392B;
  color: white;
}

/* SortableJS und Ticket Styles */
.box.is-small.issue.mb-2.sortable-chosen.sortable-ghost {
  opacity: .8;
  background: #C0392B;
}

.issue.selected .delete.is-small.ml-2::before {
  background-color: #C0392B!important;
  
}

.issue.selected .delete.is-small.ml-2::after {
  background-color: #C0392B!important;

}


.box.is-small.issue.mb-2.sortable-drag {
  opacity: .001;
}


.box.is-small.issue.mb-2.sortable-chosen{
  background: #37414e;
}

.box.is-small.issue.mb-2 {
  margin-top: 8%;
}

.box.is-small.issue.mb-2 strong {
  display: flex;
}

/* Side Panel Styles */
.room-wrapper {
  position: relative;
  width: 100%;
  transition: padding-right 0.3s ease-in-out;
  overflow-y: auto;
  height: 100vh;
}

.main-container {
  width: 100%;
  transition: width 0.3s ease-in-out;
}

.side-panel {
  position: fixed;
  top: 0;
  right: -25%; /* Panel startet außerhalb des Viewports */
  width: 25%;
  height: 100vh;
  background-color: #333;
  color: #fff;
  padding: 20px;
  box-shadow: -2px 0 5px rgb(0 0 0 / 50%);
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  z-index: 1000;
}

/* Wenn das Panel offen ist */
.room-wrapper.panel-open {
  padding-right: 25%; /* Macht Platz für das Panel */
}

.side-panel.open {
  right: 0;
}


.side-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -20px -20px 20px;
  padding: 20px;
  border-bottom: 2px solid #C0392B;
}

.side-panel-content {
  height: calc(100% - 60px);
  overflow-y: auto;
}

.side-panel button {
  color: white;
  background-color: #C0392B; 
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.side-panel button:hover {
  background-color: #a82e23;
}

/* Scrollbar Styling für das Panel */
.side-panel::-webkit-scrollbar {
  width: 8px;
}

.side-panel::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.side-panel::-webkit-scrollbar-thumb {
  background: #C0392B;
  border-radius: 4px;
}

.side-panel::-webkit-scrollbar-thumb:hover {
  background: #a82e23;
}

/* Select Ticket Styles */
.issue.selected {
  border: 2px solid #C0392B;
  background-color: #C0392B;
  color: white !important;
}

.issue.selected button{
  background-color: white;
  color:#C0392B;
}

/* vereinheitlichung der Überschriften */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 35px;
  font-family: "Titillium Web", Arial, sans-serif !important;
  color: #363636;
}

/* vereinheitlichung der Absätze mit p Tag */

p {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  color: white;
}

/* vereinheitlichung der Buttone im header */
.btn {
  background-color: #333;
  color: white;
  border-width: 2px;
  border-color: #C0392B;
  width: 90px;
  height: 70px;
}

.admin-actions .btn {
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
  height: 45px;
  gap: 8px; /* Abstand zwischen Icon und Text */
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  padding: 0 12px;
}

.admin-actions .btn:hover {
  background-color: #7a685eab;
}

/* Issue Styles */
.issue {
  background-color: #333;
  border-color: black;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  position: relative;
  
}

.issue .delete {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Delete Button nur in ausgewählten Tickets - rotes X */
.issue.selected #delete_button {
  color: #C0392B !important;
}

#issueInput {
  width: 100%;
  color: white;
}

.issue a {
  color: white;
}


/* Admin Dropdown Container */
.admin-dropdown-container {
  position: relative;
  display: inline-block;
}

/* Dropdown Stil */
.admin-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #333;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  width: 200px;
  z-index: 100;
  margin-top: 8px;
  border: 1px solid #C0392B;
}

.admin-dropdown.active { display: block; }

.admin.active {
  display: block;
}

.participants-dropdown-container {
  position: relative;
  display: inline-block;
}

.participants-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #333;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  width: 280px;
  z-index: 100;
  margin-top: 8px;
  border: 1px solid #C0392B;
  max-height: 400px;
  overflow-y: auto;
}

.participants-dropdown.active {
  display: block;
}

/* Participants Header */
.participants-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #C0392B;
}

.participants-header h4 {
  color: white;
  font-size: 1.1rem;
  margin: 0;
  font-family: 'Titillium Web', Arial, sans-serif;
}

/* Participants List */
.participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #2d2d2d;
  border-radius: 6px;
  border-left: 3px solid #C0392B;
}

.participant-item.has-card {
  border-left-color: #28a745;
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C0392B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 12px;
  font-size: 14px;
}

.participant-info {
  flex: 1;
}

.participant-name {
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.participant-status {
  color: #aaa;
  font-size: 0.8rem;
}

.participant-status.has-card {
  color: #28a745;
}

/* Participants Count Badge */
.participants-count {
  background: #C0392B;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 8px;
  min-width: 20px;
  text-align: center;
}


/* Header Bereich */
.admin-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #C0392B;
}

.admin-name {
  font-weight: bold;
  color: white;
  font-size: 1.1rem;

}

/* Icon Anpassungen */
.admin-dropdown .icon {
  margin-right: 8px;
}

.status-tag-enabled {
  color: green;
  font-weight: bold;
}

.status-tag-disabled {
  color: red;
  font-weight: bold;
}