/* ==========================================================================
   VYSHNAV OS - Individual Application Styles
   ========================================================================== */

/* Top Menu Bar */
.menu-bar-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: var(--bg-menu-bar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 10000;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-bar-left, .menu-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-apple-icon {
  font-size: 15px;
  cursor: pointer;
}

.menu-item-dropdown {
  position: relative;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.menu-item-dropdown:hover {
  background: rgba(255, 255, 255, 0.15);
}

.app-title-bold {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.menu-dropdown-content {
  display: none;
  position: absolute;
  top: 26px;
  left: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  min-width: 200px;
  padding: 6px 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.7);
  z-index: 10001;
}

.dropdown-row {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  cursor: pointer;
}

.dropdown-row:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.menu-status-icon {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.menu-status-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

.menu-status-clock {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.menu-status-clock:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Status Mini Popup */
.status-mini-popup {
  display: none;
  position: fixed;
  top: 36px;
  right: 60px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-window);
  z-index: 10002;
  min-width: 220px;
}
.mini-popup-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.mini-popup-close {
  cursor: pointer;
  font-weight: bold;
}

/* Control Center Floating Panel */
.control-center-panel {
  position: fixed;
  top: 36px;
  right: 12px;
  width: 320px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-window);
  z-index: 10000;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.control-center-panel.active {
  display: flex;
}

.cc-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.cc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}
.cc-row.active {
  background: rgba(56, 189, 248, 0.2);
}

.cc-card-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-small-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}
.cc-small-btn.active-accent {
  background: var(--accent-purple);
  color: #ffffff;
}

.cc-slider {
  width: 100%;
  margin-top: 6px;
  accent-color: var(--accent-blue);
}

.cc-now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
}
.np-art { font-size: 24px; }
.np-info { flex: 1; overflow: hidden; }
.np-title { font-weight: 600; font-size: 13px; }
.np-artist { font-size: 11px; color: var(--text-muted); }
.np-controls { display: flex; gap: 4px; }
.np-btn { background: transparent; border: none; cursor: pointer; color: var(--text-main); }

/* Spotlight Modal */
.spotlight-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  z-index: 10005;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.spotlight-modal-overlay.active {
  display: flex;
}

.spotlight-box {
  width: 620px;
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
}

.spotlight-icon { font-size: 20px; }

.spotlight-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.spotlight-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-item:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

.spotlight-item-title { font-weight: 600; font-size: 14px; }
.spotlight-item-sub { font-size: 12px; opacity: 0.8; }

