.App {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-bg);
  color: var(--theme-clr);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center center;
}

body {
  background-color: var(--theme-bg);
  color: var(--theme-clr);
}

.App.theme-system,
body:has(.App.theme-system),
.App.theme-light,
body:has(.App.theme-light) {
  --theme-bg: #efefee;
  --theme-bg-secondary: #efefee;
  --theme-bg-with-opacity: #efeeee9e;
  --theme-bg-with-opacity-50: #efeeee93;
  --theme-selection-color: #0883fd;
  --theme-bg-dock: #efeeee6b;
  --theme-clr: #272727;
  --theme-shadow: #adadada3;
  --theme-border: #c6c6c6;
  --theme-link-clr: #4b4bff;
  --theme-button-bg: #fdfdfd;
  --theme-toggle-bg: #ccc;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);

  --calendar-1-week-text-color: #ff453a;
  --calendar-1-month-text-color: #a1a1a1;
  --calendar-month-text-color: #ff3b31;
  --calendar-sunday-text-color: #a1a1a1;

  --widget-background: #ffffff;

  --window-expand-bg: #959595;
  --active-window-indicator: #2c2c2c;

  --calendar-date-text-color: #272727;

  --clock-1-background: #b3b2b3;
  --clock-1-dial-background: #ffffff;

  --input-caret-color: #015ce0;

  --input-search-icon-color: #545454;

  --search-engine-tile-indicator-bg: #d2d2d0;
  --search-engine-tile-icon-clr: #595958;

  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.98);
  --settings-side-panel-text-color: #3d3d3d;

  --launchpad-tab-selected-bg: #bcbcbc;
}

.App.theme-dark,
body:has(.App.theme-dark) {
  --theme-bg: #2e2d2c;
  --theme-bg-secondary: #2e2d2c;
  --theme-selection-color: #0883fd;
  --theme-bg-with-opacity: #2e2d2c9e;
  --theme-bg-with-opacity-50: #2e2d2cbf;
  --theme-bg-dock: #0000002b;
  --theme-clr: #dfdfdf;
  --theme-shadow: rgba(0, 0, 0, 0.747);
  --theme-border: #585856;
  --theme-link-clr: #9ba6ff;
  --theme-button-bg: #656665;
  --theme-toggle-bg: #656665;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);

  --calendar-1-week-text-color: #ff453a;
  --calendar-1-month-text-color: #a1a1a1;
  --calendar-month-text-color: #ff3b31;
  --calendar-sunday-text-color: #a1a1a1;

  --widget-background: #2e2e2e;

  --window-expand-bg: #878787;
  --active-window-indicator: #c4c5c5;

  --calendar-date-text-color: #dfdfdf;

  --clock-1-background: #24272b;
  --clock-1-dial-background: #ffffff;

  --input-caret-color: #71ccff;

  --input-search-icon-color: #a6a6a5;

  --search-engine-tile-indicator-bg: #555657;
  --search-engine-tile-icon-clr: #e6f0f7;

  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.7);
  --settings-side-panel-text-color: white;

  --launchpad-tab-selected-bg: #ffffff5c;
}

.App.theme-dark .search-engine-switcher__tile-selection-indicator.selected {
  --search-engine-tile-icon-clr: white;
}

@media (prefers-color-scheme: dark) {
  .App.theme-system,
  body:has(.App.theme-system),
  .App.theme-dark,
  body:has(.App.theme-dark) {
    --theme-bg: #2e2d2c;
    --theme-bg-secondary: #2e2d2c;
    --theme-selection-color: #0883fd;
    --theme-bg-with-opacity: #2e2d2c9e;
    --theme-bg-with-opacity-50: #2e2d2cb3;
    --theme-bg-dock: #0000002b;
    --theme-clr: #dfdfdf;
    --theme-shadow: rgba(0, 0, 0, 0.617);
    --theme-border: #585856;
    --theme-link-clr: #9ba6ff;
    --theme-button-bg: #656665;
    --theme-toggle-bg: #656665;
    --theme-bg-blur: blur(60px) saturate(150%);
    --theme-bg-blur-30: blur(30px) saturate(150%);

    --calendar-1-week-text-color: #ff453a;
    --calendar-1-month-text-color: #a1a1a1;
    --calendar-month-text-color: #ff3b31;
    --calendar-sunday-text-color: #a1a1a1;

    --widget-background: #2e2e2e;

    --window-expand-bg: #878787;
    --active-window-indicator: #c4c5c5;

    --calendar-date-text-color: #dfdfdf;

    --clock-1-background: #24272b;
    --clock-1-dial-background: #ffffff;

    --input-caret-color: #71ccff;

    --input-search-icon-color: #a6a6a5;

    --search-engine-tile-indicator-bg: #555657;
    --search-engine-tile-icon-clr: #e6f0f7;

    --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.7);
    --settings-side-panel-text-color: white;

    --launchpad-tab-selected-bg: #ffffff5c;
  }

  .App.theme-system .search-engine-switcher__tile-selection-indicator.selected,
  .App.theme-dark .search-engine-switcher__tile-selection-indicator.selected {
    --search-engine-tile-icon-clr: white;
  }
}

