/* ===================================================== */
/* ================== LARGE LAPTOPS ==================== */
/* ===================================================== */

@media screen and (max-width: 1440px) {
  .app-window {
    width: 78vw;
    height: 78vh;
  }

  .start-menu {
    left: 50%;
    width: 420px;
  }
}

/* ===================================================== */
/* ===================== LAPTOP ======================== */
/* ===================================================== */

@media screen and (max-width: 1200px) {
  .app-window {
    width: 88vw;
    height: 82vh;

    left: 50%;
    top: 100px;

    transform: translateX(-50%);
  }

  .system-content {
    grid-template-columns: 280px 1fr;
  }

  .spec-card h3 {
    font-size: 18px;
  }

  .settings-content {
    grid-template-columns: 220px 1fr;
  }

  .wallpaper-grid {
    flex-wrap: wrap;
  }
}

/* ===================================================== */
/* ===================== TABLET ======================== */
/* ===================================================== */

@media screen and (max-width: 992px) {
  body {
    overflow: auto;
  }

  .system-navbar {
    padding: 12px 16px;
  }

  .system-name {
    font-size: 12px;
  }

  .system-right {
    gap: 8px;
  }

  .system-item {
    padding: 8px 10px;
  }

  .system-time {
    padding: 8px 10px;
  }

  .calendar-widget {
    width: calc(100% - 30px);

    right: 15px;
    left: 15px;
  }

  .task-bar {
    width: calc(100% - 30px);

    justify-content: center;

    padding: 12px;
  }

  .taskbar-apps {
    gap: 8px;
  }

  .taskbar-icon {
    width: 48px;
    height: 48px;
  }

  .start-menu {
    width: calc(100% - 30px);

    left: 50%;
    bottom: 110px;

    height: auto;
    max-height: 80vh;

    overflow-y: auto;
  }

  .desktop-icons {
    top: 110px;
    left: 20px;
  }

  .desktop-item {
    width: 80px;
  }

  .desktop-item img {
    width: 50px;
    height: 50px;
  }

  .app-window {
    width: calc(100% - 30px);

    height: 82vh;

    left: 15px;
    top: 90px;

    transform: none;

    border-radius: 24px;
  }

  .window-content {
    padding: 24px;
  }

  .system-content {
    grid-template-columns: 1fr;

    overflow-y: auto;
  }

  .system-right-panel {
    grid-template-columns: 1fr;
  }

  .settings-content {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    display: flex;

    overflow-x: auto;

    gap: 10px;

    padding-bottom: 20px;

    border-right: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .settings-tab {
    white-space: nowrap;

    margin-bottom: 0;
  }

  .settings-main {
    padding-left: 0;
    padding-top: 24px;
  }

  .wallpaper-grid {
    flex-wrap: wrap;
  }

  .wallpaper-option {
    width: 120px;
    height: 80px;
  }
}

/* ===================================================== */
/* ===================== MOBILE ======================== */
/* ===================================================== */

@media screen and (max-width: 768px) {
  .system-navbar {
    flex-direction: column;

    gap: 12px;

    align-items: flex-start;
  }

  .system-right {
    width: 100%;

    justify-content: space-between;

    flex-wrap: wrap;
  }

  .system-time {
    width: 100%;

    justify-content: center;
  }

  .task-bar {
    bottom: 12px;

    border-radius: 24px;

    flex-wrap: wrap;
  }

  .taskbar-icon {
    width: 44px;
    height: 44px;
  }

  .taskbar-icon img {
    width: 20px;
    height: 20px;
  }

  .start-button img {
    width: 34px;
    height: 34px;
  }

  .start-menu {
    width: calc(100% - 20px);

    left: 10px;

    transform: none;

    bottom: 90px;

    border-radius: 24px;
  }

  .pinned-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-profile-card {
    width: 100%;
  }

  .desktop-icons {
    position: relative;

    top: 120px;
    left: 0;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    padding: 20px;
  }

  .desktop-item {
    position: relative !important;

    top: auto !important;
    left: auto !important;

    margin: auto;
  }

  .app-window {
    width: 100%;
    height: 100vh;

    top: 0;
    left: 0;

    border-radius: 0;
  }

  .window-header {
    height: 60px;

    padding: 0 18px;
  }

  .window-content {
    padding: 18px;
  }

  .system-avatar {
    width: 120px;
    height: 120px;
  }

  .system-left-panel h2 {
    font-size: 22px;
  }

  .spec-card h3 {
    font-size: 16px;
  }

  .settings-option {
    flex-direction: column;

    align-items: flex-start;

    gap: 20px;
  }

  .wallpaper-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);
  }

  .wallpaper-option {
    width: 100%;
  }
}

/* ===================================================== */
/* ================= SMALL MOBILE ====================== */
/* ===================================================== */

@media screen and (max-width: 480px) {
  .system-name {
    font-size: 11px;
  }

  .system-time p,
  .system-time span {
    font-size: 12px;
  }

  .calendar-widget {
    top: 120px;

    padding: 18px;
  }

  .calendar-day {
    width: 32px;
    height: 32px;

    font-size: 12px;
  }

  .taskbar-apps {
    gap: 4px;
  }

  .taskbar-icon {
    width: 40px;
    height: 40px;
  }

  .taskbar-icon img {
    width: 18px;
    height: 18px;
  }

  .desktop-item span {
    font-size: 11px;
  }

  .window-controls span {
    width: 12px;
    height: 12px;
  }

  .spec-card {
    padding: 18px;
  }

  .spec-card h3 {
    font-size: 14px;
  }

  .settings-tab {
    font-size: 13px;
  }
}
