body {
	margin: 0;
	font-family: sans-serif;
	display: flex;
	height: 100vh;
	background: #1e1e1e;
	color: #fff;
}
#dashboardMessage {
	padding: 10px 10px 10px 15px;
	background-color: #2e2e2e;
	border-radius: 10px;
}

.subscribebtn {
	color: white;
	background-color: #069a2e;
	transition: background-color 0.5s ease;
}

.subscribebtn:hover {
	color: white;
	background-color: #6b00de;
	transition: background-color 0.5s ease;
}

#sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #1a1a1a;
  padding: 3rem 1rem 1rem;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 5px 0 20px 0px #111111;
  z-index: 1000;
}
#sidebar button {
	width: 100%;
	text-align: left;
}

#sidebar.hidden {
  transform: translateX(-100%);
}

body.sidebar-hidden #content {
  margin-left: 0;
}

#content {
  width: 100%;
  transition: margin-left 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
  margin-left: 300px; /* keď sidebar je viditeľný */
}

#content [contenteditable="true"] {
  background-color: rgb(43, 43, 43);
}

.menu-toggle {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #1e1e1e;
	color: #fff;
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	z-index: 1001;
	cursor: pointer;
	/* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);*/
}

button,
select,
input[type="text"] {
	font-size: 1rem;
}

button {
	background: #2d2d2d;
	border: none;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
}

.obs-preview {
  width: 100%;
  display: block;
}

.obs-preview.bingo {
  width: 70%;
  display: block;
}

button:hover {
	background: #444;
}

button.save {
	background: #45c725;
	border: none;
	color: #111;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
}

button.save:hover {
	background: #4568dd;
	color: #ffffff;
	transition: opacity 0.3s ease, background-color 1.5s ease;
}

button.createBingoBtn {
	background: #45c725;
	border: none;
	color: #111;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
}

button.createBingoBtn:hover {
	background: #4568dd;
	color: #ffffff;
	transition: opacity 0.3s ease, background-color 1.5s ease;
}


createBingoBtn

.goal-item {
	display: flex;
	align-items: center;
	background: #2a2a2a;
	padding: 0.7rem 1rem;
	margin-bottom: 0.7rem;
	border-radius: 8px;
	gap: 0.6rem;
}

.goal-item input[type="text"] {
	flex: 1;
	background: #1c1c1c;
	border: none;
	padding: 0.4rem 0.6rem;
	border-radius: 5px;
	color: #fff;
}

.goal-create {
	display: flex;
	align-items: center;
	background: #2a2a2a;
	padding: 0.7rem 1rem;
	margin-bottom: 0.7rem;
	border-radius: 8px;
	gap: 0.6rem;
}

label.name {
	width: 180px;
	align-content:center;
	color: white;
}

.goal-create input[type="text"] {
	flex: 1;
	background: #1c1c1c;
	border: none;
	padding: 0.4rem 0.6rem;
	border-radius: 5px;
	color: #fff;
}

.bingo-create {
	display: flex;
	align-items: center;
	background: #2a2a2a;
	padding: 0.7rem 1rem;
	margin-bottom: 0.7rem;
	border-radius: 8px;
	gap: 0.6rem;
}

.bingo-create input[type="text"] {
	flex: 1;
	background: #1c1c1c;
	border: none;
	padding: 0.4rem 0.6rem;
	border-radius: 5px;
	color: #fff;
}

#bingoSize {
	background: #2e2e2e;
	color: #fff;
	font-size: 25px;
	width: 70px;
}


.goal-item.dragging input[type="text"] {
	flex: 1;
	background: #df8686;
	border: none;
	padding: 0.4rem 0.6rem;
	border-radius: 5px;
	color: #fff;
}

.goal-item select,
.goal-item input[type="checkbox"],
.goal-item button {
	flex-shrink: 0;
}

.goal-item .eye-icon {
	color: #ccc;
	font-size: 1.2rem;
}

.goal-item .eye-icon.visible {
	color: #3fc380;
}

.goal-item .trash-btn {
	background: #3e9e4d;
	font-weight: bold;
	padding: 0.3rem 0.6rem;
}

.section {
	display: none;
}

.section.active {
	display: block;
}

.obs-link {
	/*margin-top: 2rem;*/
	background: #222;
	padding: 10px 20px 10px 10px;
	border-radius: 5px;
	color: #aaa;
	font-size: 0.95rem;
}

.obs-link input {
	width: 100%;
	background: #111;
	border: none;
	color: #fff;
	padding: 0.4rem;
		font-size: 0.95rem;
}

.bingoObsLink {
	/*margin-top: 2rem;*/
	background: #222;
	padding: 10px 20px 10px 10px;
	border-radius: 5px;
	color: #aaa;
	font-size: 0.95rem;
}

.bingoObsLink input {
	width: 100%;
	background: #111;
	border: none;
	color: #fff;
	padding: 0.4rem;
		font-size: 0.95rem;
}

