/* =========================================================
   WINDOWS 11 FLUENT DESIGN SYSTEM - WEB DESKTOP STYLES
   ========================================================= */

:root {
  --bg-primary: #0f172a;
  --bg-acrylic: rgba(30, 41, 59, 0.72);
  --bg-acrylic-heavy: rgba(15, 23, 42, 0.84);
  --bg-window: #1e1e2e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-active: rgba(99, 102, 241, 0.55);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --win11-blue: #0067c0;
  --win11-accent: #0078d4;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-sky: #0ea5e9;
  --accent-cyan: #06b6d4;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-window: 0 24px 64px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-menu: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  --shadow-dialog: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
  --taskbar-height: 48px;
  --font-system: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-system);
  color: var(--text-primary);
  background-color: #0b0f19;
}

.hidden {
  display: none !important;
}

/* ==================== WALLPAPERS WINDOWS 11 ==================== */
.desktop-environment, .login-screen {
  background-size: cover;
  background-position: center;
  transition: background 0.4s ease;
}

.wp-bloom-dark {
  background: radial-gradient(circle at 50% 40%, #1e1b4b 0%, #111827 50%, #030712 100%);
  background-image: 
    radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.28) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.22) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(168, 85, 247, 0.22) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(59, 130, 246, 0.22) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(15, 23, 42, 1) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(15, 23, 42, 1) 0px, transparent 50%);
}