.App.theme-blue,
.appearance__theme-color-option.theme-blue,
body:has(.App.theme-blue) {
  --theme-bg: #c9e0ff;
  --theme-bg-secondary: #b1d2ff;
  --theme-bg-with-opacity: #9be3ff52;
  --theme-bg-with-opacity-50: #9be3ff9b;
  --theme-selection-color: #0052bf;
  --theme-bg-dock: #a5e6ff75;
  --theme-clr: black;
  --theme-shadow: #adadad97;
  --theme-border: #727272;
  --theme-link-clr: #4b4bff;
  --theme-button-bg: #7eb6ff;
  --theme-toggle-bg: #ccc;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);
  --calendar-1-week-text-color: #ff453a;
  --calendar-1-month-text-color: #7c7c7c;
  --calendar-month-text-color: #ff3b31;
  --calendar-sunday-text-color: #7c7c7c;
  --widget-background: #accfff;
  --window-expand-bg: #528cd9;
  --active-window-indicator: #528cd9;
  --calendar-date-text-color: #272727;
  --clock-1-background: #5fa0f7;
  --clock-1-dial-background: #ffffff;
  --input-caret-color: #015ce0;
  --input-search-icon-color: #545454;
  --search-engine-tile-indicator-bg: #d2d2d0;
  --search-engine-tile-icon-clr: #3a5e8f;
  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.98);
  --settings-side-panel-text-color: #3d3d3d;
  --launchpad-tab-selected-bg: #81b7ff;
}

.App.theme-red,
.appearance__theme-color-option.theme-red,
body:has(.App.theme-red) {
  --theme-bg: #ffe0e0;
  --theme-bg-secondary: #ffc1c1;
  --theme-bg-with-opacity: #ffa5a552;
  --theme-bg-with-opacity-50: #ffa5a58a;
  --theme-selection-color: #f10202;
  --theme-bg-dock: #ffa5a575;
  --theme-clr: black;
  --theme-shadow: #adadad97;
  --theme-border: #c6c6c6;
  --theme-link-clr: #4b4bff;
  --theme-button-bg: #ff6464;
  --theme-toggle-bg: #ccc;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);
  --calendar-1-week-text-color: #ff493e;
  --calendar-1-month-text-color: white;
  --calendar-month-text-color: black;
  --calendar-sunday-text-color: #666666;
  --widget-background: #ffc8c8;
  --window-expand-bg: #ffb9b9;
  --active-window-indicator: #dd4646;
  --calendar-date-text-color: #272727;
  --clock-1-background: #ff8f8f;
  --clock-1-dial-background: #ffffff;
  --input-caret-color: #015ce0;
  --input-search-icon-color: #545454;
  --search-engine-tile-indicator-bg: #d2d2d0;
  --search-engine-tile-icon-clr: #8f3a3a;
  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.98);
  --settings-side-panel-text-color: black;
  --launchpad-tab-selected-bg: #ffa8a8;
}

.App.theme-orange,
.appearance__theme-color-option.theme-orange,
body:has(.App.theme-orange) {
  --theme-bg: #ffd9c7;
  --theme-bg-secondary: #ffd1ba;
  --theme-bg-with-opacity: #efad8c6b;
  --theme-bg-with-opacity-50: #efad8c97;
  --theme-selection-color: #ea4e00;
  --theme-bg-dock: #ffbc9b75;
  --theme-clr: black;
  --theme-shadow: #adadad97;
  --theme-border: #777474;
  --theme-link-clr: #4b4bff;
  --theme-button-bg: #fd9763;
  --theme-toggle-bg: #ccc;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);
  --calendar-1-week-text-color: #ff453a;
  --calendar-1-month-text-color: #737373;
  --calendar-month-text-color: #ff3b31;
  --calendar-sunday-text-color: #737373;
  --widget-background: #ffc8ac;
  --window-expand-bg: #dc8154;
  --active-window-indicator: #d87e51;
  --calendar-date-text-color: #272727;
  --clock-1-background: #d8926f;
  --clock-1-dial-background: #ffffff;
  --input-caret-color: #015ce0;
  --input-search-icon-color: #545454;
  --search-engine-tile-indicator-bg: #d2d2d0;
  --search-engine-tile-icon-clr: #865841;
  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.98);
  --settings-side-panel-text-color: black;
  --launchpad-tab-selected-bg: #ff9f6f;
}