#logoutMessage {
	position: fixed;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: #3a3;
	padding: 10px 20px;
	border-radius: 4px;
	display: none;
	z-index: 1002;
}

/* container */
.goals-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* hint pod nadpisom */
.hint {
	font-size: 0.9rem;
	color: #bbb;
	margin-bottom: 0.5rem;
}

/* jednotlivé goal položky */
.goal-item {
	display: flex;
	align-items: center;
	background: #2a2a2a;
	border-radius: 8px;
	padding: 0.6rem 1rem;
	margin-bottom: 0.75rem;
	gap: 0.75rem;
	cursor: grab;
}

.goal-item.dragging {
	display: flex;
	align-items: center;
	background: #1467d4;
	border-radius: 8px;
	padding: 0.6rem 1rem;
	margin-bottom: 0.75rem;
	gap: 0.75rem;
	cursor: grab;
}

.goal-item:active {
	cursor: grabbing;
}

/* uchopovač pre drag&drop */
.drag-handle {
	font-size: 1.2rem;
	color: #888;
	user-select: none;
    border: 2px dashed #888;
  background-color: #343434;
}

/* text label */
.goal-label {
	flex: 1;
	color: #fdfdfd;
	outline: none;
	cursor: text;
}

.goal-label:focus {
	background: #ffffff;
	border-radius: 4px;
}

/* status select so základným štýlom */
.status {
	padding: 0.3rem 0.6rem;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	color: #fff;
}

/* farebné stavy */
.status option[value="pending"] {
	background: #fb8c00;
	color: #fff;
}

.status option[value="in_progress"] {
	background: #42a5f5;
	color: #fff;
}

.status option[value="completed"] {
	background: #66bb6a;
	color: #fff;
}

/* odlíšenie v samotnom selecte */
.status {
	background: #444;
}

.status[value="pending"] {
	background: #fb8c00;
}

.status[value="in_progress"] {
	background: #42a5f5;
}

.status[value="completed"] {
	background: #66bb6a;
}


