/* Design Tokens & Theme Variables */
:root {
  --bg-primary: #fbf9f5;
  --bg-secondary: #ffffff;
  --text-primary: #2c3e50;
  --text-muted: #5a6b7c;
  --color-primary: #2b6cb0;
  --color-primary-hover: #1e4e8c;
  --color-success: #2f855a;
  --color-success-hover: #225c3e;
  --color-warning: #c05621;
  --border-color: #cbd5e0;
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-speed: 0.2s;
  --base-font-size: 19px;
}

/* Adjust font size state dynamically */
body.font-normal {
  --base-font-size: 19px;
}
body.font-large {
  --base-font-size: 24px;
}
body.font-xlarge {
  --base-font-size: 29px;
}

/* Global Styles - Use em/rem so everything scales with the body size */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-size: var(--base-font-size);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
header {
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo-section h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Big Accessible Buttons */
.btn {
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-speed) ease;
  min-height: 52px;
  min-width: 52px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.25);
  outline: none;
}

.btn-secondary {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #edf2f7;
  transform: translateY(-2px);
  outline: none;
}

.btn-success {
  background-color: var(--color-success);
  color: white;
}

.btn-success:hover, .btn-success:focus {
  background-color: var(--color-success-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 133, 90, 0.25);
  outline: none;
}

.btn-voice {
  background-color: #FAF5FF;
  border: 2px solid #D6BCFA;
  color: #6B46C1;
}
.btn-voice:hover, .btn-voice:focus {
  background-color: #EBF8FF;
  border-color: #90CDF4;
  color: #2B6CB0;
}
.btn-voice.speaking {
  animation: pulse-purple 1.5s infinite;
  background-color: #EBF8FF;
}

@keyframes pulse-purple {
  0% { box-shadow: 0 0 0 0 rgba(107, 70, 193, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(107, 70, 193, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 70, 193, 0); }
}

.size-btn-group {
  display: flex;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}
.size-btn-group button {
  border: none;
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  border-right: 1px solid var(--border-color);
  min-height: 52px;
  font-size: 0.9em;
}
.size-btn-group button:last-child {
  border-right: none;
}
.size-btn-group button.active {
  background: var(--color-primary);
  color: white;
}

/* Layout container */
.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 76px);
  overflow: hidden;
}

