/* =====================================================================
   LentilsOS — shared app toolkit (Frutiger Aero)
   Every app window body is .win-body; apps wrap their UI in .app.<name>
   ===================================================================== */
.app { height: 100%; display: flex; flex-direction: column; color: #0b3a80; font-family: var(--font); }
.app-toolbar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(205,232,255,0.55));
  border-bottom: 1px solid rgba(0,60,150,0.2);
}
.app-toolbar .spacer { flex: 1; }
.app-content { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.app-status { flex: none; padding: 5px 12px; font-size: 0.78rem; background: rgba(255,255,255,0.45); border-top: 1px solid rgba(0,60,150,0.15); }

/* glossy small button (toolbar) */
.app-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid #7fa9d8; cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #e4f2ff 48%, #cfe6fb 52%, #e6f3ff 100%);
  color: #0b3a80; font: 600 0.82rem var(--font);
  box-shadow: 0 2px 5px rgba(0,40,120,0.2), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.app-btn img { width: 18px; height: 18px; object-fit: contain; }
.app-btn:hover { filter: brightness(1.06); box-shadow: 0 3px 8px rgba(0,60,160,0.3), 0 0 8px rgba(120,210,255,0.6); }
.app-btn:active { transform: translateY(1px); }
.app-btn.active { background: linear-gradient(180deg, #a9ecff, #3aa8ff 48%, #0f7de8 52%, #0b5fd6); color: #fff; text-shadow: 0 -1px 0 rgba(0,40,120,0.6); }
.app-btn:disabled { opacity: 0.5; cursor: default; }

/* glass panel inside apps */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(230,244,255,0.55));
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,40,120,0.18), 0 1px 0 rgba(255,255,255,0.9) inset;
  padding: 12px;
}
.panel h3 { margin: 0 0 8px; font-size: 1rem; }

/* glossy tile (product, photo, file) */
.tile-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(215,236,255,0.7));
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 6px 16px rgba(0,40,120,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,40,140,0.3), 0 0 16px rgba(120,210,255,0.6); }
.tile-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0)); pointer-events: none; }

/* file grid (explorer) */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.file-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1px solid transparent; cursor: default; user-select: none; text-align: center; }
.file-item img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,20,80,0.3)); }
.file-item.image img { object-fit: cover; border-radius: 8px; border: 2px solid #fff; }
.file-item span { font-size: 0.78rem; font-weight: 600; line-height: 1.15; word-break: break-word; max-width: 100%; }
.file-item:hover { background: rgba(140,205,255,0.3); border-color: rgba(120,190,255,0.7); }
.file-item.selected { background: linear-gradient(180deg, rgba(140,205,255,0.7), rgba(60,150,255,0.6)); border-color: #2a86e0; color: #fff; text-shadow: 0 1px 1px rgba(0,30,90,0.5); }
.file-item input.rename { width: 100%; font: 600 0.78rem var(--font); text-align: center; border: 1px solid #3a8fe0; border-radius: 6px; padding: 2px 4px; color: #0b3a80; outline: none; box-shadow: 0 0 0 3px rgba(120,210,255,0.6); }
.breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; overflow: hidden; white-space: nowrap; }
.breadcrumb button { border: 0; background: transparent; color: #0b3a80; font: 600 0.85rem var(--font); cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.breadcrumb button:hover { background: rgba(120,200,255,0.35); }
.breadcrumb i { opacity: 0.5; font-style: normal; }
.empty-hint { padding: 30px; text-align: center; opacity: 0.6; }

/* text editor */
.textview textarea { width: 100%; height: 100%; resize: none; border: 0; outline: none; padding: 14px; font: 500 0.95rem/1.5 var(--font); color: #0b3a80; background: repeating-linear-gradient(180deg, rgba(255,255,255,0.7) 0 1.45rem, rgba(180,220,255,0.35) 1.45rem calc(1.45rem + 1px)); }
