/** ------------------------------------------------------------------
 *  1. Imports
 * -----------------------------------------------------------------*/

 @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap');

/** ------------------------------------------------------------------
 *  2. Fonts & Containers
 * -----------------------------------------------------------------*/

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;

  font-family: Montserrat;
  font-weight: 500;
  letter-spacing: .04rem;
}

h1, h2, h3, h4, h5, p, input, .sticky-content {
  padding: 0px;
  margin: 0px;
  font-family: Montserrat;
  font-weight: 500;
  letter-spacing: .05rem;
  line-height: 1.3;
}

h3 {
  font-size: 14px;
  color: #F1FFFA;
}

h4 {
  font-size: 12px;
  color: #F1FFFA;
}

h5 {
  font-size: 10px;
  color: #F1FFFA;
}

p {
  font-size: 12px;
  color: #F1FFFA;
}

h3.primary-menu-element {
  cursor: pointer;
  padding: 8px;
  font-size: 11px;
}

#digitalClock {
  cursor: pointer;
  font-size: 13px;
}

.draggable {
  position: absolute;
  background-color: rgba(14, 25, 27, 0.5);
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
  padding: 15px;
  box-sizing: border-box;
}

.page-container {
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.overlay-prompt, .authentication-prompt {
  display: flex;
  position: fixed;
  top: 20px;
  left: 20px;
  width: calc(100vw - 80px);
  height: calc(100vh - 140px);
  background-color: rgba(14, 25, 27, 0.9);
  z-index: 9999;
  transition: opacity 0.1s ease-in-out;
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  align-content: space-between;
}

.authentication-prompt {
  background-color: rgba(14, 25, 27, 1)!important;
  top: 0px!important;
  left: 0px!important;
  right: 0px!important;
  bottom: 0px!important;
  width: auto!important;
  height: auto!important;
  border-radius: unset!important;
}

.resizer {
  width: 14px;
  height: 14px;
  background: rgba(14, 25, 27, 0.4);
  position: absolute;
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
  z-index: 1000;
  border-radius: 6px 0px;
}

#kanbanBoard,
.draggable {
  overflow: visible !important;
}

#kanbanBoard {
  display: flex;
}

/** ------------------------------------------------------------------
 *  3. Minimise
 * -----------------------------------------------------------------*/
.minimise-button {
  background-color: transparent;
  height: 20px;
  width: 20px;
  border-style: none;
  font-size: 13px;
  color: rgba(241, 255, 250, 0.6);
  cursor: pointer;
}

.minimised {
  transition: all 0.5s ease-in-out;
  transform: scale(0.9);
  opacity: 0; /* Fade it out */
  pointer-events: none; /* Disable interaction when minimized */
}