.App.theme-purple,
.appearance__theme-color-option.theme-purple,
body:has(.App.theme-purple) {
  --theme-bg: #ebeaff;
  --theme-bg-secondary: #e5e4ff;
  --theme-bg-with-opacity: #a8a5ff52;
  --theme-bg-with-opacity-50: #a8a5ff87;
  --theme-selection-color: #4f4eac;
  --theme-bg-dock: #cac8ff75;
  --theme-clr: black;
  --theme-shadow: #adadad97;
  --theme-border: #777474;
  --theme-link-clr: #4b4bff;
  --theme-button-bg: #b6b8ff;
  --theme-toggle-bg: #ccc;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);
  --calendar-1-week-text-color: #ff453a;
  --calendar-1-month-text-color: #7c7c7c;
  --calendar-month-text-color: #ff3b31;
  --calendar-sunday-text-color: #7c7c7c;
  --widget-background: #d5ceff;
  --window-expand-bg: #bfc0ff;
  --active-window-indicator: #cecbff;
  --calendar-date-text-color: #272727;
  --clock-1-background: #515876;
  --clock-1-dial-background: #ffffff;
  --input-caret-color: #c5bafd;
  --input-search-icon-color: #545454;
  --search-engine-tile-indicator-bg: #d2d2d0;
  --search-engine-tile-icon-clr: #655da3;
  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.98);
  --settings-side-panel-text-color: white;
  --launchpad-tab-selected-bg: #a7a7ff;
}

.App.theme-pink,
.appearance__theme-color-option.theme-pink,
body:has(.App.theme-pink) {
  --theme-bg: #ffeaf3;
  --theme-bg-secondary: #ffe4ef;
  --theme-bg-with-opacity: #ffa5c952;
  --theme-bg-with-opacity-50: #ffa5c97e;
  --theme-selection-color: #ac4e77;
  --theme-bg-dock: #ffc8de75;
  --theme-clr: black;
  --theme-shadow: #adadad97;
  --theme-border: #777474;
  --theme-link-clr: #4b4bff;
  --theme-button-bg: #ffb6d9;
  --theme-toggle-bg: #ccc;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);
  --calendar-1-week-text-color: #ff453a;
  --calendar-1-month-text-color: #6a6a6a;
  --calendar-month-text-color: #ff3b31;
  --calendar-sunday-text-color: #6a6a6a;
  --widget-background: #ffcedd;
  --window-expand-bg: #ffbfdd;
  --active-window-indicator: #ffcbdd;
  --calendar-date-text-color: #272727;
  --clock-1-background: #76515e;
  --clock-1-dial-background: #ffffff;
  --input-caret-color: #fdbad8;
  --input-search-icon-color: #545454;
  --search-engine-tile-indicator-bg: #d2d2d0;
  --search-engine-tile-icon-clr: #a35d7f;
  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.98);
  --settings-side-panel-text-color: white;
  --launchpad-tab-selected-bg: #ffabd1;
}

