
/* BlobOS Android 4.2 system UI */

:root {
  --blobos-brightness: 1;
  --blobos-blue: #33b5e5;
  --blobos-panel: #182630;
  --blobos-panel-light: #243744;
}

.no-animations *,
.no-animations *::before,
.no-animations *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
  scroll-behavior: auto !important;
}

/* Live wallpaper */

.desktop {
  isolation: isolate;
}

.live-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.live-wallpaper.active {
  opacity: 1;
}

.live-wallpaper img,
.live-wallpaper video,
.live-wallpaper iframe,
.live-wallpaper canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.live-wallpaper iframe {
  pointer-events: none;
}

/* Notification shade */

.notification-shade {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  max-height: 94dvh;
  overflow-y: auto;
  padding: 24px;
  color: #fff;
  background: rgba(18, 29, 38, .97);
  border-bottom: 2px solid #33b5e5;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .5);
  transform: translateY(-105%);
  visibility: hidden;
  transition: transform .32s cubic-bezier(.2,.8,.2,1),
              visibility .32s;
}

.notification-shade.open {
  transform: translateY(0);
  visibility: visible;
}

.shade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.shade-title {
  font-size: 25px;
  font-weight: 300;
}

.shade-date {
  margin-top: 5px;
  color: #9eb0bc;
  font-size: 13px;
}

.shade-button,
.shade-footer button,
.notification-heading button {
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.shade-button {
  width: 44px;
  height: 44px;
}

.quick-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.quick-tile {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #c3d0d8;
  background: #263945;
  border: 1px solid #40535f;
  border-radius: 2px;
  cursor: pointer;
}

.quick-tile .material-icons {
  font-size: 25px;
}

.quick-tile span:last-child {
  font-size: 11px;
}

.quick-tile.active {
  color: #fff;
  background: #087ca7;
  border-color: #33b5e5;
}

.brightness-control {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: #b9cbd5;
}

.brightness-control input {
  flex: 1;
  accent-color: #33b5e5;
}

.notification-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 10px;
  border-bottom: 1px solid #40515b;
  font-size: 14px;
  color: #b9cbd5;
}

.notification-heading button {
  color: #33b5e5;
  font-size: 12px;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.notification-empty {
  text-align: center;
  color: #8295a1;
  padding: 25px 10px;
}

.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  background: #263945;
  border: 1px solid #3a505d;
  border-radius: 2px;
  cursor: pointer;
}

.notification-icon {
  color: #33b5e5;
  font-size: 25px;
}

.notification-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}

.notification-body strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.notification-body small {
  display: block;
  color: #8fa5b2;
  margin-top: 5px;
}

.notification-dismiss {
  color: #a9bac4;
  background: none;
  border: 0;
  cursor: pointer;
}

.shade-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8195a1;
  font-size: 12px;
  padding-top: 18px;
}

/* Lock screen */

.lock-screen {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  background: #101820;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
  touch-action: pan-y;
}

.lock-screen.visible {
  opacity: 1;
  visibility: visible;
}

.lock-wallpaper {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)),
    url("https://trollblob.pages.dev/icons/system.png") center/cover;
  filter: saturate(.8);
  transform: scale(1.04);
}

.lock-content {
  position: relative;
  z-index: 1;
  width: min(90%, 480px);
  text-align: center;
  margin-top: -8vh;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.lock-time {
  font-size: clamp(70px, 16vw, 112px);
  font-weight: 200;
  letter-spacing: -5px;
  line-height: 1.15;
}

.lock-date {
  font-size: 18px;
  font-weight: 300;
}

.lock-notifications {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 30px auto;
  max-width: 390px;
}

.lock-notification {
  padding: 12px;
  text-align: left;
  font-size: 13px;
  background: rgba(16, 32, 42, .75);
  border: 1px solid rgba(255,255,255,.2);
}

.lock-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 65px;
  font-size: 13px;
  color: #d8e6ed;
  animation: unlockPulse 2s ease-in-out infinite;
}

@keyframes unlockPulse {
  50% { opacity: .45; }
}

.pin-panel {
  position: absolute;
  z-index: 3;
  bottom: 8%;
  left: 50%;
  width: min(85%, 300px);
  padding: 22px;
  text-align: center;
  background: rgba(16, 32, 42, .96);
  border: 1px solid #405766;
  transform: translate(-50%, 30px);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.pin-panel.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.pin-panel input {
  width: 100%;
  padding: 12px;
  margin: 14px 0;
  color: white;
  background: #243744;
  border: 1px solid #55707f;
}

.pin-panel button {
  padding: 10px 24px;
  color: white;
  background: #087ca7;
  border: 0;
  cursor: pointer;
}

#pinError {
  margin-top: 10px;
  color: #ff7777;
  font-size: 12px;
}

/* Daydream screensaver */

.daydream {
  position: fixed;
  z-index: 30000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  background: #000000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s, visibility .7s;
}

.daydream.active {
  opacity: 1;
  visibility: visible;
}

.daydream-content {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.daydream-clock {
  font-size: clamp(80px, 18vw, 170px);
  font-weight: 200;
  letter-spacing: -5px;
  color: rgba(255,255,255,1);
  font-family: "Classic Roboto Light", "Droid Sans", sans-serif
}

.daydream-canvas,
.daydream-photo,
.daydream-content iframe,
.daydream-content video {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  border: 0;
}

.daydream-exit {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  color: rgba(255,255,255,.35);
  font-size: 12px;
  pointer-events: none;
}

/* Jelly Bean-style app transitions */

.app-window {
  transform-origin: center center;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    opacity .22s ease;
  transform: scale(.92);
  opacity: 0;
}

.app-window.open {
  transform: scale(1);
  opacity: 1;
}

.tray-overlay {
  transition: opacity .22s ease, visibility .22s;
}

.tray-panel {
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.desktop,
.app-window,
.tray-overlay,
.recent-panel {
  filter: brightness(var(--blobos-brightness, 1));
}

@media (max-width: 600px) {
  .notification-shade {
    padding: 17px;
    max-height: 95dvh;
  }

  .quick-settings {
    gap: 6px;
  }

  .quick-tile {
    min-height: 68px;
  }

  .shade-title {
    font-size: 22px;
  }

  .lock-time {
    letter-spacing: -3px;
  }
}