.minimised-item {
  color: #F1FFFA;
  margin: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.minimised-item:hover {
  transform: scale(1.1); /* Slightly enlarge when hovered */
}

/** ------------------------------------------------------------------
 *  4. Global
 * -----------------------------------------------------------------*/

/* Basic Flex Container */
.global-flex-row {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

.global-flex-row-small-gap {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.global-flex-column {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.global-basic-flex-section {
  display: flex;
  flex: 1;
}

.global-basic-flex-section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

/* Margins */
.global-padding {
  padding: 10px 0px 10px 0px;
}

.global-padding-bottom {
  padding: 0px 0px 10px 0px;
}

/* Dividers */
.global-divider-bottom {
  border-bottom: solid;
  border-bottom-width: 2px;
  border-color: rgba(241, 255, 250, 0.1);
}

.global-space-left {
  margin-left: 10px;
}

/* Other */
.global-no-drag-zone {
  pointer-events: auto;
}

.global-display-none {
  display: none;
}

.global-gap-small {
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
}

/** ------------------------------------------------------------------
 *  5. Menu
 * -----------------------------------------------------------------*/
.active-status.active {
  background-color: #4CAF50;
  border-radius: 100%;
  width: 8px;
  height: 8px;
}

.primary-menu-container {
  bottom: 10px;
  left: 20px;
  right: 20px;
  padding: 0px 20px;
  position: fixed;
  min-height: 50px;
  background-color: rgba(14, 25, 27, 0.5);
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
}

.primary-menu-container-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.primary-menu-section {
  display: flex;
  align-items: center;
  padding: 0px;
  gap: 2px;
  transition: transform 0.2s ease;
}

.primary-menu-section:hover {
  transform: scale(1.1);
}

.global-breaker {
  border-right: solid;
  border-color: rgba(241, 255, 250, 0.1)
}

.global-player-search {
  background-color: transparent;
  border-style: none;
  border-width: 1px;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  color: #F1FFFA;
  border-color: #F1FFFA;
}

input.global-player-search::placeholder, input.global-player-search {
  color: #F1FFFA;
  opacity: 1;
  font-size: 11px;
  min-width: 230px;
}

.primary-menu-icon {
  width: 18px;
  height: 18px;
}

.primary-menu-icon-small {
  width: 15px;
  height: 15px;
}

/* Profile Photo */
button.primary-menu-section {
  border-radius: 100px;
  background-color: transparent;
  border: none;
}

button.primary-menu-section .primary-menu-icon {
  border-radius: 100px;
  height: 26px;
  width: 26px;
}

/** ------------------------------------------------------------------
 *  6. Widgets
 * -----------------------------------------------------------------*/

#ambienceMixer {
  width: 30vw;
}

#youtubePlayer {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  height: auto!important;
}

#map {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#youtubePlayer iframe {
  width: 100%!important;
  height: 100%!important;
  border: none;
  display: block;
  box-sizing: border-box;
}

#youtubePlayerOverlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  cursor: grab; /* show grab cursor */
  background: transparent;
  z-index: 10; /* above iframe */
  pointer-events: all; /* catch all pointer events */
}

#div2, #div3 {
  height: 20vh;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  background-color: rgba(14, 25, 27, 0.4);
  padding: 15px;
  margin: -15px -15px 10px -15px;
  border-radius: 6px;
  text-align: center;
}

/** ------------------------------------------------------------------
 *  7. Global Player
 * -----------------------------------------------------------------*/
.global-player-controls {
  background-color: #F1FFFA;
  border-radius: 100px;
  height: 30px;
  width: 30px;
  border-style: none;
}

/** ------------------------------------------------------------------
 *  8. Ambience Mixer
 * -----------------------------------------------------------------*/
#mixerFloatingMenu {
  position: fixed;
  width: 440px;
}

#ambienceMixer {
  overflow: auto;
  flex: 1;
}

.ambience-player-audio-sets {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.ambience-player-audio {
  display: flex;
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
  min-width: 80px;
  gap: 10px;
  border-style: none;
}

.ambience-player-audio.active {
  cursor: pointer;
  backdrop-filter: blur(8px);
}

img.ambience-icon {
  max-width: 28px;
}

.ambience-player-active-tracks {
  display: flex;
  align-items: center;
  flex-direction: row;
  height: 0;
  overflow-y: hidden;
  transition: height 0.6s ease;
}

.ambience-player-active-tracks:not(:empty) {
  height: 140px;
  overflow-y: auto;
}

.ambience-player-active-track {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ambience-volume-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 60px;
  height: 2px;
  transform-origin: center;
  cursor: pointer;
  transform: rotate(-90deg);
}

.ambience-volume-slider::-webkit-slider-runnable-track {
  width: 60px;
  height: 2px;
  border-radius: 8px;
}

.ambience-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #F1FFFA;
  border-radius: 50%;
  margin-top: -4.5px;
  cursor: pointer;
}

.ambience-player-active-tracks .ambience-icon {
  margin-top: 40px;
}

/** ------------------------------------------------------------------
 *  8. Sticky Notes
 * -----------------------------------------------------------------*/

 .sticky-content {
  font-size: 12px;
  color: #F1FFFA;
 }

 .sticky-content:focus {
  outline: none;
}

 .close-sticky {
  float: right;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #d32f2f;
  margin-left: 8px;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-align: center;
}

.popup-buttons {
  margin-top: 15px;
}