/* Sidebar navigation */
.sidebar {
  width: 320px;
  background-color: var(--bg-secondary);
  border-right: 2px solid var(--border-color);
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar h2 {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.lesson-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lesson-card {
  padding: 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  width: 100%;
}
.lesson-card:hover {
  border-color: var(--color-primary);
  background-color: #f0f7ff;
  transform: translateX(4px);
}
.lesson-card.active {
  border-color: var(--color-primary);
  background-color: #ebf8ff;
  box-shadow: 0 4px 6px -1px rgba(66, 153, 225, 0.1);
}
.lesson-card.completed .lesson-title::after {
  content: " ✓";
  color: var(--color-success);
  font-weight: bold;
}

.lesson-number {
  font-size: 0.75em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}
.lesson-title {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--text-primary);
}

/* Main Content panel */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.instruction-panel {
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  padding: 1.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.instruction-panel h2 {
  font-size: 1.35em;
  color: var(--color-primary);
}

.instruction-text {
  font-size: 1em;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Simulator Playground Container */
.playground {
  flex: 1;
  padding: 1.5rem;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Simulator Window General scaling rules */
.wordpad-window, .explorer-window, .edge-window, .email-window, .mouse-game-window, .desktop-mock-window {
  font-size: 0.75em; /* Scale mockup font size with general accessibility slider */
}

/* WordPad Mock Simulator */
.wordpad-window {
  width: 95%;
  max-width: 900px;
  height: 480px;
  background-color: #f3f3f3;
  border: 1px solid #707070;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wordpad-titlebar {
  background: linear-gradient(to bottom, #ffffff, #e1e1e1);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #b5b5b5;
  user-select: none;
}

.wordpad-title {
  font-weight: normal;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordpad-controls {
  display: flex;
  gap: 15px;
}

.wordpad-ribbon {
  background: #f5f6f7;
  border-bottom: 1px solid #dadada;
  display: flex;
  flex-direction: column;
}

.ribbon-tabs {
  display: flex;
  padding-left: 10px;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}

.ribbon-tab {
  padding: 6px 15px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
}
.ribbon-tab.active {
  background: #f5f6f7;
  border-color: #dadada;
  border-bottom: 1px solid #f5f6f7;
  margin-bottom: -1px;
  font-weight: bold;
  color: #0078d7;
}

.ribbon-toolbar {
  padding: 8px;
  display: flex;
  gap: 15px;
  background: #f5f6f7;
  align-items: center;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid #dadada;
  padding-right: 15px;
}
.toolbar-group:last-child {
  border-right: none;
}

.wordpad-btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
  font-weight: bold;
  font-size: 1.1em;
}
.wordpad-btn:hover {
  background-color: #e5f1fb;
  border-color: #b8d6f3;
}
.wordpad-btn.active {
  background-color: #cce4f7;
  border-color: #0078d7;
}
.wordpad-btn.pulse-target {
  animation: pulse-highlight 1.5s infinite;
  border: 2px solid var(--color-warning);
}

@keyframes pulse-highlight {
  0% { box-shadow: 0 0 0 0 rgba(192, 86, 33, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(192, 86, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 86, 33, 0); }
}

.wordpad-textarea {
  flex: 1;
  background-color: #e2e8f0;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.wordpad-paper {
  background-color: #ffffff;
  width: 100%;
  max-width: 650px;
  min-height: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 30px;
  outline: none;
  font-family: Calibri, sans-serif;
  font-size: 1.15em;
  line-height: 1.4;
  color: #000;
  cursor: text;
}
.wordpad-paper[placeholder]:empty:before {
  content: attr(placeholder);
  color: #888888;
}

/* File Explorer Windows 11 Mock */
.explorer-window {
  width: 95%;
  max-width: 950px;
  height: 480px;
  background-color: #ffffff;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.explorer-titlebar {
  background-color: #f3f3f3;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5e5;
  justify-content: space-between;
}

.explorer-tabs {
  display: flex;
  gap: 8px;
}
.explorer-tab {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-bottom: none;
  padding: 6px 16px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.explorer-toolbar {
  height: 52px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.explorer-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3em;
  user-select: none;
  border: 1px solid transparent;
}
.explorer-icon-btn:hover {
  background-color: #f3f3f3;
  border-color: #ccc;
}
.explorer-icon-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.explorer-icon-btn.pulse-target {
  animation: pulse-highlight 1.5s infinite;
  border: 2px solid var(--color-warning);
}

.explorer-address-bar-row {
  height: 38px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.explorer-address-input {
  flex: 1;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  padding: 4px 8px;
  background-color: #f9f9f9;
}

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

.explorer-sidebar {
  width: 220px;
  background-color: #f3f3f3;
  border-right: 1px solid #e5e5e5;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.explorer-side-item {
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.explorer-side-item:hover {
  background-color: #e5e5e5;
}
.explorer-side-item.active {
  background-color: #eaeaea;
  font-weight: bold;
}
.explorer-side-item.highlight-target {
  border: 2px dashed var(--color-warning);
  background: #fffaf0;
  animation: pulse-ring 1.5s infinite;
}

.explorer-content {
  flex: 1;
  background-color: #ffffff;
  padding: 16px;
  overflow-y: auto;
  position: relative;
}

.explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
}

.explorer-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.explorer-file:hover {
  background-color: #e5f1fb;
  border-color: #b8d6f3;
}
.explorer-file.selected {
  background-color: #cce4f7;
  border-color: #99c9ef;
}
.explorer-file-icon {
  font-size: 2.8em;
  margin-bottom: 6px;
}
.explorer-file-name {
  font-size: 1.05em;
  word-break: break-word;
  max-width: 100%;
}
.explorer-file-name input {
  font-size: 1em;
  width: 90px;
  text-align: center;
  border: 1px solid #0078d7;
  outline: none;
  padding: 2px;
}

/* Windows 11 Style Context Menu */
.context-menu {
  position: absolute;
  background: #ffffff;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  width: 200px;
  display: none;
  z-index: 1000;
  padding: 6px;
}

.context-menu-icons {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 6px;
}
.context-menu-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2em;
}
.context-menu-icon-btn:hover {
  background-color: #f3f3f3;
}
.context-menu-icon-btn.pulse-target {
  animation: pulse-highlight 1.5s infinite;
  border: 1.5px solid var(--color-warning);
}

.context-menu-item {
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.context-menu-item:hover {
  background-color: #f3f3f3;
}

/* Web Browser Edge Mock */
.edge-window {
  width: 95%;
  max-width: 950px;
  height: 480px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.edge-header {
  background-color: #eaeaea;
  border-bottom: 1px solid #d2d2d2;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edge-tabs {
  display: flex;
  gap: 4px;
  padding-left: 8px;
}
.edge-tab {
  background-color: #ffffff;
  padding: 6px 16px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border: 1px solid #ccc;
  border-bottom: none;
}

.edge-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edge-address-bar {
  flex: 1;
  border: 2px solid #ccc;
  border-radius: 20px;
  padding: 6px 16px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.edge-address-bar.pulse-target {
  animation: pulse-ring 1.5s infinite;
  border-color: var(--color-warning);
}
.edge-address-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1.1em;
}

.edge-content {
  flex: 1;
  background-color: #f9f9f9;
  overflow-y: auto;
  padding: 20px;
}

.search-engine-home {
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.search-logo {
  font-size: 2.5em;
  font-weight: 800;
  background: linear-gradient(45deg, #0078d7, #00bcf2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.search-bar-box {
  display: flex;
  border: 2px solid #ccc;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.search-bar-box.pulse-target {
  animation: pulse-ring 1.5s infinite;
  border-color: var(--color-warning);
}
.search-bar-box input {
  flex: 1;
  border: none;
  padding: 10px 20px;
  outline: none;
  font-size: 1.1em;
}
.search-bar-box button {
  border: none;
  background: #0078d7;
  color: white;
  padding: 0 20px;
  font-weight: bold;
  cursor: pointer;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 650px;
  margin: 0 auto;
}
.result-item {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.result-url {
  font-size: 0.9em;
  color: #006621;
  margin-bottom: 4px;
}
.result-title {
  font-size: 1.15em;
  color: #1a0dab;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 6px;
}
.result-title:hover {
  text-decoration: underline;
}
.result-snippet {
  font-size: 1em;
  color: #545454;
}

/* Email Mock Simulator */
.email-window {
  width: 95%;
  max-width: 900px;
  height: 480px;
  background-color: #ffffff;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.email-header {
  height: 56px;
  background-color: #f3f3f3;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.email-logo {
  font-weight: bold;
  color: #d93025;
  font-size: 1.25em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.email-sidebar {
  width: 200px;
  background-color: #f9f9f9;
  border-right: 1px solid #e5e5e5;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-compose-btn {
  background-color: #c2e7ff;
  color: #001d35;
  border: none;
  padding: 12px 24px;
  border-radius: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 1.05em;
}
.email-compose-btn:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  background-color: #b3dbf5;
}

.email-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 16px;
  cursor: pointer;
}
.email-nav-item.active {
  background-color: #e8f0fe;
  color: #1967d2;
  font-weight: bold;
}

.email-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.email-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}
.email-list-item:hover {
  background-color: #f5f5f5;
}
.email-list-item.unread {
  font-weight: bold;
}
.email-item-sender {
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-item-subject {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal Compose View */
.email-compose-box {
  width: 80%;
  max-width: 500px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 0;
  right: 40px;
  z-index: 10;
}
.compose-header {
  background-color: #202124;
  color: white;
  padding: 10px 16px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.compose-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compose-input {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 0;
  outline: none;
}
.compose-textarea {
  border: none;
  min-height: 120px;
  outline: none;
  resize: none;
  font-family: inherit;
}
.compose-footer {
  padding: 8px 16px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* File Save Dialog Simulator overlay */
.file-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.file-dialog {
  width: 550px;
  background: white;
  border: 1px solid #707070;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.file-dialog-header {
  background-color: #f3f3f3;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
}

.file-dialog-container {
  display: flex;
  height: 250px;
}

.file-dialog-sidebar {
  width: 160px;
  background: #f3f3f3;
  border-right: 1px solid #ccc;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-dialog-side-item {
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.file-dialog-side-item:hover {
  background-color: #e5e5e5;
}
.file-dialog-side-item.active {
  background-color: #cce4f7;
  font-weight: bold;
}
.file-dialog-side-item.highlight-target {
  animation: pulse-ring 1.5s infinite;
  border: 2px dashed var(--color-warning);
}

.file-dialog-content {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: white;
}

.file-dialog-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #ccc;
}

.dialog-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dialog-row label {
  width: 80px;
  text-align: right;
}
.dialog-row input {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.file-dialog-footer {
  padding: 12px 16px;
  background: #f3f3f3;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #ccc;
}

/* Mouse Clicking Game styles */
.mouse-game-window {
  width: 95%;
  max-width: 800px;
  height: 480px;
  background-color: #e2e8f0;
  border: 2px solid #718096;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.mouse-game-scorebar {
  background-color: #4a5568;
  color: white;
  padding: 8px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}
.mouse-game-board {
  flex: 1;
  position: relative;
  background-color: #edf2f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-balloon {
  position: absolute;
  width: 70px;
  height: 85px;
  background-color: #e53e3e;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  cursor: pointer;
  animation: balloon-wobble 2s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  box-shadow: inset -6px -6px 12px rgba(0,0,0,0.15);
}
.game-balloon.blue {
  background-color: #3182ce;
}
.game-balloon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 31px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid inherit;
}
@keyframes balloon-wobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
.game-chest {
  font-size: 5rem;
  cursor: pointer;
  transition: transform 0.1s ease;
  user-select: none;
}
.game-chest:active {
  transform: scale(0.95);
}
.game-chest.pulse-target {
  animation: pulse-ring 1.5s infinite;
}

/* Window Management desktop styles */
.desktop-mock-window {
  width: 95%;
  max-width: 900px;
  height: 480px;
  background-color: #2b6cb0; /* Windows Blue */
  background-image: radial-gradient(circle, #3182ce, #2b6cb0);
  border: 3px solid #1a202c;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.desktop-workspace {
  flex: 1;
  position: relative;
  padding: 20px;
}
.desktop-win {
  width: 350px;
  height: 220px;
  background: white;
  border: 1px solid #718096;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: absolute;
  top: 40px;
  left: 100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.desktop-win.maximized {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 0;
}
.desktop-win-titlebar {
  background: #edf2f7;
  padding: 6px 12px;
  border-bottom: 1px solid #cbd5e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}
.titlebar-controls {
  display: flex;
  gap: 8px;
}
.titlebar-ctrl-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid transparent;
}
.titlebar-ctrl-btn:hover {
  background-color: #cbd5e0;
}
.titlebar-ctrl-btn.btn-close:hover {
  background-color: #e53e3e;
  color: white;
}
.titlebar-ctrl-btn.pulse-target {
  animation: pulse-highlight 1.5s infinite;
  border-color: var(--color-warning);
}
.desktop-taskbar {
  height: 48px;
  background-color: rgba(26, 32, 44, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}
.taskbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background-color: rgba(255,255,255,0.1);
  transition: all 0.2s;
  position: relative;
}
.taskbar-icon:hover {
  background-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.taskbar-icon.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  width: 8px;
  height: 3px;
  background-color: #3182ce;
  border-radius: 2px;
}
.taskbar-icon.pulse-target {
  animation: pulse-ring 1.5s infinite;
  background-color: rgba(221, 107, 32, 0.4);
}

/* Digital Safety mock scareware styling */
.scam-window {
  width: 480px;
  background-color: #fffff0;
  border: 4px solid #e53e3e;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: shake 0.5s infinite alternate;
}
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  100% { transform: translate(-1px, -2px) rotate(-0.5deg); }
}
.scam-title {
  background-color: #e53e3e;
  color: white;
  padding: 10px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scam-close-btn {
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: bold;
  border: 2px solid white;
}
.scam-close-btn.pulse-target {
  animation: pulse-highlight 1s infinite;
  border-color: #ecc94b;
}

/* Celebrate Success Badge */
.success-badge-container {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 4px solid var(--color-success);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.success-badge-title {
  font-size: 1.6em;
  color: var(--color-success);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.success-badge-desc {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.success-badge-icon {
  font-size: 3.5em;
  color: #ecc94b;
  margin-bottom: 1rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Interactive elements highlights */
.tour-hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(229, 62, 62, 0.6);
  border: 2px solid white;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.3);
  cursor: pointer;
  animation: pulse-ring 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

/* General Layout Rules & Responsiveness */
@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--border-color);
  }
}
