/* Color Scheme Variables */
:root {
  --primary-yellow: #FFF100;
  --bg-dark: #1a1a1a;
  --bg-medium: #2d2d2d;
  --bg-light: #3d3d3d;
  --bg-header: #252525;
  --text-primary: whitesmoke;
  --text-secondary: #cccccc;
}

::selection {
  background-color: var(--primary-yellow);
  color: #000;
}

::-moz-selection {
  background-color: var(--primary-yellow);
  color: #000;
}

body {
  margin: 0 auto;

  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Lato', sans-serif;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #1a1a1a;
}

html::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.scrollable-content {
  overflow-y: auto;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.scrollable-content::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

input[type='time']::-webkit-calendar-picker-indicator {
  filter: invert(88%) sepia(69%) saturate(1398%) hue-rotate(359deg)
    brightness(104%) contrast(106%);

  align-self: left;
}

img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.header {
  position: fixed;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100%;
  height: 80px;
  background: var(--bg-header);
}

.logo {
  width: 50px;
  margin-left: 24px;
  cursor: pointer;
}

.maintitle {
  margin-left: 20px;
  text-transform: small-caps;
  font-size: 17px;
  color: whitesmoke;
}

.maincontainer {
  display: flex;
}

.sidebar {
  position: fixed;
  margin-top: 80px;
  min-height: 100vh;
  max-height: 1000vh;
  width: 300px;
  background-color: var(--bg-medium);
  padding-left: 23px;
  padding-top: 20px;
}

.menuitem {
  display: flex;
  align-items: center;
  margin-top: 15px;
  cursor: pointer;
}

.icon {
  margin-right: 10px;
  max-width: 23px;
}

.content {
  margin-top: 110px;
  flex-grow: 1;
  margin-right: 30px;
  margin-left: 355px;
  margin-bottom: 50px;
}

#editMuseumForm {
  width: calc(100% - 430px);
  float: left;
}

.phone_preview_container {
  position: fixed;
  width: 400px;
  right: 30px;
  top: 110px;
  height: calc(100vh - 130px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 20px;
}

.phone_preview_image {
  width: calc(100% - 28px);
  position: absolute;
  left: 0;
}

.phone_preview_container::-webkit-scrollbar {
  width: 8px;
}

.phone_preview_container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.phone_preview_container::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.phone_preview_container::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.pievienotBtn {
  width: 140px;
  cursor: pointer;
}

.pievienotBtnContainer {
  text-align: right;
}

.edit-delete-container {
  display: flex;
  align-items: center;
}

.edit-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 40px;
}

.delete-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 40px;
}

.museum-name {
  flex: 2;
  padding: 0 15px;
}

.museum-email {
  flex: 2;
  padding: 0 15px;
  font-size: 14px;
}

.museum-id {
  flex: 2;
  padding: 0 15px;
  font-size: 13px;
  color: var(--text-secondary);
}

