/* Windows Vista Aero Theme for Skulltrail.com */

/* Fonts - Segoe UI is Vista's signature */
@font-face {
  font-family: "Segoe UI";
  src: local("Segoe UI"), local("SegoeUI");
  font-weight: 400;
}

@font-face {
  font-family: "Segoe UI";
  src: local("Segoe UI Semibold"), local("SegoeUI-Semibold");
  font-weight: 600;
}

@font-face {
  font-family: "Segoe UI";
  src: local("Segoe UI Bold"), local("SegoeUI-Bold");
  font-weight: 700;
}

/* CSS Variables for Vista Aero */
:root {
  /* Glass colors */
  --glass-bg: rgba(0, 0, 0, 0.45);
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-border-dark: rgba(0, 0, 0, 0.5);
  --glass-blur: 20px;

  /* Title bar gradient */
  --titlebar-start: #1a5799;
  --titlebar-mid: #3a8bc9;
  --titlebar-end: #1a5799;
  --titlebar-inactive: #6b8ba8;

  /* Sidebar blue */
  --sidebar-bg: linear-gradient(180deg, #0a246a 0%, #0d3c9e 50%, #0a246a 100%);
  --sidebar-text: #fff;
  --sidebar-link: #a8d4ff;

  /* Window content */
  --content-bg: #f1f1f1;
  --content-text: #1e1e1e;
  --content-border: #868686;

  /* Taskbar */
  --taskbar-bg: rgba(16, 20, 28, 0.75);
  --taskbar-border: rgba(255, 255, 255, 0.1);

  /* Accent colors */
  --accent-blue: #0066cc;
  --accent-cyan: #00b4ff;
  --link-color: #0066cc;

  /* Shadows */
  --window-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --button-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 12px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--content-text);
  background: #000;
}

body {
  /* Intel Skulltrail themed wallpaper - dark tech aesthetic */
  background:
    /* Subtle grid pattern */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(0, 100, 180, 0.03) 50px,
      rgba(0, 100, 180, 0.03) 51px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(0, 100, 180, 0.03) 50px,
      rgba(0, 100, 180, 0.03) 51px
    ),
    /* Circuit-like accent lines */
    linear-gradient(
        135deg,
        transparent 40%,
        rgba(0, 150, 255, 0.05) 40%,
        rgba(0, 150, 255, 0.05) 40.5%,
        transparent 40.5%
      ),
    linear-gradient(
      225deg,
      transparent 60%,
      rgba(0, 150, 255, 0.05) 60%,
      rgba(0, 150, 255, 0.05) 60.5%,
      transparent 60.5%
    ),
    /* Glowing orbs - Intel blue */
    radial-gradient(ellipse at 15% 25%, rgba(0, 100, 200, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 75%, rgba(0, 80, 160, 0.2) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 60, 120, 0.15) 0%, transparent 60%),
    /* Base gradient - dark blue to near-black */
    linear-gradient(160deg, #0d1a2d 0%, #050a12 50%, #020508 100%);
  background-attachment: fixed;
}

/* Desktop wallpaper container */
.desktop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px;
  background-image: url("images/wallpaper.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Desktop icons */
.desktop-icons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 16px;
  height: 100%;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
  padding: 6px 4px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.1s;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  outline: 1px solid rgba(255, 255, 255, 0.3);
}

.desktop-icon:active,
.desktop-icon.selected {
  background: rgba(80, 150, 220, 0.4);
  outline: 1px solid rgba(100, 180, 255, 0.6);
}

.desktop-icon img,
.desktop-icon svg {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.desktop-icon span {
  color: #fff;
  font-size: 11px;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0 0 4px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
  word-wrap: break-word;
  max-width: 70px;
}

/* === VISTA AERO WINDOW === */
.vista-window {
  position: absolute;
  display: none;
  flex-direction: column;
  min-width: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--window-shadow);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.vista-window.open {
  display: flex;
}

/* Glass frame */
.vista-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  z-index: -1;
}