.wp-bloom-light {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.wp-cyber {
  background: linear-gradient(135deg, #0f172a 0%, #022c22 40%, #1e1b4b 100%);
}

.wp-minimal {
  background: #090d16;
}

/* ==================== TELA DE LOGIN WINDOWS 11 ==================== */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px 20px;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.login-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

.lock-top-clock {
  text-align: center;
  margin-top: 10px;
}

.lock-clock {
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.lock-date {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  padding: 32px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.user-avatar-win11 {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.18);
  animation: pulseAvatar 4s infinite ease-in-out;
}

@keyframes pulseAvatar {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(2, 132, 199, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.18); }
  50% { transform: scale(1.03); box-shadow: 0 14px 38px rgba(99, 102, 241, 0.6), 0 0 0 5px rgba(255, 255, 255, 0.25); }
}

.user-name-win11 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.server-badge-win11 {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-form-win11 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Campos de entrada estilo Windows 11 Fluent */
.win11-input-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--win11-accent);
  border-radius: var(--radius-xs);
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.win11-input-wrapper:focus-within {
  border-color: var(--win11-accent);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 8px 25px rgba(0, 120, 212, 0.35);
}

.input-icon-left {
  padding-left: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.win11-clean-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  padding: 10px 12px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.win11-clean-input::placeholder {
  color: var(--text-muted);
}

.btn-pw-eye, .btn-pw-submit {
  height: 36px;
  width: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.15s;
  margin-right: 4px;
  border-radius: var(--radius-xs);
}

.btn-pw-eye:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-pw-submit {
  background: var(--win11-accent);
  color: white;
}

.btn-pw-submit:hover {
  background: #1084d8;
  transform: scale(1.05);
}

/* Tooltip de Erro Windows 11 */
.login-error-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #2b1118;
  border: 1px solid #e11d48;
  color: #fecdd3;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  animation: shake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.login-error-tooltip.hidden { display: none; }

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.login-helpers {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.btn-quick-login {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-quick-login:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.lock-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.lock-footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== DESKTOP SURFACE & ICONS ==================== */
.desktop-surface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--taskbar-height);
  padding: 16px;
  overflow: hidden;
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 92px);
  grid-auto-rows: 98px;
  grid-gap: 14px;
  width: fit-content;
  max-height: 100%;
  z-index: 10;
  position: relative;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  border: 1px solid transparent;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.desktop-icon:focus, .desktop-icon.selected {
  background: rgba(0, 120, 212, 0.25);
  border-color: rgba(0, 120, 212, 0.5);
  outline: none;
}

.icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}

.desktop-icon:hover .icon-wrapper { transform: scale(1.05); }

.icon-antigravity { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.icon-claude { background: linear-gradient(135deg, #d97706, #f59e0b); }
.icon-terminal { background: linear-gradient(135deg, #059669, #10b981); }
.icon-explorer { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.icon-sysinfo { background: linear-gradient(135deg, #db2777, #f43f5e); }
.icon-accounts { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.icon-newproj { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.badge-ai {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== JANELAS FLUENT WINDOWS 11 ==================== */
.windows-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.win-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: #181c27;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  pointer-events: auto;
  min-width: 340px;
  min-height: 240px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.win-window.active-window {
  border-color: var(--border-active);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.win-window.minimized { display: none; }

.win-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  border: none;
}

.win-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: grab;
  user-select: none;
}

.win-header:active { cursor: grabbing; }

.win-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.win-title-icon { font-size: 0.95rem; }
.win-title-text {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-controls {
  display: flex;
  align-items: center;
  height: 100%;
}

.win-ctrl-btn {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

.win-ctrl-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.win-ctrl-btn.btn-close:hover { background: #e81123; color: white; }

.win-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #0f131d;
  display: flex;
  flex-direction: column;
}

/* Alças de Redimensionamento */
.win-resize-handle { position: absolute; z-index: 100; }
.resize-n { top: 0; left: 0; right: 0; height: 6px; cursor: n-resize; }
.resize-s { bottom: 0; left: 0; right: 0; height: 6px; cursor: s-resize; }
.resize-e { top: 0; bottom: 0; right: 0; width: 6px; cursor: e-resize; }
.resize-w { top: 0; bottom: 0; left: 0; width: 6px; cursor: w-resize; }
.resize-ne { top: 0; right: 0; width: 12px; height: 12px; cursor: ne-resize; }
.resize-nw { top: 0; left: 0; width: 12px; height: 12px; cursor: nw-resize; }
.resize-se { bottom: 0; right: 0; width: 12px; height: 12px; cursor: se-resize; }
.resize-sw { bottom: 0; left: 0; width: 12px; height: 12px; cursor: sw-resize; }

/* ==================== APLICATIVO: TERMINAL / CLI ==================== */
.terminal-app-container {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #090d16;
  position: relative;
  overflow: hidden;
}

.terminal-toolbar {
  min-height: 38px;
  height: 38px;
  background: #131926;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  gap: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  min-width: 0;
  flex: 1 1 auto;
  scrollbar-width: none;
}

.terminal-tabs::-webkit-scrollbar {
  display: none;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.term-tab-pill {
  padding: 4px 8px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
  flex-shrink: 0;
  transition: all 0.15s;
  user-select: none;
}

.term-tab-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.term-tab-pill.active {
  background: var(--win11-accent);
  color: white;
  font-weight: 600;
}

.tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close-x {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-close-x:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
  color: #fecdd3;
}

.term-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 8px;
  height: 28px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}

.term-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.term-btn:active {
  transform: scale(0.95);
}

.term-btn-icon-only {
  width: 28px;
  padding: 0;
}

.term-btn-text {
  display: inline;
  font-size: 0.73rem;
  line-height: 1;
}

/* Quando não houver espaço suficiente, oculta texto dos botões e mantém apenas os ícones limpos */
@container (max-width: 680px) {
  .term-btn .term-btn-text {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .term-btn .term-btn-text {
    display: none !important;
  }
}

.cmd-separator {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 2px;
  flex-shrink: 0;
}

.terminal-viewport {
  flex: 1;
  width: 100%;
  padding: 6px;
  overflow: hidden;
  background: #060911;
}

.ai-actions-bar {
  padding: 5px 8px;
  background: #131926;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.ai-actions-bar::-webkit-scrollbar {
  display: none;
}

.ai-chip-btn {
  white-space: nowrap;
  background: rgba(0, 120, 212, 0.15);
  border: 1px solid rgba(0, 120, 212, 0.35);
  color: #bae6fd;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
  flex-shrink: 0;
  user-select: none;
}

.ai-chip-btn:hover {
  background: var(--win11-accent);
  color: white;
  transform: translateY(-1px);
}

.ai-chip-btn:active {
  transform: scale(0.96);
}

/* Image Preview no Terminal */
.terminal-image-preview {
  background: #0d131f;
  border-top: 1px solid var(--border-color);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.terminal-preview-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #172033;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 10px;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.terminal-preview-card img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.terminal-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}

.terminal-preview-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-preview-size {
  font-size: 0.68rem;
  color: #94a3b8;
}

.terminal-btn-remove-img {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.terminal-btn-remove-img:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

/* Barra Inferior de Entrada/Comando / Prompt do Terminal */
.terminal-bottom-bar {
  display: flex;
  align-items: center;
  background: #0f172a;
  border-top: 1px solid var(--border-color);
  padding: 6px 8px;
  gap: 6px;
  flex-shrink: 0;
  z-index: 10;
}

.terminal-bottom-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.terminal-bottom-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.terminal-bottom-btn.recording {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
  animation: pulse-recording 1.2s infinite ease-in-out;
}

.terminal-bottom-input {
  flex: 1;
  background: #060911;
  border: 1px solid var(--border-color);
  color: #f8fafc;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0 10px;
  outline: none;
  min-width: 0;
  height: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.terminal-bottom-input:focus {
  border-color: var(--win11-accent);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.25);
}

.terminal-bottom-send {
  background: var(--win11-accent);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.terminal-bottom-send:hover {
  background: #106ebe;
  transform: translateY(-1px);
}

.terminal-bottom-send:active {
  transform: scale(0.95);
}

/* Drag and Drop Overlay */
.terminal-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 120, 212, 0.35);
  border: 2px dashed #38bdf8;
  backdrop-filter: blur(3px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 100;
  pointer-events: none;
}

/* ==================== APLICATIVO: EXPLORADOR DE ARQUIVOS (WINDOWS 11 STYLE) ==================== */
.explorer-container {
  display: flex;
  height: 100%;
  width: 100%;
  background: #111827;
}

.explorer-sidebar {
  width: 190px;
  background: #0f172a;
  border-right: 1px solid var(--border-color);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-heading {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px 2px;
}

.sidebar-item {
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-item:hover, .sidebar-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.explorer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.explorer-command-bar {
  height: 42px;
  background: #161e2e;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.cmd-bar-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.cmd-bar-btn:hover { background: rgba(255, 255, 255, 0.1); }
.cmd-separator { width: 1px; height: 18px; background: var(--border-color); margin: 0 4px; }

.explorer-nav {
  height: 38px;
  background: #111827;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.explorer-path-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  outline: none;
}

.explorer-content-view {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  grid-auto-rows: 92px;
  grid-gap: 8px;
  align-content: start;
}

.fs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  gap: 6px;
}

.fs-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
}

.fs-item.selected {
  background: rgba(0, 120, 212, 0.2);
  border-color: var(--win11-accent);
}

.fs-icon { font-size: 1.9rem; }
.fs-icon.dir { color: #f59e0b; }
.fs-icon.file { color: #38bdf8; }
.fs-icon.code { color: #a855f7; }
.fs-icon.img { color: #ec4899; }

.fs-name {
  font-size: 0.78rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== APLICATIVO: BLOCO DE NOTAS ==================== */
.file-editor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.file-editor-toolbar {
  padding: 8px 12px;
  background: #161e2e;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-editor-textarea {
  flex: 1;
  background: #090d16;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 14px;
  border: none;
  outline: none;
  resize: none;
  user-select: text;
  -webkit-user-select: text;
}

/* ==================== APLICATIVO: GERENCIADOR DE TAREFAS / PROCESSOS ==================== */
.sysinfo-container {
  padding: 16px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0d1117;
}

.sys-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sys-stat-title {
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sys-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.sys-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--win11-accent));
  transition: width 0.4s ease;
}

/* Tabela de Processos Windows 11 Task Manager */
.process-table-wrapper {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.process-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.process-table th {
  background: #161e2e;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
}

.process-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.process-table tr:hover { background: rgba(255, 255, 255, 0.05); }

.btn-kill-proc {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.72rem;
}

.btn-kill-proc:hover { background: #e11d48; color: white; }

/* ==================== APLICATIVO: CONTAS E SEGURANÇA 2FA ==================== */
.accounts-container {
  display: flex;
  height: 100%;
  background: #0f1422;
}

.accounts-nav {
  width: 200px;
  background: #0b0f19;
  border-right: 1px solid var(--border-color);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accounts-nav-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.accounts-nav-item:hover, .accounts-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.accounts-nav-item.active {
  background: var(--win11-accent);
  color: white;
  font-weight: 600;
}

.accounts-tab-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-box {
  background: white;
  padding: 12px;
  border-radius: var(--radius-md);
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.bg-cyan { background: var(--accent-cyan); }

/* ==================== BARRA DE TAREFAS CENTRALIZADA (WINDOWS 11) ==================== */
.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-height);
  background: var(--bg-acrylic-heavy);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 10000;
}

.taskbar-left, .taskbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}

.taskbar-right { justify-content: flex-end; }

.taskbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
}

.taskbar-pinned-apps {
  display: flex;
  align-items: center;
  gap: 4px;
}

.taskbar-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.95rem;
  transition: background 0.15s;
  position: relative;
}

.taskbar-btn:hover { background: rgba(255, 255, 255, 0.09); }

.btn-start-win11 { padding: 0 10px; }

.win11-logo-grid {
  display: grid;
  grid-template-columns: 8px 8px;
  grid-template-rows: 8px 8px;
  grid-gap: 2.5px;
}

.win-tile {
  background: #00adef;
  border-radius: 1px;
  transition: background 0.15s;
}

.btn-start-win11:hover .win-tile { background: #50e6ff; }

.btn-widgets {
  font-size: 0.8rem;
  color: var(--text-secondary);
  gap: 8px;
}

.taskbar-app-pill {
  height: 40px;
  min-width: 40px;
  max-width: 160px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  position: relative;
  white-space: nowrap;
  transition: background 0.15s;
}

.taskbar-app-pill.active { background: rgba(255, 255, 255, 0.12); }

.taskbar-app-pill::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--win11-accent);
}

.taskbar-app-pill.active::after {
  width: 22px;
  background: #38bdf8;
}

.tray-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
}

.btn-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.15;
  padding: 2px 8px;
}

.clock-time { font-size: 0.82rem; font-weight: 600; }
.clock-date { font-size: 0.68rem; color: var(--text-secondary); }

.show-desktop-bar {
  width: 6px;
  height: 28px;
  border-left: 1px solid var(--border-color);
  margin-left: 4px;
  cursor: pointer;
}
.show-desktop-bar:hover { background: rgba(255, 255, 255, 0.2); }

/* ==================== MENU INICIAR (WINDOWS 11 START MENU) ==================== */
.win11-start-menu {
  position: absolute;
  bottom: calc(var(--taskbar-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 620px;
  height: 560px;
  border-radius: var(--radius-lg);
  background: var(--bg-acrylic-heavy);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dialog);
  display: flex;
  flex-direction: column;
  z-index: 10001;
  overflow: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.win11-start-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(25px) scale(0.96);
}

.start-search-box {
  padding: 20px 24px 10px;
  position: relative;
  display: flex;
  align-items: center;
}

.start-search-box i { position: absolute; left: 38px; color: var(--text-muted); }
.start-search-box input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}
.start-search-box input:focus { border-color: var(--win11-accent); }

.start-scroll-area { flex: 1; padding: 10px 28px; overflow-y: auto; }
.start-section-header { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 12px; }
.section-title { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.btn-all-apps { background: transparent; border: none; color: var(--text-secondary); font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; gap: 4px; }

.start-pinned-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.start-pinned-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  gap: 6px;
}

.start-pinned-item:hover { background: rgba(255, 255, 255, 0.08); }

.pinned-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: white;
}

.bg-indigo { background: var(--accent-indigo); }
.bg-amber { background: var(--accent-amber); }
.bg-emerald { background: var(--accent-emerald); }
.bg-sky { background: var(--accent-sky); }
.bg-pink { background: var(--accent-rose); }
.bg-purple { background: #8b5cf6; }

.pinned-label {
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-recommended-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recent-project-card {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.recent-project-card:hover { background: rgba(255, 255, 255, 0.09); }

.start-footer-win11 {
  height: 56px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
}

.start-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.start-user-profile:hover { background: rgba(255, 255, 255, 0.08); }

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--win11-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.user-name-sm { font-size: 0.85rem; font-weight: 600; }

.start-power-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-power-item {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-power-item:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.power-flyout {
  position: absolute;
  bottom: 60px;
  right: 20px;
  width: 200px;
  border-radius: var(--radius-md);
  background: var(--bg-acrylic-heavy);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-menu);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 10002;
}

.power-flyout.hidden { display: none; }

.power-option {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.power-option:hover { background: var(--win11-accent); color: white; }

/* ==================== FLYOUT ÁREA DE TRANSFERÊNCIA (WIN + V) ==================== */
.clipboard-flyout {
  position: absolute;
  bottom: calc(var(--taskbar-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  max-height: 400px;
  border-radius: var(--radius-lg);
  background: var(--bg-acrylic-heavy);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dialog);
  display: flex;
  flex-direction: column;
  z-index: 10002;
  overflow: hidden;
}

.clipboard-flyout.hidden { display: none; }

.clipboard-header {
  height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-clear-clipboard {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.btn-clear-clipboard:hover { color: var(--accent-rose); }

.clipboard-list {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clipboard-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  max-height: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
  transition: all 0.15s;
}

.clipboard-item:hover {
  background: rgba(0, 120, 212, 0.2);
  border-color: var(--win11-accent);
}

/* ==================== MENU DE CONTEXTO WINDOWS 11 ==================== */
.context-menu {
  position: fixed;
  z-index: 999999;
  min-width: 220px;
  background: var(--bg-acrylic-heavy);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-menu);
  padding: 6px;
  animation: contextFadeIn 0.12s ease-out;
}

.context-menu.hidden { display: none; }

@keyframes contextFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.context-item {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.1s;
}

.context-item i {
  width: 16px;
  text-align: center;
  color: var(--accent-sky);
  font-size: 0.9rem;
}

.context-item:hover {
  background: var(--win11-accent);
  color: white;
}

.context-item:hover i { color: white; }

.context-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* ==================== MODAIS NATIVOS WINDOWS 11 ==================== */
.win11-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  animation: fadeIn 0.15s ease-out;
}

.win11-modal-overlay.hidden { display: none; }

.win11-dialog-box {
  width: 90%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background: #181d29;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dialog);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-header {
  height: 46px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-title {
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px;
}

.dialog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialog-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dialog-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dialog-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.dialog-input:focus { border-color: var(--win11-accent); }

.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.template-card {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}

.template-card:hover { background: rgba(255, 255, 255, 0.08); }

.template-card.active {
  background: rgba(0, 120, 212, 0.2);
  border-color: var(--win11-accent);
}

.tmpl-icon { font-size: 1.2rem; color: var(--accent-sky); }
.tmpl-info { display: flex; flex-direction: column; }
.tmpl-name { font-size: 0.8rem; font-weight: 600; }
.tmpl-desc { font-size: 0.68rem; color: var(--text-muted); }

.dialog-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.dialog-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.dialog-footer {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-dialog-secondary {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-dialog-secondary:hover { background: rgba(255, 255, 255, 0.08); }

.btn-dialog-primary {
  padding: 8px 20px;
  border-radius: var(--radius-xs);
  border: none;
  background: var(--win11-accent);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-dialog-primary:hover { background: #1084d8; }

/* ==================== CALENDÁRIO FLYOUT ==================== */
.calendar-flyout {
  position: absolute;
  bottom: calc(var(--taskbar-height) + 12px);
  right: 12px;
  width: 320px;
  border-radius: var(--radius-lg);
  background: var(--bg-acrylic-heavy);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dialog);
  padding: 16px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-flyout.hidden { display: none; }

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.cal-today-title { font-size: 0.9rem; font-weight: 600; }
.btn-cal-collapse { background: none; border: none; color: var(--text-muted); cursor: pointer; }

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-month-name { font-size: 0.85rem; font-weight: 600; }
.cal-nav-btns button {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px 8px;
  cursor: pointer;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-day-header { font-size: 0.7rem; color: var(--text-muted); padding: 4px 0; }
.cal-day {
  padding: 6px 0;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  cursor: pointer;
}
.cal-day:hover { background: rgba(255, 255, 255, 0.08); }
.cal-day.today { background: var(--win11-accent); color: white; font-weight: 700; }

/* ==================== CENTRAL DE CONFIGURAÇÕES RÁPIDAS ==================== */
.quick-settings-panel {
  position: absolute;
  bottom: calc(var(--taskbar-height) + 12px);
  right: 12px;
  width: 320px;
  border-radius: var(--radius-lg);
  background: var(--bg-acrylic-heavy);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dialog);
  padding: 16px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-settings-panel.hidden { display: none; }
.quick-header { display: flex; align-items: center; justify-content: space-between; }
.btn-close-quick { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.quick-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-primary);
  cursor: pointer;
}

.quick-tile.active { background: var(--win11-accent); border-color: transparent; }

.wallpaper-selector { display: flex; gap: 8px; margin-top: 6px; }

.wp-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.wp-btn.active { border-color: white; transform: scale(1.1); }
.wp-btn[data-wp="wp-bloom-dark"] { background: #1e1b4b; }
.wp-btn[data-wp="wp-bloom-light"] { background: #3b82f6; }
.wp-btn[data-wp="wp-cyber"] { background: #022c22; }
.wp-btn[data-wp="wp-minimal"] { background: #090d16; }

/* ==================== LONG PRESS FEEDBACK ==================== */
.long-press-indicator {
  position: fixed;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.25);
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.2s;
}

.long-press-indicator.active {
  transform: translate(-50%, -50%) scale(1.35);
  opacity: 1;
}

/* ==================== MOBILE KEYBOARD BAR ==================== */
.mobile-keyboard-bar {
  position: fixed;
  bottom: var(--taskbar-height);
  left: 0;
  right: 0;
  height: 40px;
  background: #1e293b;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  overflow-x: auto;
  z-index: 9999;
}

.mobile-keyboard-bar.hidden { display: none; }

.k-btn {
  height: 28px;
  min-width: 36px;
  padding: 0 8px;
  background: #334155;
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==================== RESPONSIVIDADE MOBILE ==================== */
body.mobile-mode .desktop-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  width: 100%;
}

body.mobile-mode .win-window {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--taskbar-height)) !important;
  border-radius: 0 !important;
  border: none !important;
}

body.mobile-mode .win-resize-handle { display: none !important; }

body.mobile-mode .taskbar-center {
  justify-content: flex-start;
  overflow-x: auto;
}

body.mobile-mode .start-pinned-grid {
  grid-template-columns: repeat(3, 1fr);
}

body.mobile-mode .start-menu {
  width: 100%;
  max-width: 100%;
  height: calc(100vh - var(--taskbar-height));
  bottom: var(--taskbar-height);
  border-radius: 0;
}

@media (max-width: 768px) {
  :root { --taskbar-height: 52px; }
  .lock-clock { font-size: 3.8rem; }
  .desktop-grid { grid-template-columns: repeat(3, 1fr); grid-gap: 8px; width: 100%; }
  .taskbar-left, .taskbar-right { min-width: auto; }
  .tray-text, .widget-weather-text { display: none; }
  .start-menu { width: 100%; left: 0; right: 0; transform: none; height: calc(100vh - var(--taskbar-height)); bottom: var(--taskbar-height); border-radius: 0; }
  .start-menu.hidden { transform: translateY(100%); }
}