.popup-buttons button {
  margin: 0 10px;
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-confirm {
  background-color: #d32f2f;
  color: white;
}

.popup-cancel {
  background-color: #ccc;
  color: #333;
}


/** ------------------------------------------------------------------
 *  9. Preferences
 * -----------------------------------------------------------------*/
.preference-highlight, .highlight-floating {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 20px;
}

.preferences-button {
  color: #F1FFFA;
  background-color: #4CAF50;
  font-size: 12px;
  border-style: none;
  border-radius: 12px;
  width: 80px;
  height: 25px;
}

.highlight-floating {
  width: 100%!important;
}

/* Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/** ------------------------------------------------------------------
 *  10. Spaces
 * -----------------------------------------------------------------*/
.set-items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Set item */
.set-item {
  flex: 0 0 calc((100% - 40px) / 3);
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
  background-color: #0e191b;
  position: relative;
}

.set-item-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

 .set-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.4);
}

.set-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  border-radius: 10px;
}

.set-item-label {
  color: rgb(241, 255, 250);
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
}

.set-item-theme-btn, .set-item-viewer-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.set-item-theme-btn:hover, .set-item-viewer-btn:hover {
  transform: scale(1.1);
}

.set-item-action-row {
  display: flex;
  gap: 15px;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
}

/* New set item */
.create-new-set-item {
  display: flex;
  border: 2px dotted;
  flex-direction: column;
  flex: 1;
  height: 200px;
  cursor: pointer;
  border-radius: 10px;
  background-color: transparent;
  justify-content: center;
  align-items: center;
  color: #F1FFFA;
  font-size: 1rem;
}

.new-set-label {
  text-align: center;
  color: #F1FFFA;
}

/* Prompt form */
.prompt-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 200px;
  height: 100%;
  aspect-ratio: 1.5;
  gap: 10px;
}

.new-set-input {
  padding: 30px 100px;
  text-align: center;
  font-size: 16px;
  border-radius: 6px;
  border: 2px dotted;
  background-color: transparent;
}

input.new-set-input {
  color: #F1FFFA;
}

/* Visibility toggle */
.visibility-container {
  display: flex;
  margin: 15px 0px;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.visibility-box {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  color: #F1FFFA;
  cursor: pointer;
  border: 2px dotted transparent;
  transition: border 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.visibility-box.active {
  border: 2px dotted white;
}

.visibility-heading {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.visibility-description {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Button */
.create-set-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4CAF50;
  color: #F1FFFA;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.sign-out {
  color: #F1FFFA;
  background-color: #E85D75;
  font-size: 12px;
  border-style: none;
  border-radius: 12px;
  width: 80px;
  height: 25px;
}

/* Live Links */
.live-floating-panel {
  display: flex!important;
  flex-direction: column;
  gap: 20px;
}

.live-link-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
}

.live-link {
  color: #F1FFFA;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.live-viewing-container, .global-viewing-container {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.live-icons, .global-icons {
  display: flex;
}

.live-icons img, .global-icons img {
  border-radius: 100px;
  max-width: 24px;
  margin-right: -8px;
  transition: transform 0.2s ease;
}

.live-icons img:hover, .global-icons img:hover {
  transform: scale(1.1);
}

#livePanelMenu, #globalPanelMenu {
  display: flex;
}

.available-reactions {
  display: flex;
  justify-content: space-around;
  cursor: pointer;
}

.available-reactions img {
  width: 22px;
}

.reactions-highlight img {
  width: 18px;
}

.live-reaction-icon {
  width: 16px;
}

.live-reactions {
  border: 2px dotted;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 100px;
  max-height: 100px;
  overflow: auto;
  border-radius: 10px;
  color: #F1FFFA;
  text-align: center;
}

#reactions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.reactions-highlight {
  display: flex;
  gap: 10px;
}

/** ------------------------------------------------------------------
 *  11. Floating Menu
 * -----------------------------------------------------------------*/
.floating-menu {
  position: fixed;
  background-color: rgba(14, 25, 27, 0.9);
  padding: 20px;
  border-radius: 8px;
  z-index: 2000;
}