.App.theme-brown,
.appearance__theme-color-option.theme-brown,
body:has(.App.theme-brown) {
  --theme-bg: #fff3ea;
  --theme-bg-secondary: #ffeee4;
  --theme-bg-with-opacity: #ffc9a552;
  --theme-bg-with-opacity-50: #ffc9a57b;
  --theme-selection-color: #ac764e;
  --theme-bg-dock: #ffe1c875;
  --theme-clr: black;
  --theme-shadow: #adadad97;
  --theme-border: #c6c6c6;
  --theme-link-clr: #4b4bff;
  --theme-button-bg: #ffcfb6;
  --theme-toggle-bg: #ccc;
  --theme-bg-blur: blur(60px) saturate(150%);
  --theme-bg-blur-30: blur(30px) saturate(150%);
  --calendar-1-week-text-color: #ff453a;
  --calendar-1-month-text-color: #7c7c7c;
  --calendar-month-text-color: #ff3b31;
  --calendar-sunday-text-color: #7c7c7c;
  --widget-background: #ffdfce;
  --window-expand-bg: #ffd9bf;
  --active-window-indicator: #ffe2cb;
  --calendar-date-text-color: #272727;
  --clock-1-background: #765e51;
  --clock-1-dial-background: #ffffff;
  --input-caret-color: #fdc6ba;
  --input-search-icon-color: #545454;
  --search-engine-tile-indicator-bg: #d2d1d0;
  --search-engine-tile-icon-clr: #a3765d;
  --settings-side-panel-blur: blur(60px) saturate(150%) brightness(0.98);
  --settings-side-panel-text-color: white;
  --launchpad-tab-selected-bg: #ffc69b;
}

.main-content {
  display: grid;
  grid-template-columns: auto auto;
  z-index: 1;
}

.main-content.has-clock-calendar {
  gap: 100px;
}

.wallpaper-blur-container {
  position: absolute;
  z-index: 0;
  background-color: transparent;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-1 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-2 {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: center;
}

.accessible:focus-visible,
.accessible:has(input:focus-visible),
button:focus-visible {
  outline: 2px solid rgb(83 83 255);
  outline-offset: 0px;
  border-radius: 12px;
}

.greeting {
  color: var(--theme-clr);
  font-size: 1.6rem;
  font-weight: 600;
}

.App.has-bg .greeting {
  text-shadow: 1px 1px 2px var(--theme-shadow);
}

.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  padding: 8px 16px;
  background-color: var(--theme-bg);
  font-size: 14px;
  border-radius: 8px;
  color: var(--theme-clr);
  white-space: nowrap;
  border: 1px solid var(--theme-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.tooltip:hover::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 5px);
  left: 50%;
  transform: translateX(-50%) translateY(-14px) rotate(45deg);
  width: 14px;
  height: 14px;
  background-color: var(--theme-bg);
  z-index: 6;
  border-bottom-right-radius: 4px;
  border-top-left-radius: 12px;
  border-bottom: 1px solid var(--theme-border);
  border-right: 1px solid var(--theme-border);
}

/* TODO: tooltip left and right positioning not working as expected
to be revisited in future */
.tooltip-left:hover::after,
.tooltip-left:hover::before,
.tooltip-right:hover::after,
.tooltip-right:hover::before {
  display: none;
}

.tooltip-bottom:hover::after {
  top: calc(100% + 30px);
  bottom: unset;
}

.tooltip-bottom:hover::before {
  top: calc(100% + 21px);
  transform: translateX(-50%) translateY(-14px) rotate(225deg);
}

.disabled {
  opacity: 0.5;
  filter: saturate(0);
  pointer-events: none;
}

.draggable {
  cursor: move;
  cursor: grab;
}

.draggable:active {
  cursor: grabbing;
}

.non-draggable {
  cursor: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: var(--theme-button-bg);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-size: 0.75rem;
  color: inherit;
  font-weight: inherit;
  width: fit-content;
}

.button-primary {
  background-color: var(--theme-selection-color);
  color: white;
}

.button-icon {
  background: var(--theme-button-bg);
  border-radius: 6px;
  height: 24px;
  width: 24px;
  min-width: 24px;
  outline: none;
  color: var(--theme-clr);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.break-word {
  word-break: break-word;
}

@media screen and (max-width: 1080px) {
  .main-content.has-clock-calendar {
    gap: 50px;
  }
}

@media screen and (max-width: 960px) {
  .main-content {
    grid-template-columns: auto;
  }
  .section-1 {
    flex-direction: row;
  }

  .main-content.has-clock-calendar {
    gap: 24px;
  }
}

@media screen and (max-width: 816px) {
  body {
    zoom: 80%;
  }
}

@media screen and (max-width: 646px) {
  body {
    zoom: 70%;
  }
}

@media screen and (max-width: 560px) {
  body {
    zoom: 60%;
  }
}

@media screen and (max-width: 516px) {
  body {
    zoom: 60%;
  }

  .section-2 {
    max-width: 520px !important;
  }

  .search__container {
    min-width: 520px !important;
  }
}

@media screen and (max-width: 412px) {
  body {
    zoom: 50%;
  }

  .section-2 {
    max-width: 520px !important;
  }

  .search__container {
    min-width: 520px !important;
  }
}
