/* Created by Yezid — TwinVault */
/* Resonant TwinVault Design Style */
:root {
  --font-family: 'Outfit', sans-serif;
  
  /* TwinVault Minimal Light Palette */
  --bg-app: #fafafa;
  --bg-sidebar: #ffffff;
  --border-color: #e5e5e7;
  --text-primary: #1c1c1e;
  --text-muted: #8e8e93;
  --accent-color: #000000;
  
  --canvas-grid-color: rgba(0, 0, 0, 0.03);
  --node-bg: #ffffff;
  --node-border: rgba(0, 0, 0, 0.06);
  --node-shadow: rgba(0, 0, 0, 0.03);
  
  --danger-color: #ff3b30;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

.monospaced {
  font-family: 'Courier New', Courier, monospace;
}

/* Layout Grid */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  width: 100vw;
  height: 100vh;
}

/* Sidebar styling */
.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand h1 {
  font-weight: 100;
  font-size: 1.8rem;
  letter-spacing: 8px;
  margin-bottom: 6px;
}
.sub-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 60px;
  flex: 1;
}

.nav-item {
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  width: max-content;
  transition: color 0.3s, border-color 0.3s;
}
.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: #34c759;
  border-radius: 50%;
  animation: glowPulse 2s infinite alternate;
}
@keyframes glowPulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}
.status-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Main Content Area */
.main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Top bar status indicators */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-sidebar);
}
.tracking-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--text-primary);
  border-radius: 50%;
}
.date-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tab Panels */
.tab-panel {
  display: none;
  flex-direction: column;
  padding: 40px;
  flex: 1;
  overflow-y: auto;
}
.tab-panel.active {
  display: flex;
}

.tab-intro {
  margin-bottom: 32px;
  max-width: 700px;
}
.tab-intro h2 {
  font-weight: 200;
  font-size: 2.2rem;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.thin-text {
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Infinite Canvas Workspace */
.canvas-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.canvas-btn {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.canvas-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-sidebar);
}
.canvas-btn.danger-btn {
  color: var(--danger-color);
  border-color: rgba(255, 59, 48, 0.2);
}
.canvas-btn.danger-btn:hover {
  background-color: var(--danger-color);
  color: #fff;
}

.canvas-grid {
  flex: 1;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  cursor: crosshair;
  min-height: 400px;
}

/* Drag Nodes styling */
.canvas-node {
  position: absolute;
  width: 280px;
  background-color: var(--node-bg);
  border: 1px solid var(--node-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--node-shadow);
  padding: 12px;
  cursor: move;
  transition: box-shadow 0.2s;
}
.canvas-node:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.node-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.node-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.node-close:hover {
  color: var(--danger-color);
}
.node-textarea {
  width: 100%;
  height: 90px;
  border: none;
  resize: none;
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  background: transparent;
  line-height: 1.4;
}
.node-textarea.code-area {
  font-size: 0.8rem;
  height: 120px;
  color: #0984e3;
}

/* Sandbox Monitor tab styling */
.sandbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sandbox-card {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
}
.sandbox-card.full-width {
  grid-column: 1 / 3;
}
.sandbox-card h3 {
  font-weight: 300;
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.sandbox-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.security-readout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.readout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}
.status-active {
  color: #34c759;
  font-weight: 600;
}

.hash-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hash-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.hash-name {
  font-weight: 600;
}
.hash-val {
  color: var(--text-muted);
}

/* Shredding Session UI and Animations */
.shredder-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}
.shred-btn-large {
  padding: 12px 32px;
  background-color: var(--text-primary);
  color: var(--bg-sidebar);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}
.shred-btn-large:hover {
  transform: translateY(-2px);
  background-color: var(--danger-color);
}
.shred-animation-container {
  position: relative;
  width: 220px;
  height: 140px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background-color: #fafafa;
}
.shredder-mouth {
  position: absolute;
  top: 50px;
  left: 10px;
  width: 200px;
  height: 8px;
  background-color: #1c1c1e;
  border-radius: 4px;
  z-index: 5;
}
.paper-feed {
  position: absolute;
  top: -40px;
  left: 20px;
  width: 180px;
  height: 90px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: feedPaper 2.2s forwards linear;
}

@keyframes feedPaper {
  0% { transform: translateY(0); }
  60% { transform: translateY(70px); opacity: 1; }
  100% { transform: translateY(90px); opacity: 0; }
}

.shred-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    #fafafa 10px,
    #fafafa 12px,
    #fff 12px,
    #fff 14px
  );
  display: none;
  animation: shredLinesEffect 2.2s forwards;
}

/* Privacy Charter / Manifesto styling */
.manifesto-card {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
}
.manifesto-para {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.opt-in-controls h3 {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 8px;
}
.sub-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.opt-row {
  margin-bottom: 14px;
}
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.checkbox-container input {
  width: 16px;
  height: 16px;
  accent-color: #000;
}
.checkbox-label {
  font-size: 0.9rem;
  font-weight: 300;
}

/* Responsive */
@media(max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .sidebar {
    height: auto;
    padding: 24px;
  }
  .nav-menu {
    flex-direction: row;
    margin-top: 24px;
    gap: 12px;
    overflow-x: auto;
  }
  .sandbox-grid {
    grid-template-columns: 1fr;
  }
  .sandbox-card.full-width {
    grid-column: 1 / -1;
  }
}