.trash-btn {
	background: #e53935;
	border: none;
	color: #fff;
	padding: 0.3rem 0.5rem;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.trash-btn:hover {
	background: #c62828;
}


.style-card {
  background: #222;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 100%;
  margin: 1rem auto;
}
.style-card h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #fff;
}
.style-form {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0.75rem;
  column-gap: 1rem;
  
}
.style-form .field label {
  color: #ddd;
  font-size: 0.95rem;
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(var(--bingo-size), 1fr);
  gap: 4px;
  column-gap: 21px;
  margin-bottom: 1rem;
}
/* Bingo list items */
#bingoList {
  list-style: none;
  padding: 0;
}
.bingo-item {
	display: flex;
	align-items: center;
	background: #2a2a2a;
	padding: 0.7rem 1rem;
	margin-bottom: 0.7rem;
	border-radius: 8px;
	gap: 0.6rem;
}
.bingo-item span {
  flex: 1;               /* take up remaining space */
  color: #fff;
  font-weight: bold;
}
/* small outline buttons (you may already have btn, btn-sm etc) */
.btn {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.btn-sm {
  font-size: 0.875rem;
}
.btn-outline-light { color: #fafafa; }
.btn-outline-info  { color: #0dcaf0; }
.btn-outline-danger{ color: #f03e3e; }
.btn:hover {
  background-color: rgba(255,255,255,0.1);
}


#bingoEditor {
 width: 70%;
 height: 50%;

}
.bingo-cell {
	  width: 100%;
  padding-top: 100%;    /* height = width */
  position: relative;
  position: relative;
  background: #222;
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  /* New: enforce 1:1 aspect ratio */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  transition: color 0.25s ease-in-out;
}

.bingo-cell > * {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bingo-cell.marked {
  background: #0a0;
  transition: color 0.25s ease-in-out;
}
.bingo-cell:hover {
  filter: brightness(1.1);
}

/* ALERTS SECTION STYLE */
.alerts-settings-sidebar {
  background: #2b2b2b;
  border-radius: 18px;
  min-width: 340px;
  max-width: 400px;
  padding: 32px 2rem 2rem 2rem;
  box-shadow: 0 2px 24px 0 #0007;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.alerts-settings-sidebar h2 {
  color: #fff;
  font-size: 1.23rem;
  font-weight: 600;
  margin-bottom: 1.3em;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.accordion-group {
  width: 100%;
}
.accordion {
  background: #424242;
  border-radius: 12px;
  margin-bottom: 1.1em;
  box-shadow: 0 1px 4px 0 #0002;
}
.accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.09em;
  text-align: left;
  padding: 0.85em 1.3em;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.9em;
  transition: background 0.13s;
}
.accordion.open .accordion-toggle,
.accordion-toggle:focus {
  background: #282848;
  color: #ffea80;
  outline: none;
}
.accordion-content {
  display: none;
  padding: 1em 1.7em 1em 1.7em;
}
.accordion.open .accordion-content {
  display: block;
}
.sidebar-btn {
  background: #23233b;
  color: #fff;
  padding: 0.8em 1.8em;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.08em;
  margin-top: 0.8em;
  box-shadow: 0 1px 6px #0003;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.sidebar-btn:hover {
  background: #3a3274;
  color: #ffea80;
}
.icon { font-size: 1.21em; }
.alert-checkbox-group {
  width: 100%;
}
.alert-checkbox-group label {
  display: block;
  margin-bottom: 0.5em;
  font-size: 1.05em;
}
.alert-event-block {
  background: transparent;
  border-radius: 8px;
  margin-bottom: 0.6em;
  /*padding: 0.4em 0.3em 0.2em 0.3em;*/
}
.accordion:not(.open) .accordion-content {
  display: none;
}
.accordion.open .accordion-content {
  display: block;
}

input[type="color"] {
    -webkit-appearance: none;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgb(0 0 0 / 0%);
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
}

.alerts-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  width: 100%;
  margin-top: 1.8em;
  min-height: 480px;
}

/* Pravý panel pre preview */
.alert-preview-container {
  flex: 1 1 auto;
  width: 100%;
  max-width: unset; /* odstráni obmedzenie */
  min-width: 600px; /* nastav podľa potreby */
  margin-left: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.alert-preview {
  width: 100%;
  max-width: 1400px;  /* môžeš dať aj viac, podľa obrazovky */
  min-width: 800px;
  height: 350px;
  min-height: 200px;
  background: #18182a;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 #0007;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .alerts-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .alert-preview-container, .alert-preview {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
  }
}

/* Riadok pre jeden alert event */
.alert-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3em;
  background: none;
  padding: 0.4em 0;
  border-bottom: 1px solid #34344922;
}

.alert-event-info {
  display: flex;
  align-items: center;
  gap: 0.9em;
  flex: 1 1 auto;
  min-width: 230px;
}
.alert-event-label {
  font-size: 1em;
  min-width: 115px;
  color: #fff;
}
.alert-event-colors {
  display: flex;
  align-items: center;
  gap: 1.2em;
}
.alert-event-color-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  font-size: 0.91em;
  color: #aaa;
}
.alert-event-actions {
  display: flex;
  gap: 0.5em;
}
.save-event-btn, .preview-alert-btn {
  background: #23233b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55em 1.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.18s;
}
.save-event-btn:hover, .preview-alert-btn:hover {
  background: #3a3274;
  color: #ffea80;
}

.event-color-row {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1em;
  margin: 1.18em 0 0.18em 1.6em;
}
.event-color-row span {
  min-width: 76px;
  color: #ccc;
}
.event-color-row > span {
  flex: 1 0 110px; /* fixná šírka labelu, podľa potreby uprav */
  color: #d9d9d9;
}

.event-action-row {
  display: flex;
  gap: 0.5em;
  margin: 0.5em 0 0.2em 1.6em;
}
.alert-event-block input[type="color"] {
  margin-left: 0.5em;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
}
.preview-alert-btn, .save-event-btn {
  background: #23233b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.42em 1.1em;
  font-size: 0.99em;
  cursor: pointer;
  transition: background 0.18s;
}
.preview-alert-btn:hover, .save-event-btn:hover {
  background: #3a3274;
  color: #ffea80;
}

.event-color-row input[type="text"] {
    width: 50%;
    background: #1c1c1c;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    color: #fff;
}

.switch { 
   position : relative ;
   display : inline-block;
   width : 40px;
   height : 20px;
   background-color: #eee;
   border-radius: 20px;
 }

 .switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  top: 1px;
  left: 1px;
  transition: all 0.3s;
}

.checkbox:checked + .switch::after {
  left : 20px; 
}
.checkbox:checked + .switch {
  background-color: #7983ff;
}

.checkbox { 
   display : none;
}

.supporters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7em 2.3em; /* vertical, horizontal */
  align-items: flex-start;
  margin-bottom: 0.8em;
}

.supporter-card {
  display: flex;
  align-items: center;
  min-width: 220px;   /* napríklad – uprav podľa seba, testuj! */
  max-width: 250px;
  flex: 0 1 230px;
  gap: 1em;
  margin-bottom: 0.3em;
  box-sizing: border-box;
}

.supporter-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #a08efc;
  margin-right: 0.2em;
}

.supporter-card .supporter-name {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
  display: block;
}

.supporter-card .supporter-gift {
  color: #f5ba4b;
  font-size: 0.96em;
  margin-top: 2px;
  display: block;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supporter-name a {
color: white;
text-decoration: none;
}

.supporter-name a:hover {
color: #a8a8a8;
text-decoration: none;
}

.supporter-name a:visited {
color: white;
text-decoration: none;
}