/* Window glass inner glow */
.vista-window::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
  border-radius: 7px 7px 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Title bar */
.vista-titlebar {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 8px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  cursor: default;
  position: relative;
  z-index: 10;
  user-select: none;
}

.vista-titlebar-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
}

.vista-titlebar-text {
  flex: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.8),
    1px 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Window control buttons */
.vista-controls {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.vista-btn {
  width: 28px;
  height: 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.vista-btn-minimize,
.vista-btn-maximize {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vista-btn-minimize:hover,
.vista-btn-maximize:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.vista-btn-close {
  background: linear-gradient(180deg, #c75050 0%, #b33a3a 45%, #a82a2a 55%, #8c1c1c 100%);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.vista-btn-close:hover {
  background: linear-gradient(180deg, #e06060 0%, #c94545 45%, #b93535 55%, #a02525 100%);
}

.vista-btn svg {
  width: 10px;
  height: 10px;
  fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* Navigation bar (Explorer style) */
.vista-navbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  border-bottom: 1px solid #c0c0c0;
}

.vista-nav-buttons {
  display: flex;
  gap: 4px;
}

.vista-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #6ebfff 0%, #1a7fd4 40%, #0066b8 60%, #004c8c 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.1s;
}

.vista-nav-btn:hover {
  background: linear-gradient(180deg, #8ad0ff 0%, #2a8fe4 40%, #1076c8 60%, #005c9c 100%);
}

.vista-nav-btn:disabled {
  background: linear-gradient(180deg, #d0d0d0 0%, #b0b0b0 40%, #a0a0a0 60%, #909090 100%);
  cursor: default;
}

.vista-nav-btn svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* Address bar / breadcrumb */
.vista-addressbar {
  flex: 1;
  display: flex;
  align-items: center;
  height: 26px;
  background: #fff;
  border: 1px solid #a0a0a0;
  border-radius: 2px;
  padding: 0 8px;
  font-size: 11px;
  color: #333;
}

.vista-addressbar-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.vista-breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
}

.vista-breadcrumb span {
  color: #333;
}

.vista-breadcrumb-sep {
  color: #888;
  margin: 0 2px;
}

/* Search box */
.vista-searchbox {
  display: flex;
  align-items: center;
  width: 180px;
  height: 26px;
  background: #fff;
  border: 1px solid #a0a0a0;
  border-radius: 2px;
  padding: 0 8px;
}

.vista-searchbox input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 11px;
  font-family: inherit;
  background: transparent;
}

.vista-searchbox svg {
  width: 14px;
  height: 14px;
  fill: #666;
}

/* Window body with sidebar */
.vista-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Blue sidebar (Control Panel / Explorer style) */
.vista-sidebar {
  width: 200px;
  background: var(--sidebar-bg);
  padding: 16px 12px;
  color: var(--sidebar-text);
  flex-shrink: 0;
  overflow-y: auto;
}

.vista-sidebar-section {
  margin-bottom: 20px;
}

.vista-sidebar-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.vista-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  margin: 2px 0;
  color: var(--sidebar-link);
  text-decoration: none;
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s;
}

.vista-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vista-sidebar-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Main content area */
.vista-content {
  flex: 1;
  background: var(--content-bg);
  padding: 16px 20px;
  overflow-y: auto;
}

.vista-content h1 {
  font-size: 18px;
  font-weight: 400;
  color: #003399;
  margin-bottom: 16px;
}

.vista-content h2 {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid #d0d0d0;
}

.vista-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* System info layout */
.system-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 11px;
  line-height: 1.8;
}

.system-info dt {
  color: #555;
  white-space: nowrap;
}

.system-info dd {
  color: #111;
}

.system-info .rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.system-info .rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #4a90d9 0%, #1e5aa8 100%);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.system-info .rating-link {
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
}

/* Skulltrail logo section in system properties */
.system-logo {
  position: absolute;
  right: 20px;
  top: 120px;
  width: 180px;
  text-align: center;
}

.system-logo svg,
.system-logo img {
  width: 140px;
  height: auto;
  margin-bottom: 8px;
}

.system-logo-text {
  font-size: 10px;
  color: #666;
}

/* Edition info at top */
.edition-info {
  margin-bottom: 20px;
}

.edition-title {
  font-size: 20px;
  font-weight: 300;
  color: #333;
  margin-bottom: 4px;
}

.edition-subtitle {
  font-size: 11px;
  color: #555;
  margin-bottom: 2px;
}

.edition-link {
  font-size: 11px;
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
}

/* Folder grid for Explorer */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 16px;
  padding: 8px;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background 0.1s;
}

