* {
  margin: 0;
  padding: 0;
  cursor: url(../cursors/default.png), auto;
  font-family: -apple-system, "Arial";
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
  overflow: hidden;
  background: url(../images/bg.jpg) no-repeat center fixed;
  background-size: cover;
}
#timer {
  margin-left: 69vw;
}
.menu_bar-item .sep {
  width: 100vh;
  background-color: #000;
  height: 0.5px;
}
.wallpaper-window {
  position: fixed;
  top: 10%;
  display: none;
  left: 20%;
  overflow: hidden;
  width: 600px;
  height: 400px;
  background-color: #fff;
  border: 0.8px solid #000000cf;
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  z-index: 9998;
}
.minimize {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
}
.wall-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.wall-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.wall-card:hover img {
  border-color: #0071e3;
}
.wall-card span {
  font-size: 12px;
  text-align: center;
  color: #333;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
}
::-webkit-scrollbar {
  display: none;
}
.context-menu {
  position: fixed;
  z-index: 10000;
  transition:
    opacity 0.1s linear,
    transform 0.1s ease;
  width: 210px;
  background: #fff6;
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border: 0.5px solid #000000cf;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  color: #000;
  user-select: none;
}
.dock button {
  background-color: transparent;
  border: none;
}
@media (max-width: 800px) {
  .dock {
    height: 45px;
    width: max-content;
  }
  .dock img {
    height: 40px;
  }
}
.context-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.context-menu li {
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 5px;
  transition: background 0.2s ease;
}
.context-menu li:hover {
  background: #0071e3;
  color: #fff;
}
.context-menu hr {
  border: none;
  border-top: 0.5px solid #000000cf;
  margin: 4px 6px;
}
.hidden {
  display: none !important;
}
body {
  background: url(../images/bg.jpg) no-repeat center fixed;
  background-size: cover;
  background-color: #000;
}
footer {
  width: 100%;
  height: 205px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dock img {
  height: 57px;
  transition: 0.3s ease;
  transform-origin: bottom;
}
.separator {
  width: 0.5px;
  height: 50px;
  background-color: #000000cf;
}
.dock {
  pointer-events: auto;
  padding: 0.3rem;
  width: max-content;
  z-index: 100 !important;
  height: 63px;
  border-radius: 1.2rem;
  display: flex;
  box-shadow:
    inset 0 0 0 0.4px #f5f5f5b3,
    0 0 0 0.4px #212121b3,
    #0000004d 2px 5px 19px 7px;
  align-items: center;
  position: fixed;
  transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1.79);
  backdrop-filter: blur(4px);
  bottom: 7px;
  background: #fff6;
}
@keyframes top {
  from {
    margin-bottom: 0px;
  }
  to {
    margin-bottom: 10%;
  }
}
.window-content {
  overflow-y: auto;
  padding: 20px;
}
.window-content::-webkit-scrollbar {
  width: 8px;
  height: 10px;
  background-color: #cacacab6;
}
.window-content::-webkit-scrollbar-thumb {
  background: #00000020;
  border-radius: 10px;
}
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.window-header {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
}
.wall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 1em;
  transition: 0.4s ease;
}
.wall-card:active {
  transform: scale(0.95);
}
.wall-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
}
#vscode-app {
  width: 900px;
  height: 600px;
  background-color: #1e1e1e;
  border: 0.8px solid #000000cf;
  border-radius: 1em;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
  transform: scale(0.95);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#vscode-app.window-active {
  display: flex !important;
}
#vscode-app .window-header {
  background-color: #323233;
  border-bottom: none;
  color: #ccc;
}
iframe {
  cursor: url(../cursors/default.png), auto !important;
}
#vscode-app .window-content {
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  height: calc(100% - 30px);
}
#vscode-app iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.wall-card:hover img {
  border-color: #0071e3;
  transform: scale(1);
}
.vscode-window {
  width: 900px;
  height: 600px;
  background: #fff;
  border: 0.8px solid #000000cf;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.appstore-window {
  width: 500px;
  height: 350px;
  background-color: #fff;
  border: 0.8px solid #000000cf;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s cubic-bezier(0.17, 0.84, 0.44, 1);
  transform: translate(-50%, -50%) scale(0.95);
  position: fixed;
  top: 50%;
  left: 50%;
}
.appstore-window.window-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.appstore-content {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.appstore-info {
  text-align: center;
  color: #333;
}
.appstore-big-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}
.appstore-info h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
}
.appstore-info p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #666;
}
.appstore-loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0071e3;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  margin: 20px auto 0;
}
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
.wall-card span {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}
#loading-screen {
  position: fixed;
  inset: 0;
  cursor: none;
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}
.boot-logo {
  width: 80px;
  filter: invert(1);
  margin-bottom: 50px;
}
.progress-container {
  width: 200px;
  height: 4px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
}
#progress-bar {
  width: 0%;
  height: 100%;
  background-color: #fff;
  transition: width 0.1s linear;
}
.dock-item img {
  height: 59px;
  width: auto;
  display: block;
  transform-origin: bottom; /* Faz crescer para cima */
  /* Transição curta para não dar delay no JS, mas suavizar o movimento */
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.4, 1);
  will-change: transform;
}