.floating-menu.spotify-credits {
  min-width: 300px;
  max-width: 300px;
  min-height: 300px;
  max-height: 300px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.media-seek-bar {
  display: flex;
}

#mediaSeek {
  flex: 1;
}

.floating-menu .primary-menu-section {
  border-bottom: solid;
  border-bottom-width: 2px;
  border-color: rgba(241, 255, 250, 0.1);
  z-index: 2000;
}

.hidden {
  display: none !important;
}

#profileFloatingPanel, #liveFloatingPanel {
  width: 400px;
}


#mediaCredits {
  max-width: clamp(220px, 40vw, 420px);
}

/** ------------------------------------------------------------------
 *  13. Authentication
 * -----------------------------------------------------------------*/

.authentication-prompt-inner {
  height: 100%;
  gap: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.authentication-prompt-inner.right {
  padding-left: 250px;
}


.authentication-prompt-flex {
  display: flex;
  gap: 20px
}

.promo-login-image {
  max-width: 65vh;
  border-radius: 12px;
}

#promoLoginImageOne {
  margin-left: -200px;
  margin-bottom: -50px;
}

#promoLoginImageTwo {
  margin-right: -200px;
  margin-top: -50px;
}

#google-signin-btn {
  font-size: 26px;
  border: 2px dotted white;
  color: white;
  background-color: transparent;
  border-radius: 8px;
  padding: 20px 40px;
}

h1.sign-in-header {
  color: white;
}

.sign-in-description {
  font-size: 15px;  
}

/** ------------------------------------------------------------------
 *  15. Clock
 * -----------------------------------------------------------------*/
.clock-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: #F1FFFA;
}

.hour-hand {
  height: 25%;
  width: 4px;
}

.minute-hand {
  height: 35%;
  width: 3px;
  background: #F1FFFA;
}

.second-hand {
  height: 45%;
  width: 2px;
  background: red;
}

/** ------------------------------------------------------------------
 *  16. Weather
 * -----------------------------------------------------------------*/
.weather-inner {
  height: 100%;
}

.weather-main-temp {
  font-size: 20px;
}

.weather-description {
  font-size: 13px;
}

.weather-icon {
  font-size: 34px;
  color: #F1FFFA;
}

.weather-permissions-button {
    border: 2px dotted;
    flex: 1 1 200px;
    cursor: pointer;
    border-radius: 10px;
    background-color: transparent;
    color: #F1FFFA;
    font-size: 1rem;
}

.weather-group {
  display: flex;
  justify-content: space-between;
}

/** ------------------------------------------------------------------
 *  17. Night Shift
 * -----------------------------------------------------------------*/

#nightShift {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 180, 80, 0.00);  /* will be activated via JS */
  pointer-events: none;
  z-index: 9999;
  transition: background 1s ease;  /* smooth transitions for color/opacity */
}

/** ------------------------------------------------------------------
 *  18.
 * -----------------------------------------------------------------*/

/** ------------------------------------------------------------------
 *  19. Calm Zone
 * -----------------------------------------------------------------*/

#calmGroundingZone {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #030E12;
}

.calming-zone-primary-text {
  color: #F1ECE4;
  font-size: 3.5em;
  max-width: 1200px;
  text-align: center;
  transition: opacity 5s ease;
}

.calming-zone-secondary-text {
  color: #EAE3D7;
  opacity: 0.5;
  font-size: 2em;
  max-width: 800px;
  text-align: center;
  transition: opacity 5s ease;
}

.calming-zone-button {
  background-color: transparent;
  transition: opacity 5s ease;
  color: #EAE3D7;
  border-style: dotted;
  border-color: #EAE3D7;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 20px;
  min-width: 400px;
}

/** ------------------------------------------------------------------
 *  20. Loading Screen
 * -----------------------------------------------------------------*/
#loadingScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F1FFFA;
  background-color: black;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
  z-index: 99;
}

/** ------------------------------------------------------------------
 *  21. Other
 * -----------------------------------------------------------------*/
.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}