@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ── System Drag/Selection Inhibition ── */
* {
  -webkit-user-drag: none;
}

.gos-win-header,
.gos-mbar,
.gos-taskbar,
.gos-w32-btn,
.gos-msg-btn,
.gos-win-btn,
.gos-mbar-item,
.gos-ac-tile,
.gos-ac-icon-tile,
.gos-cp-nav-item,
.gos-cp-wallpaper-thumb,
.gos-fm-btn,
.gos-fm-sidebar-item,
.dropdown-item,
.cal-nav,
.gos-taskbar-search-btn {
  user-select: none;
  -webkit-user-select: none;
}



input,
textarea,
[contenteditable] {
  user-select: text;
  -webkit-user-select: text;
}



#app,
html,
body {
  height: 100%;
  overflow: hidden;
  cursor: url("../res/default.svg"), auto;
  font-family: var(--font-family);
}

body {
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

body.loaded {
  opacity: 1;
}

@keyframes kaboom {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  10% {
    transform: scale(1.1) rotate(-1deg);
  }

  20% {
    transform: scale(1.1) rotate(1deg);
  }

  30% {
    transform: scale(1.1) rotate(-1deg);
  }

  40% {
    transform: scale(1.1) rotate(1deg);
  }

  60% {
    opacity: 0.9;
    filter: brightness(2) blur(2px);
  }

  100% {
    transform: scale(100);
    opacity: 0;
    filter: brightness(5) blur(20px);
  }
}

.kaboom {
  white-space: nowrap;
  transform: translateX(-50%);
  transform-origin: center center;
  animation: kaboom 0.6s ease-out forwards;
  pointer-events: none;
  user-select: none;
}

.kaboom-ticking {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    filter: brightness(100%);
  }

  50% {
    transform: scale(1.01);
    filter: brightness(120%);
  }

  100% {
    transform: scale(1);
    filter: brightness(100%);
  }
}

/* Calendar Styles */
#calendar-container {
  color: white;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  height: 270px;
}

/* Windows 10 Style Scrollbars */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #444;
  border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

::-webkit-scrollbar-thumb:active {
  background: #333;
}

::-webkit-scrollbar-button {
  display: none;
}

/* Calendar Slide Animation */
.calendar-page {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  width: 100%;
}

.calendar-page.sliding {
  position: absolute;
  top: 0;
  left: 0;
}

.slide-left-enter {
  transform: translateX(100%);
  opacity: 0.2;
}

.slide-left-exit {
  transform: translateX(-100%);
  opacity: 0.2;
}

.slide-right-enter {
  transform: translateX(-100%);
  opacity: 0.2;
}

.slide-right-exit {
  transform: translateX(100%);
  opacity: 0.2;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.cal-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  position: relative;
  overflow: hidden;
}

.cal-nav:hover {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.cal-nav:active {
  background: var(--accent-muted);
  border-color: var(--accent-color);
}

.calendar-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
}

.calendar-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #888;
  padding-bottom: 5px;
  text-align: center;
  width: 32px;
}

.calendar-table td {
  text-align: center;
  padding: 0;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  cursor: default;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.1s;
  position: relative;
  overflow: hidden;
}

.calendar-table td:empty {
  background: transparent;
  border-color: transparent;
}

.calendar-table td:not(:empty) {
  cursor: pointer;
}

.calendar-table td:hover:not(:empty) {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.calendar-table td.today {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: white;
  font-weight: bold;
}

/* Clock Styles */
.clock-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.analog-clock {
  width: 120px;
  height: 120px;
}

.clock-face {
  fill: none;
  stroke: white;
  stroke-width: 2;
}

.clock-center {
  fill: white;
}

.hand {
  stroke: white;
  stroke-linecap: round;
  transform-origin: 50px 50px;
}

.hour {
  stroke-width: 3;
}

.minute {
  stroke-width: 2;
}

.second {
  stroke: #ff5e57;
  /* Lighter red for second hand */
  stroke-width: 1;
}

.clock-marker {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
}

.gos-selection-rect {
  position: absolute;
  background-color: rgba(0, 120, 215, 0.3);
  border: 1px solid rgba(0, 120, 215, 0.8);
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.2s ease-out;
}