.folder-item:hover {
  background: rgba(0, 102, 204, 0.1);
}

.folder-item.selected {
  background: rgba(0, 102, 204, 0.2);
  outline: 1px solid var(--accent-blue);
}

.folder-item svg,
.folder-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

.folder-item span {
  font-size: 11px;
  color: #333;
  line-height: 1.3;
  word-wrap: break-word;
}

/* Simple content windows (About, Contact, etc.) */
.vista-simple-content {
  padding: 20px;
  background: var(--content-bg);
  font-size: 12px;
  line-height: 1.7;
}

.vista-simple-content p {
  margin-bottom: 12px;
}

.vista-simple-content a {
  color: var(--link-color);
  text-decoration: underline;
}

.vista-simple-content a:hover {
  color: #0055aa;
}

/* === TASKBAR === */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  display: flex;
  align-items: center;
  background: var(--taskbar-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--taskbar-border);
  z-index: 9999;
  padding: 0 4px;
}

/* Inner glow on taskbar */
.taskbar::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.15) 80%,
    transparent 100%
  );
}

/* Start orb */
.start-orb {
  width: 54px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  margin-left: -4px;
}

.start-orb-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #3a9dff 0%, #0066cc 40%, #004499 70%, #003377 100%);
  box-shadow:
    0 0 8px rgba(0, 150, 255, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.start-orb-btn:hover {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, #5ab0ff 0%, #1a7de0 40%, #0055b3 70%, #004499 100%);
  box-shadow:
    0 0 16px rgba(0, 180, 255, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

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

.start-orb-btn svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Quick launch area */
.quick-launch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  height: 28px;
}

.quick-launch-btn {
  width: 24px;
  height: 24px;
  padding: 4px;
  background: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}

.quick-launch-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.quick-launch-btn svg,
.quick-launch-btn img {
  width: 16px;
  height: 16px;
}

/* Taskbar window buttons */
.taskbar-windows {
  display: flex;
  flex: 1;
  gap: 3px;
  padding: 0 8px;
  overflow-x: auto;
}

.taskbar-window-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  min-width: 140px;
  max-width: 200px;
  padding: 0 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s;
}

.taskbar-window-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.taskbar-window-btn.active {
  background: linear-gradient(
    180deg,
    rgba(60, 140, 220, 0.4) 0%,
    rgba(40, 120, 200, 0.3) 45%,
    rgba(20, 100, 180, 0.3) 55%,
    rgba(0, 80, 160, 0.4) 100%
  );
  border-color: rgba(100, 180, 255, 0.4);
}

.taskbar-window-btn img,
.taskbar-window-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.taskbar-window-btn span {
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* System tray */
.system-tray {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tray-icon {
  width: 16px;
  height: 16px;
  padding: 2px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.1s;
}

.tray-icon:hover {
  opacity: 1;
}

.tray-clock {
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  padding-left: 8px;
  min-width: 60px;
  text-align: center;
}

/* Notifications popup */
.notifications-popup {
  position: absolute;
  bottom: 50px;
  right: 20px;
  width: 280px;
  background: rgba(255, 255, 240, 0.98);
  border: 1px solid #c0c0a0;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  padding: 12px;
  display: none;
  z-index: 10000;
}

.notifications-popup.open {
  display: block;
}

.notifications-popup h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d0d0c0;
}

.notification-item {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0d0;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 11px;
  display: block;
}

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

/* Window z-index management */
.vista-window {
  z-index: 100;
}
.vista-window.focused {
  z-index: 200;
}

/* Animations */
@keyframes windowOpen {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.vista-window.open {
  animation: windowOpen 0.15s ease-out;
}

/* Vista-style scrollbar */
.vista-content::-webkit-scrollbar,
.vista-sidebar::-webkit-scrollbar {
  width: 17px;
}

.vista-content::-webkit-scrollbar-track,
.vista-sidebar::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-left: 1px solid #d0d0d0;
}

.vista-content::-webkit-scrollbar-thumb,
.vista-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #c8c8c8 0%, #b0b0b0 50%, #c8c8c8 100%);
  border: 1px solid #a0a0a0;
  border-radius: 2px;
}

.vista-content::-webkit-scrollbar-thumb:hover,
.vista-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #d0d0d0 0%, #b8b8b8 50%, #d0d0d0 100%);
}

