/* ==============================================================================
   AuraForge Panic Mode / Camouflage CSS
   Authentic Code IDE & Corporate Financial Spreadsheet Simulation
   ============================================================================== */

.camouflage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.camo-workspace {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   1. IDE CAMOUFLAGE (VS Code Style)
   ========================================== */
.camo-ide-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  color: #cccccc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.camo-ide-titlebar {
  height: 34px;
  background: #323233;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 12px;
  color: #cccccc;
  border-bottom: 1px solid #252526;
}

.camo-ide-dots {
  display: flex;
  gap: 7px;
}

.camo-ide-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.camo-ide-dots .dot.red { background: #ff5f56; }
.camo-ide-dots .dot.yellow { background: #ffbd2e; }
.camo-ide-dots .dot.green { background: #27c93f; }

.camo-ide-filename {
  font-size: 12px;
  color: #cccccc;
  font-weight: 400;
}

.camo-ide-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.camo-ide-activity-bar {
  width: 48px;
  background: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  gap: 16px;
}

.activity-icon {
  font-size: 18px;
  opacity: 0.6;
  cursor: pointer;
  padding: 4px;
}
.activity-icon.active {
  opacity: 1;
  border-left: 2px solid #ffffff;
}

.camo-ide-explorer {
  width: 220px;
  background: #252526;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e1e1e;
}

.explorer-header {
  font-size: 11px;
  font-weight: 700;
  color: #bbbbbb;
  padding: 10px 14px;
  letter-spacing: 0.5px;
}

.explorer-tree {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}

.tree-item {
  padding: 4px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cccccc;
}
.tree-item.indent {
  padding-left: 28px;
}
.tree-item.active {
  background: #37373d;
  color: #ffffff;
}
.tree-item:hover {
  background: #2a2d2e;
}

.camo-ide-editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  overflow: hidden;
}

.camo-ide-tabs {
  height: 35px;
  background: #252526;
  display: flex;
  border-bottom: 1px solid #1e1e1e;
}

.camo-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #2d2d2d;
  font-size: 12.5px;
  color: #969696;
  border-right: 1px solid #252526;
  cursor: pointer;
}
.camo-tab.active {
  background: #1e1e1e;
  color: #ffffff;
  border-top: 1px solid #007acc;
}
.tab-close {
  font-size: 10px;
  opacity: 0.6;
}

.camo-code-scroll {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 20px;
}

.camo-code-line {
  display: flex;
  padding: 0 16px;
}
.camo-code-line:hover {
  background: #282828;
}

.line-num {
  width: 38px;
  color: #858585;
  text-align: right;
  margin-right: 16px;
  user-select: none;
}

.code-kw { color: #c586c0; font-weight: 600; }
.code-fn { color: #dcdcaa; }
.code-class { color: #4ec9b0; }
.code-str { color: #ce9178; }
.code-doc { color: #6a9955; font-style: italic; }
.code-num { color: #b5cea8; }

.camo-terminal {
  height: 180px;
  background: #181818;
  border-top: 1px solid #333333;
  display: flex;
  flex-direction: column;
  font-family: Menlo, Monaco, "Courier New", monospace;
}

.terminal-header {
  height: 28px;
  background: #252526;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #cccccc;
  font-weight: 600;
}

.terminal-body {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 18px;
  color: #d4d4d4;
  overflow-y: auto;
}

.terminal-cursor {
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.camo-ide-statusbar {
  height: 24px;
  background: #007acc;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
}

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

/* ==========================================
   2. EXCEL SPREADSHEET CAMOUFLAGE
   ========================================== */
.camo-sheet-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #242424;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.camo-sheet-titlebar {
  height: 36px;
  background: #f3f3f3;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
}

.sheet-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.camo-sheet-ribbon {
  height: 34px;
  background: #107c41;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 18px;
}

.ribbon-tab {
  color: #ffffff;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 6px;
}
.ribbon-tab.active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font-weight: 600;
}

.camo-sheet-formula-bar {
  height: 32px;
  background: #f8f8f8;
  border-bottom: 1px solid #dcdcdc;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.cell-name {
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid #ccc;
  padding-right: 10px;
}

.formula-fx {
  font-style: italic;
  font-size: 12px;
  color: #666;
}

.formula-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: Consolas, Menlo, monospace;
  font-size: 12.5px;
  outline: none;
}

.camo-sheet-grid-wrapper {
  flex: 1;
  overflow: auto;
  background: #ffffff;
}

.camo-sheet-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
}

.camo-sheet-table th, .camo-sheet-table td {
  border: 1px solid #d4d4d4;
  padding: 6px 10px;
}

.camo-sheet-table thead th {
  background: #e6e6e6;
  font-weight: 600;
  text-align: center;
  color: #444;
}

.row-header {
  background: #e6e6e6;
  font-weight: 600;
  text-align: center;
  color: #444;
  width: 40px;
}

.sheet-badge {
  background: #dff6dd;
  color: #107c41;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.camo-sheet-footer {
  height: 30px;
  background: #f3f3f3;
  border-top: 1px solid #dcdcdc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
}

.sheet-tabs {
  display: flex;
  gap: 4px;
}

.sheet-tab {
  font-size: 11.5px;
  padding: 3px 10px;
  background: #e1e1e1;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
}
.sheet-tab.active {
  background: #ffffff;
  font-weight: 600;
  border: 1px solid #ccc;
  border-bottom: none;
}

.sheet-footer-info {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: #666;
}

/* ==========================================
   3. DISCREET EXIT MODAL
   ========================================== */
.camo-exit-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.camo-exit-box {
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 10px;
  padding: 22px;
  width: 380px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Floating Quick Return Pill on Camouflage Screen */
.camo-floating-pill {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 24, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  color: #c0c0c0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.camo-floating-pill:hover {
  background: rgba(30, 30, 38, 0.95);
  border-color: rgba(168, 85, 247, 0.4);
}

.camo-pill-btn {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
  transition: all 0.15s ease;
}

.camo-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.55);
}