.dock-item {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  /* Transição de margem para o dock alargar suavemente */
  transition: margin 0.2s ease-out;
}
.mac-item_menu {
  width: 100%;
  position: fixed;
  position: relative;
  top: 0;
  backdrop-filter: blur(4px);
  left: 0;
  background: #ffffff4d;
  height: inherit;
  display: flex;
  gap: 0.3em;
  align-items: center;
  justify-content: flex-start;
}
.clock-window {
  position: absolute;
  top: 15%;
  left: 30%;
  width: 380px;
  height: 450px;
  background-color: #fff;
  border: 0.8px solid #000000cf;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 5000;
}
.window-header {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.traffic-lights {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.close {
  background: #ff5f57;
  border: 0.5px solid #e1483f;
}
.close:hover {
  background-color: #e1554d;
}
.minimize:hover {
  background-color: #dea529;
  opacity: 1;
}
.maximize:hover {
  background: #22ab36;
}
.minimize {
  background: #ffbd2e;
  border: 0.5px solid #e0a028;
}
.maximize {
  background: #28c940;
  border: 0.5px solid #1fa334;
}
.window-title {
  flex-grow: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-right: 40px;
}
.window-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}
.clock-display h1 {
  font-size: 64px;
  font-weight: 200;
  margin: 0;
  color: #1a1a1a;
}
.clock-display p {
  text-align: center;
  color: #ff3b30;
  font-weight: 500;
  margin-top: -5px;
}
.clock-tabs {
  display: flex;
  gap: 10px;
  background: #f1f1f1;
  padding: 4px;
  border-radius: 8px;
}
.tab-item {
  border: none;
  background: 0 0;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
}
.tab-item.active {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.mac-item_menu li {
  list-style: none;
  margin-left: 14px;
}
#about-mac-app {
  width: 230px;
  height: 180px;
  border-radius: 1em;
  flex-direction: column;
  transform: translate(290%) translateY(10%);
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background-color: #fff;
}
#about-mac-app .window-header {
  height: 34px;
  top: 0;
  width: 100%;
  left: 0;
  position: absolute;
}
#about-mac-app .minimize {
  background-color: #bfbfbf;
  border: solid 0.5px #9a9a9a;
}
#about-mac-app .maximize {
  background-color: #bfbfbf;
  border: solid 0.5px #9a9a9a;
}
.mac-item_menu li button {
  background-color: transparent;
  border: none;
  color: #000;
  width: auto;
  position: relative;
  height: 28px;
}
.mac-item_dot {
  background-color: #1b1b1d;
  width: 4px;
  position: absolute;
  margin: 0;
  bottom: -2px;
  border-radius: 1em;
  height: 4px;
}
.app-item {
  position: absolute;
  bottom: 93px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff80;
  color: #121212;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  box-shadow:
    #0000004d 0px 1px 5px 2px,
    0 0 0 0 white;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.6s cubic-bezier(0.075, 0.82, 0.165, 1.79),
    transform 0.3s ease;
  will-change: transform, opacity;
}
.dock-item:hover .app-item {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dock-item {
  position: relative;
}
.sep-dock {
  width: 0.7px;
  border-radius: 1em;
  height: 53px;
  box-shadow: inset 0 0 10px hsla(0, 0%, 32%, 0.744);
}