.museum-status {
  flex: 1;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-icon {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.delete-icon {
  cursor: pointer;
  width: 22px;
  height: 22px;
}

.whiteline {
  height: 1px;
  background-color: rgba(245, 245, 245, 0.2);
  border: none;
  margin-top: 0px;
}

.flex-container {
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
}

.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background: var(--bg-medium);
  color: whitesmoke;
  border-radius: 7px;
  min-height: 56px;
  font-size: 13px;
  padding-left: 35px;
  padding-right: 35px;
}

.museum-row {
  min-height: 60px !important;
}

.subscription-list .col { flex: 1; padding: 0 12px; }
.subscription-list .col-actions { flex: 0 0 60px; padding: 0 12px; }
.subscription-list .col-title { flex: 3; }
.subscription-list .col-email { flex: 3; }
.subscription-list .col-audio { flex: 1; text-align: center; }
.subscription-list .col-active { flex: 0 0 120px; text-align: right; padding-right: 20px; }

.saveico {
  width: 22px;
  height: 22px;
}



.museum-active {
  text-align: center;
}

.edit-icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.saveico {
  width: 22px;
  height: 22px;
}

.active-menu {
  font-weight: bold;
}

.inactive-menu {
  font-weight: 400;
  color: rgba(245, 245, 245, 0.5);
}

.inactive-menu:hover {
  color: rgba(245, 245, 245, 1);
}

.inactive-icon {
  opacity: 0.5;
}

.none {
  display: none;
}

.center {
  position: absolute;
  left: 50%;
  top: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
}

input,
textarea {
  color: var(--text-primary);
  background-color: var(--bg-medium);
  padding: 11px;
  border: 1px solid #dddddd33;
  border-radius: 4px;
}

input:disabled,
textarea:disabled {
  background-color: #1a1a1a;
  color: #555555;
  cursor: not-allowed;
  opacity: 1;
  border: 1px solid #333;
}

input:disabled::placeholder,
textarea:disabled::placeholder {
  color: #444444;
  opacity: 1;
}

button {
  align-self: flex-end;
  width: 155px;
  margin-top: 20px;
  padding: 10px;
  background-color: var(--primary-yellow);
  background-image: linear-gradient(135deg, var(--primary-yellow) 0%, #FFD700 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-position 0.7s ease;
}

button:disabled {
  cursor: not-allowed;
}

.image-upload-label {
  display: inline-block;
  font-size: 13px;
  padding: 8px 15px;
  background-color: var(--primary-yellow);
  background-image: linear-gradient(135deg, var(--primary-yellow) 0%, #FFD700 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-position 0.7s ease;
  margin-bottom: -8px;
}

.image-upload-label:hover {
  background-position: 100% 50%;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.image-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.image-preview-item .delete-image {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background-color: red;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.loginformcontainer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  text-align: center;
}
.sortable-header {
  cursor: pointer;
  user-select: none;
}

.sort-arrows {
  font-size: 10px;
  margin-left: 5px;
}

.sort-arrow {
  opacity: 0.3;
  transition: opacity 0.2s;
}

.sortable-header:hover .sort-arrow {
  opacity: 0.6;
}
.renew-password {
  text-align: left;
  font-size: 13px;
  margin-top: 9px;
}

.renew-password:hover {
  text-decoration: underline;
  cursor: pointer;
}

#working_hours div {
  margin-bottom: 20px;
}

#addMuseumForm h3 {
  margin-bottom: 7px;
}

.description {
  height: 300px;
}

.savingText {
  width: 670px;
  left: 51%;
  top: 61%;
}

.tag {
  background-color: var(--bg-medium);
  padding: 2px 5px;
  margin: 2px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
}
.tag-remove {
  margin-left: 5px;
  cursor: pointer;
}
.tag-dropdown {
  width: 100%;
  margin-top: 5px;
}
.tag-options {
  display: none;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: var(--bg-medium);
}
.tag-option {
  padding: 5px;
  cursor: pointer;
}
.tag-option:hover {
  background-color: black;
}

.bilingual-container {
  display: flex;
  gap: 20px;
}

.language-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.language-section input,
.language-section textarea {
  width: 100%;
  box-sizing: border-box;
}

select {
  color: whitesmoke;
  background-color: var(--bg-medium);
  padding: 11px;
  border: 1px solid #dddddd33;
  border-radius: 4px;
}

option {
  background-color: var(--bg-medium) !important;
  color: whitesmoke !important;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1002;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay.none {
  display: none;
}

.spinner {
  border: 5px solid var(--bg-light);
  border-top: 5px solid var(--primary-yellow);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  text-align: center;
}

#closeModal {
  background-color: var(--primary-yellow);
  color: #000;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#closeModal:hover {
  background-color: #FFD700;
}

.error-content {
  background-color: #1a1a1a;
  border: 1px solid #ef9a9a;
}

#closeErrorModal, #authErrorButton {
  background-color: #f44336;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#closeErrorModal:hover, #authErrorButton:hover {
  background-color: #d32f2f;
}

#logoutButton {
  position: absolute;
  right: 20px;
  top: 4px;
  width: 69px;
}