/* Links in content */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Vista button style */
.vista-button {
  padding: 6px 20px;
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 45%, #d8d8d8 55%, #e0e0e0 100%);
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.1s;
}

.vista-button:hover {
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 45%, #e0e0e0 55%, #e8e8e8 100%);
  border-color: #0066cc;
}

.vista-button:active {
  background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 45%, #c0c0c0 55%, #d0d0d0 100%);
}

/* Hide elements by default */
.hidden {
  display: none !important;
}

/* === ACCESS DENIED DIALOG (Windows Style) === */
.access-denied-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.access-denied-overlay.open {
  display: flex;
}

.access-denied-dialog {
  width: 400px;
  background: #f0f0f0;
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  animation: dialogFadeIn 0.15s ease-out;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Title bar */
.access-denied-titlebar {
  background: linear-gradient(180deg, #4a90d9 0%, #2a70c0 100%);
  padding: 8px 12px;
  border-bottom: 1px solid #1a50a0;
}

.access-denied-titlebar span {
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Dialog Body */
.access-denied-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #f0f0f0;
}

.access-denied-icon {
  flex-shrink: 0;
}

.access-denied-icon svg {
  width: 38px;
  height: 38px;
}

.access-denied-content {
  flex: 1;
  padding-top: 2px;
}

.access-denied-main {
  font-size: 12px;
  color: #000;
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 400;
}

.access-denied-sub {
  font-size: 12px;
  color: #444;
  line-height: 1.5;
}

/* Dialog Footer */
.access-denied-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 16px;
  background: #f0f0f0;
  border-top: 1px solid #d0d0d0;
}

.access-denied-btn {
  min-width: 75px;
  padding: 5px 16px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  background: linear-gradient(180deg, #f5f5f5 0%, #e5e5e5 50%, #d8d8d8 51%, #e8e8e8 100%);
  border: 1px solid #a0a0a0;
  color: #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.access-denied-btn:hover {
  background: linear-gradient(180deg, #e8f4fc 0%, #d0e8f8 50%, #b8d8f0 51%, #c8e0f4 100%);
  border-color: #6cacde;
}

.access-denied-btn:active {
  background: linear-gradient(180deg, #c0d8e8 0%, #b0c8d8 50%, #a0b8c8 51%, #b0c8d8 100%);
}

.access-denied-btn:focus {
  outline: none;
  border-color: #6cacde;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(108, 172, 222, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .vista-sidebar {
    width: 160px;
  }

  .system-logo {
    display: none;
  }
}

@media (max-width: 768px) {
  .vista-window {
    min-width: 95vw;
    max-width: 95vw;
    left: 2.5vw !important;
  }

  .vista-sidebar {
    display: none;
  }

  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

  /* Access denied dialog responsive */
  .access-denied-dialog {
    width: 90vw;
    max-width: 400px;
    margin: 16px;
  }
}
