/* RockOS Carbon Stylesheet */

:root {
  --text-color: #2c3e50;
  --text-sub: #5d6d7e;
  --slate-blue: #3c5476;
  --bg-translucent: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.25);
  --cream-page: #f6f3eb; /* Warm paper tone */
  --header-bg: rgba(255, 255, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* desktop wallpaper */
.desktop {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url('desktop_wallpaper.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

/* top-left logo */
.top-left-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 1000;
}

.top-left-logo:hover {
  transform: scale(1.02);
}

/* top-right widget clock block */
.top-right-widget {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: var(--bg-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.widget-time-block {
  display: flex;
  flex-direction: column;
  color: var(--slate-blue);
  font-weight: 500;
}

.widget-time {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
}

.widget-date {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-icon rect {
  fill: var(--slate-blue);
}

.bell-icon path {
  fill: var(--slate-blue);
}

/* draggable windows */
.window {
  position: absolute;
  background-color: var(--cream-page);
  border-radius: 10px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: none; /* toggled via JS */
}

.window.active {
  display: flex;
}

.window.focus-window {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.1);
}

.window-header {
  height: 38px;
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  align-items: center;
  padding: 0 16px;
  cursor: move;
  user-select: none;
}

/* header controls */
.header-left {
  display: flex;
  gap: 8px;
}

.ctrl-btn {
  font-size: 0.75rem;
  color: #7f8c8d;
  cursor: pointer;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: color 0.15s ease;
}

.ctrl-btn:hover {
  color: #333;
}

.header-center {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #7f8c8d;
}

.separator {
  opacity: 0.4;
}

.window-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* page content body: ZenWriter */
.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

#editor-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  resize: none;
  outline: none;
  font-family: 'Courier Prime', monospace;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #2c3e50;
  padding: 12px 16px;
}

.page-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

.pill-metrics {
  font-size: 0.65rem;
  color: #7f8c8d;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 4px 10px;
  border-radius: 12px;
}

/* ==========================================
   APP: SYSTEM ABOUT WINDOW
   ========================================== */
.glass-body {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.os-info-layout {
  display: flex;
  gap: 20px;
  align-items: center;
  height: 100%;
}

.os-logo-large {
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.os-specs-list {
  flex: 1;
}

.os-specs-list h2 {
  font-size: 1.3rem;
  color: var(--slate-blue);
  font-weight: 700;
}

.os-specs-list p {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.spec-row span {
  color: var(--text-sub);
}

/* ==========================================
   APP: BROWSER WINDOW
   ========================================== */
.browser-url-bar {
  height: 40px;
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.browser-nav-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.browser-nav-btn:hover {
  background-color: #cbd5e1;
}

#browser-url-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  outline: none;
  color: #334155;
}

.browser-go-btn {
  background-color: var(--slate-blue);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.browser-viewport {
  flex: 1;
  overflow-y: auto;
}

.search-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 30px;
}

.search-link-item {
  margin-bottom: 12px;
}

.search-link-item a {
  font-size: 0.88rem;
  color: #1a0dab;
  text-decoration: none;
}

.search-link-item a:hover {
  text-decoration: underline;
}

.search-link-item p {
  font-size: 0.75rem;
  color: #4d5156;
  margin-top: 2px;
}

/* ==========================================
   APP: PROJECT SYNC & PROGRESS BARS
   ========================================== */
.sync-panel-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-bar-track {
  height: 6px;
  background-color: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--slate-blue);
  transition: width 0.4s ease;
}

.sync-history-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-blue);
  letter-spacing: 0.5px;
}

.sync-log-scroll {
  flex: 1;
  overflow-y: auto;
  margin-top: 6px;
}

.sync-log-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* ==========================================
   APP: FILE MANAGER GRID
   ========================================== */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
  padding: 8px;
}

.file-folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.file-folder-item:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.item-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.item-name {
  font-size: 0.72rem;
  color: var(--slate-blue);
  text-align: center;
  font-weight: 500;
}

/* ==========================================
   APP: SETTINGS & WALLPAPER CHOICES
   ========================================== */
.wallpaper-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.wallpaper-thumb {
  height: 72px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.wallpaper-thumb:hover {
  transform: translateY(-2px);
}

.wallpaper-thumb.active {
  border-color: var(--slate-blue);
}

.thumb-lbl {
  font-size: 0.65rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* ==========================================
   ZEN ROCK BALANCING BLOCKS (RIGHT SIDE)
   ========================================= */
.rock-block {
  position: absolute;
  cursor: grab;
  pointer-events: auto; /* enable drags */
  display: flex;
  align-items: center;
  justify-content: center;
  /* 3D Realistic Rock Texturing, Specs, and Shadow Layers */
  box-shadow: 
    inset -4px -4px 10px rgba(0, 0, 0, 0.45), 
    inset 4px 4px 10px rgba(255, 255, 255, 0.25), 
    0 8px 18px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.rock-block:active {
  cursor: grabbing;
}

.rock-block.dragging {
  box-shadow: 
    inset -4px -4px 10px rgba(0, 0, 0, 0.45), 
    inset 4px 4px 10px rgba(255, 255, 255, 0.25),
    0 15px 30px rgba(0, 0, 0, 0.35);
  transform: scale(1.04);
  z-index: 10000 !important;
}

.pebble-label {
  font-size: 0.58rem;
  font-weight: bold;
  opacity: 0.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Pebble organic balanced shape equations */
.pebble-1 {
  background: linear-gradient(135deg, #a79c93 0%, #766a61 100%);
  border-radius: 46% 54% 50% 50% / 48% 48% 62% 52%;
  color: #fff;
}

.pebble-2 {
  background: linear-gradient(135deg, #5b5a59 0%, #3a3938 100%);
  border-radius: 54% 46% 58% 42% / 44% 48% 56% 56%;
  color: #fff;
}

.pebble-3 {
  background: linear-gradient(135deg, #b06e5d 0%, #7f4537 100%);
  border-radius: 48% 52% 50% 50% / 54% 46% 54% 46%;
  color: #fff;
}

.pebble-4 {
  background: linear-gradient(135deg, #c78d78 0%, #905a48 100%);
  border-radius: 52% 48% 46% 54% / 46% 54% 48% 52%;
  color: #fff;
}

/* ==========================================
   BOTTOM FLOATING DOCK PANEL
   ========================================= */
.bottom-dock-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.bottom-dock {
  background-color: var(--bg-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.bg-white {
  background-color: white;
}

.bg-blue {
  background-color: var(--slate-blue);
  border-color: var(--slate-blue);
}

.dock-label {
  font-size: 0.62rem;
  color: var(--slate-blue);
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.85;
}

.dock-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.dock-item:hover .dock-icon {
  transform: scale(1.05);
}

.dock-item.active {
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item.active .dock-label {
  font-weight: 700;
  opacity: 1;
}

/* Animations */
.window.active {
  animation: scale-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scale-up {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(60, 84, 118, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--slate-blue);
}

/* premium toggle switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  transition: .3s;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.slider-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
input:checked + .slider-round {
  background-color: var(--slate-blue);
}
input:checked + .slider-round:before {
  transform: translateX(18px);
}