.spotlight-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Notification Center Right Panel */
.notification-center-panel {
  position: fixed;
  top: 36px;
  right: 12px;
  width: 340px;
  height: calc(100vh - 50px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-window);
  z-index: 10000;
  display: none;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.notification-center-panel.active {
  display: flex;
}

.calendar-widget {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.cal-month { font-size: 14px; color: var(--accent-blue); font-weight: 700; text-transform: uppercase; }
.cal-day-num { font-size: 42px; font-weight: 800; line-height: 1; margin: 4px 0; }
.cal-weekday { font-size: 14px; color: var(--text-muted); }
.cal-event-badge { margin-top: 10px; font-size: 12px; background: rgba(56,189,248,0.2); color: var(--accent-blue); padding: 4px 8px; border-radius: 6px; display: inline-block; }

.nc-section-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.nc-cards { display: flex; flex-direction: column; gap: 10px; }
.nc-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px; }
.nc-card-header { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.nc-card-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.nc-card-body { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* Toast Notification Container */
.toast-container {
  position: fixed;
  top: 40px;
  right: 16px;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-notification {
  width: 320px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-fade-out {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-header { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.toast-title { font-weight: 700; font-size: 13px; }
.toast-message { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Terminal Styling */
.terminal-wrapper {
  background: #09090b;
  color: #f4f4f5;
  font-family: var(--font-mono);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.5;
}

.terminal-banner { color: #71717a; margin-bottom: 12px; }
.terminal-output { flex: 1; overflow-y: auto; margin-bottom: 8px; }
.term-prompt-line { display: flex; align-items: center; gap: 6px; }
.term-user { color: #38bdf8; font-weight: 700; }
.term-path { color: #a855f7; font-weight: 700; }
.term-prompt-symbol { color: #34d399; font-weight: 700; }
.terminal-input { flex: 1; background: transparent; border: none; outline: none; color: #ffffff; font-family: inherit; font-size: inherit; }

.neofetch-box { display: flex; gap: 20px; margin: 12px 0; align-items: center; }
.neofetch-logo { color: #38bdf8; font-weight: bold; font-size: 11px; line-height: 1.2; }
.neofetch-info { font-size: 12px; }
.neo-key { color: #a855f7; font-weight: bold; }
.neo-val { color: #f4f4f5; }

/* VYSHNAV Browser Styling */
.browser-wrapper { display: flex; flex-direction: column; height: 100%; background: #0f172a; }
.browser-header { background: #1e293b; border-bottom: 1px solid var(--border-subtle); }
.browser-tabs { display: flex; align-items: center; padding: 6px 8px 0 8px; gap: 4px; }
.browser-tab { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(15,23,42,0.6); border-radius: 8px 8px 0 0; font-size: 12px; cursor: pointer; color: var(--text-muted); max-width: 180px; }
.browser-tab.active { background: #0f172a; color: #ffffff; font-weight: 600; }
.tab-close { margin-left: auto; font-weight: bold; border-radius: 50%; padding: 0 4px; }
.tab-close:hover { background: rgba(255,255,255,0.2); }
.browser-new-tab-btn { background: transparent; border: none; color: var(--text-muted); font-size: 16px; padding: 0 8px; cursor: pointer; }

.browser-nav-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #0f172a; border-top: 1px solid var(--border-subtle); }
.nav-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.address-bar-box { flex: 1; display: flex; align-items: center; gap: 6px; background: #1e293b; border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 8px; }
.address-input { flex: 1; background: transparent; border: none; outline: none; color: #ffffff; font-size: 13px; }

.browser-bookmarks-quick { display: flex; gap: 4px; }
.bk-btn { background: transparent; border: none; color: var(--accent-blue); font-size: 12px; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.bk-btn:hover { background: rgba(56,189,248,0.15); }

.browser-page-container { flex: 1; overflow-y: auto; padding: 30px; background: #0f172a; }
.web-page { max-width: 800px; margin: 0 auto; }
.web-hero { text-align: center; margin-bottom: 30px; }
.web-title-huge { font-size: 38px; font-weight: 800; color: #ffffff; letter-spacing: -1px; }
.web-sub-huge { font-size: 18px; color: var(--accent-blue); margin-top: 6px; }
.web-stat-badge { display: inline-block; background: rgba(56,189,248,0.2); color: var(--accent-blue); font-weight: 700; padding: 6px 14px; border-radius: 20px; margin-top: 12px; font-size: 12px; }

.web-nav-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.web-tile { background: #1e293b; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; cursor: pointer; text-decoration: none; color: inherit; transition: transform 0.2s ease, border-color 0.2s ease; }
.web-tile:hover { transform: translateY(-4px); border-color: var(--accent-blue); }
.web-tile-icon { font-size: 28px; }
.web-tile-title { font-size: 16px; font-weight: 700; margin: 8px 0 4px 0; display: block; }
.web-tile-desc { font-size: 12px; color: var(--text-muted); display: block; }

/* TextEdit Styling */
.textedit-wrapper { display: flex; flex-direction: column; height: 100%; background: #1e293b; }
.textedit-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #0f172a; border-bottom: 1px solid var(--border-subtle); }
.te-btn { background: var(--bg-card); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.te-divider { width: 1px; height: 16px; background: var(--border-color); }
.te-filename-badge { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.textedit-editor { flex: 1; padding: 20px; outline: none; color: #ffffff; font-size: 14px; line-height: 1.6; overflow-y: auto; }

/* Paint Styling */
.paint-wrapper { display: flex; flex-direction: column; height: 100%; background: #1e293b; }
.paint-toolbar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: #0f172a; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; }
.paint-tool-group { display: flex; align-items: center; gap: 6px; }
.p-tool-btn { background: var(--bg-card); border: 1px solid var(--border-color); padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.p-tool-btn.active { background: var(--accent-blue); }
.p-swatches { display: flex; gap: 4px; }
.p-swatch { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(255,255,255,0.4); }
.p-btn { background: var(--bg-card); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.p-btn.primary { background: var(--accent-blue); color: #ffffff; font-weight: 600; }
.paint-canvas-box { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; background: #09090b; overflow: auto; }
#paint-canvas { background: #ffffff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); cursor: crosshair; }

/* Mail Styling */
.mail-wrapper { display: flex; height: 100%; background: #0f172a; }
.mail-sidebar { width: 180px; background: #1e293b; border-right: 1px solid var(--border-subtle); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.mail-sb-item { padding: 8px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--text-muted); }
.mail-sb-item:hover { background: rgba(255,255,255,0.06); }
.mail-sb-item.active { background: var(--accent-blue); color: #ffffff; font-weight: 600; }

.mail-main-pane { flex: 1; padding: 24px; overflow-y: auto; }
.mail-form { display: flex; flex-direction: column; gap: 14px; max-width: 550px; }
.mail-field-row { display: flex; flex-direction: column; gap: 4px; }
.mail-field-row label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mail-field-row input, .mail-body-row textarea { background: #1e293b; border: 1px solid var(--border-color); padding: 10px; border-radius: 8px; outline: none; color: #ffffff; }
.mail-body-row textarea { width: 100%; height: 140px; resize: vertical; }
.mail-send-btn { background: var(--accent-blue); color: #ffffff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; align-self: flex-start; }

/* System Settings Styling */
.settings-wrapper { display: flex; height: 100%; background: #0f172a; }
.settings-sidebar { width: 200px; background: #1e293b; border-right: 1px solid var(--border-subtle); padding: 16px 8px; display: flex; flex-direction: column; gap: 4px; }
.set-sb-item { padding: 10px 14px; border-radius: 8px; cursor: pointer; color: var(--text-muted); }
.set-sb-item.active { background: var(--accent-blue); color: #ffffff; font-weight: 600; }

.settings-content-pane { flex: 1; padding: 24px; overflow-y: auto; }
.wallpaper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.wallpaper-card { border: 2px solid var(--border-color); border-radius: 10px; padding: 6px; cursor: pointer; }
.wallpaper-card:hover { border-color: var(--accent-blue); }
.wall-preview { height: 80px; border-radius: 6px; }
.wall-name { font-size: 11px; text-align: center; margin-top: 6px; font-weight: 600; }

/* Launchpad Styling */
.launchpad-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(40px); z-index: 10006; display: none; align-items: center; justify-content: center; }
.launchpad-overlay.active { display: flex; }
.launchpad-inner { width: 80%; max-width: 900px; }
.launchpad-search { margin-bottom: 40px; text-align: center; }
.launchpad-search input { width: 300px; background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 20px; outline: none; color: #ffffff; text-align: center; }
.launchpad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 30px; justify-items: center; }
.lp-app-card { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.lp-app-card:hover { transform: scale(1.1); }
.lp-app-icon { font-size: 48px; margin-bottom: 6px; }
.lp-app-name { font-size: 13px; font-weight: 600; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* Boot Screen Overlay */
.boot-screen-overlay { 
  position: fixed; inset: 0; background: #080808; z-index: 20000; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ffffff; 
}
.mac-startup-mark {
  width: 72px; height: 72px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: var(--accent-blue);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
  margin-bottom: 24px;
}
.boot-greeting { 
  font-family: var(--font-display); 
  font-size: clamp(28px, 4vw, 42px); 
  font-weight: 700; 
  letter-spacing: -0.02em; 
  color: #ffffff;
  margin-bottom: 8px;
}
.boot-progress-box { 
  width: 220px; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 28px 0 12px 0; overflow: hidden; 
}
.boot-progress-bar { height: 100%; width: 0%; background: var(--accent-blue); transition: width 0.15s ease; border-radius: 3px; }
.boot-status { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text-muted); }
.btn-skip-boot { 
  position: absolute; bottom: 36px; 
  background: rgba(255,255,255,0.06); 
  border: 1px solid rgba(255,255,255,0.15); 
  color: #a3a3a3; 
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px; 
  border-radius: 20px; 
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-skip-boot:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* System Settings Wallpaper Panel Styling */
.set-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.add-wall-btn {
  background: var(--accent-blue);
  color: #000000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.add-wall-btn:hover {
  opacity: 0.9;
}
.wall-categories-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.wall-cat-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.wall-cat-btn.active, .wall-cat-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.wallpaper-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wallpaper-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}
.wallpaper-card.selected {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
}
.wall-preview {
  width: 100%;
  height: 90px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.wall-check-badge {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(14, 165, 233, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}
.wall-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 2px;
}
.wall-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}
.wall-cat-tag {
  font-size: 10px;
  color: var(--text-dim);
}
.wall-pos-section {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}
.wall-pos-section h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}
.wall-pos-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pos-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.pos-opt-btn.active, .pos-opt-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.login-screen-overlay { 
  position: fixed; inset: 0; background: var(--bg-desktop); background-size: cover; z-index: 19000; display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(20px); 
}
.login-box { 
  display: flex; flex-direction: column; align-items: center; background: rgba(12,12,12,0.92); border: 1px solid var(--border-color); padding: 48px; border-radius: 12px; box-shadow: var(--shadow-window); 
}
.login-avatar { 
  width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 16px; 
}
.login-username { 
  font-family: var(--font-display); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; color: #ffffff; 
}
.login-role { 
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 24px; 
}
.login-row { display: flex; gap: 8px; }
.login-input { 
  background: #141414; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: 4px; outline: none; color: #ffffff; font-family: var(--font-mono); font-size: 12px; text-align: center; width: 200px; 
}
.login-btn { 
  background: #f5f5f5; color: #0a0a0a; border: none; padding: 10px 22px; border-radius: 4px; font-family: var(--font-sans); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; 
}

/* Desktop Context Menu */
.desktop-context-menu { 
  position: fixed; display: none; background: rgba(12,12,12,0.96); border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 0; min-width: 190px; box-shadow: var(--shadow-window); z-index: 10008; backdrop-filter: blur(25px); 
}
.ctx-item { 
  padding: 8px 14px; font-family: var(--font-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; 
}
.ctx-item:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.ctx-divider { height: 1px; background: var(--border-color); margin: 4px 0; }

/* Standard Portfolio Fallback Modal */
.standard-portfolio-modal { position: fixed; inset: 0; background: #0a0a0a; z-index: 10020; overflow-y: auto; display: none; }
.standard-portfolio-modal.active { display: block; }
.std-nav-bar { 
  position: sticky; top: 0; background: rgba(10,10,10,0.94); backdrop-filter: blur(20px); padding: 18px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); 
}
.std-brand { font-family: var(--font-display); font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; color: #ffffff; }
.std-nav-links { display: flex; gap: 24px; align-items: center; }
.std-nav-links a { font-family: var(--font-sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); text-decoration: none; }
.std-btn-os { background: #f5f5f5; color: #0a0a0a; border: none; padding: 10px 20px; border-radius: 4px; font-family: var(--font-sans); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; }
.std-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.std-section { margin-bottom: 60px; }
.std-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.std-card { background: #121212; border: 1px solid var(--border-color); border-radius: 8px; padding: 24px; }
.std-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.std-prj-card { background: #121212; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.std-prj-img { width: 100%; height: 180px; object-fit: cover; }
.std-prj-body { padding: 20px; }

/* Modern Mac TextEdit App Styles */
.textedit-app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-window);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
}

.te-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.te-tool-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.te-tool-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
  margin: 0 4px;
}

.te-tool-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.te-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.te-select-format {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.te-file-title-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: 12px;
}

.te-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.te-search-field {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}

.te-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  width: 100%;
}

.te-search-btn {
  background: var(--accent-blue);
  color: #000;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.te-search-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.te-canvas-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  background: var(--bg-window);
}

.te-editor-document {
  width: 100%;
  max-width: 720px;
  min-height: 100%;
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-main);
}

.theme-light .te-editor-document {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.te-editor-document h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: var(--accent-blue); }
.te-editor-document h2 { font-size: 20px; font-weight: 600; margin-top: 16px; margin-bottom: 8px; }
.te-editor-document h3 { font-size: 16px; font-weight: 600; margin-top: 12px; margin-bottom: 6px; }
.te-editor-document blockquote { border-left: 3px solid var(--accent-blue); padding-left: 12px; margin: 12px 0; color: var(--text-muted); font-style: italic; }
.te-editor-document pre { background: rgba(0, 0, 0, 0.3); padding: 12px; border-radius: 6px; font-family: var(--font-mono); font-size: 13px; }
.te-editor-document ul, .te-editor-document ol { padding-left: 20px; margin: 10px 0; }

.te-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  background: var(--bg-bar);
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
}

.te-status-left { display: flex; align-items: center; gap: 6px; }
.te-status-right { display: flex; align-items: center; gap: 8px; }

.te-open-drawer {
  position: absolute;
  top: 48px; left: 16px; right: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
  backdrop-filter: blur(20px);
  max-height: 280px;
  overflow-y: auto;
}

.te-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 13px;
}

.te-drawer-close { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; }

.te-drawer-list { padding: 8px; }

.te-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.te-drawer-item:hover { background: rgba(56, 189, 248, 0.15); }
.te-drawer-item i { font-size: 20px; color: var(--accent-blue); }
.te-drawer-info strong { display: block; font-size: 13px; color: #fff; }
.te-drawer-info small { font-size: 11px; color: var(--text-muted); }

/* Luxury Client Logo Project Cards */
.luxury-logo-card {
  background: var(--bg-card, #151c28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.luxury-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.15);
}

.prj-logo-wrapper {
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: background 0.2s;
}

.luxury-logo-card:hover .prj-logo-wrapper {
  background: rgba(255, 255, 255, 0.08);
}

.prj-client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.prj-client-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue, #0ea5e9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.prj-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.prj-short-desc {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prj-btn-view {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.2s;
  text-align: center;
}

.luxury-logo-card:hover .prj-btn-view {
  background: var(--accent-blue, #0ea5e9);
  color: #000000;
  border-color: var(--accent-blue, #0ea5e9);
}

/* ==========================================================================
   macOS Finder Grid View & Works Tab Styling (Reference Model)
   ========================================================================== */

.projects-app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-window, #0f172a);
  color: var(--text-main, #ffffff);
}

.projects-finder-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
  backdrop-filter: blur(20px);
}

.pf-path-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
}

.pf-path-sep {
  opacity: 0.4;
  font-size: 12px;
}

.pf-path-segment.active {
  color: #ffffff;
  font-weight: 700;
}

.pf-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pf-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.pf-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 12px;
  width: 140px;
  font-family: var(--font-sans);
}

.pf-view-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2px;
}

.pf-view-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.pf-view-btn.active {
  background: #0ea5e9;
  color: #000000;
}

.projects-app-header {
  padding: 16px 24px 8px 24px;
}

.projects-app-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.projects-app-header p {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

/* macOS Finder Icon Grid (Grid View matching reference photo) */
.mac-finder-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 24px 16px;
  padding: 20px 24px 30px 24px;
  justify-items: center;
  align-items: start;
  flex: 1;
  overflow-y: auto;
}

.mac-finder-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  width: 120px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.mac-finder-icon-card:hover {
  transform: translateY(-4px);
}

.mac-finder-squircle-icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.mac-finder-icon-card:hover .mac-finder-squircle-icon {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35), 0 12px 28px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.mac-finder-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.mac-finder-icon-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.25;
  word-break: break-word;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.mac-finder-icon-card:hover .mac-finder-icon-title {
  background: #0ea5e9;
  color: #000000;
  text-shadow: none;
}

.mac-finder-icon-sub {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Project Detail Window & High Contrast Dark Mode Buttons
   ========================================================================== */

.prj-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  outline: none;
}

.prj-action-btn.primary {
  background: #0ea5e9;
  color: #000000 !important;
  border: 1px solid #0284c7;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.prj-action-btn.primary:hover {
  background: #38bdf8;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.prj-action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.prj-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.prj-action-btn.disabled {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

/* Global Dark Mode Button Contrast Fixes across all apps */
button {
  color: inherit;
}

.f-btn, .nav-btn, .te-btn, .p-btn, .pos-opt-btn, .wall-cat-btn {
  color: var(--text-main, #ffffff);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.f-btn:hover, .nav-btn:hover, .te-btn:hover, .p-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.mail-send-btn, .btn-send, .btn-primary {
  background: #0ea5e9;
  color: #000000 !important;
  font-weight: 700;
  border: 1px solid #0284c7;
}

.mail-send-btn:hover, .btn-send:hover, .btn-primary:hover {
  background: #38bdf8;
  color: #000000 !important;
}

.add-wall-btn {
  background: #0ea5e9;
  color: #000000 !important;
  font-weight: 700;
}

.login-btn {
  background: #0ea5e9;
  color: #000000 !important;
  font-weight: 800;
}

.btn-skip-boot {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-skip-boot:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   Fullscreen Prompt Banner
   ========================================================================== */

.fullscreen-prompt-banner {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(14, 165, 233, 0.5);
  backdrop-filter: blur(24px);
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(14, 165, 233, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: bannerSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.fs-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-banner-icon {
  font-size: 16px;
  color: #0ea5e9;
  animation: pulseFS 2s infinite;
}

@keyframes pulseFS {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.fs-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-btn-primary {
  background: #0ea5e9;
  color: #000000 !important;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fs-btn-primary:hover {
  background: #38bdf8;
  transform: scale(1.04);
}

.fs-btn-ghost {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 50%;
  transition: color 0.2s;
}

.fs-btn-ghost:hover {
  color: #ffffff;
}