.publish-button {
  float: right;
  margin-right: 10px;
}

.save-button {
  float: right;
}

button:hover {
  background-position: 100% 50%;
}

.bold {
  font-weight: bold;
}

.funllopacity {
  opacity: 1;
}

.noopacity {
  opacity: 0;
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  -webkit-animation-duration: 0.4s;
  -webkit-animation-timing-function: linear;
}

.fadeOut {
  -webkit-animation-name: fadeOut;
  -webkit-animation-duration: 0.4s;
  -webkit-animation-timing-function: linear;
}

/* Success Banner for Email Verification */
.success-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-yellow);
  color: #000;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  text-align: center;
  max-width: 500px;
  animation: slideDown 0.5s ease-out;
}

.success-banner p {
  margin: 0;
  font-size: 16px;
}

@keyframes slideDown {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}

/* ===== TOUR GUIDE STYLES ===== */

#tourFormPanel.tour-panel-active {
  position: fixed;
  width: 700px;
  right: 0;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--bg-medium);
  border-radius: 0;
  padding: 25px;
  box-sizing: border-box;
  z-index: 100;
}

#tourFormPanel.tour-panel-active form {
  gap: 12px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background-color: #2e7d32;
  color: #a5d6a7;
}

.status-inactive {
  background-color: #3d3d3d;
  color: #aaa;
}

.token-dashboard {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-medium);
  border-radius: 7px;
  padding: 12px 20px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--text-secondary);
}

.token-dashboard strong {
  color: var(--primary-yellow);
  font-size: 16px;
}

.item-row {
  cursor: default;
}

.item-row.dragging {
  opacity: 0.4;
}

.item-row.drag-over {
  border: 1px solid var(--primary-yellow);
}

.drag-handle {
  font-size: 18px;
  cursor: grab;
  user-select: none;
  padding-right: 15px;
  color: var(--text-secondary);
}

.drag-handle:active {
  cursor: grabbing;
}

.disabled-option {
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
}

.disabled-tooltip {
  display: none;
  position: absolute;
  bottom: 125%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.disabled-option:hover .disabled-tooltip {
  display: block;
}

.modal-content.modal-wide {
  max-width: 700px;
  width: 90%;
  text-align: left;
}

#subEditModal .modal-content {
  text-align: left;
  max-width: 460px;
}

/* ===== PRICING PLANS ===== */

.plan-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.plan-toggle input { opacity: 0; width: 0; height: 0; }
.plan-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #333;
  border-radius: 24px;
  transition: 0.3s;
}
.plan-toggle-slider:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.plan-toggle input:checked + .plan-toggle-slider { background: var(--primary-yellow); }
.plan-toggle input:checked + .plan-toggle-slider:before { transform: translateX(20px); }

.plan-card {
  flex: 1;
  background: var(--bg-medium);
  border-radius: 12px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid #2a2a2a;
}

.plan-card-popular {
  border-color: var(--primary-yellow);
}

.plan-popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-yellow);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 10px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
}

.plan-currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-yellow);
  align-self: flex-start;
  margin-top: 6px;
}

.plan-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-yellow);
  line-height: 1;
}

.plan-period {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 2px;
}

.plan-billing-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  min-height: 16px;
}

.plan-objects {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.plan-btn {
  width: 100%;
  margin-top: 0;
  padding: 13px;
  margin-bottom: 24px;
  background: #2a2a2a;
  background-image: none;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  font-size: 15px;
}

.plan-btn-popular {
  background: var(--primary-yellow);
  background-image: none;
  color: #000;
}

.plan-btn:hover { opacity: 0.85; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
