
/* Disable dotted/slashed zeros across the entire website */
*, *::before, *::after, body, button, input, select, textarea {
  font-variant-numeric: normal !important;
  font-feature-settings: "zero" 0 !important;
}

.font-mono, [class*="font-mono"] {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-variant-numeric: normal !important;
  font-feature-settings: "zero" 0 !important;
}

/* ============================================================
   OBSIDIAN DESIGN SYSTEM — Danyal Tools
   Clean, minimal, premium dark developer tool UI
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-base:        #06080E;
  --bg-surface:     rgba(13, 17, 26, 0.75);
  --bg-elevated:    rgba(19, 26, 42, 0.8);
  --bg-overlay:     #1A2234;

  --text-primary:   #F1F5F9;
  --text-secondary: #8B9CB5;
  --text-muted:     #475569;

  --accent:         #6366F1;
  --accent-hover:   #818CF8;
  --accent-dim:     rgba(99,102,241,0.12);
  --accent-ring:    rgba(99,102,241,0.28);

  --success:        #10B981;
  --success-dim:    rgba(16,185,129,0.12);
  --warning:        #F59E0B;
  --warning-dim:    rgba(245,158,11,0.12);
  --danger:         #EF4444;
  --danger-dim:     rgba(239,68,68,0.12);
  --info:           #06B6D4;
  --info-dim:       rgba(6,182,212,0.10);

  --border:         rgba(255,255,255,0.06);
  --border-hover:   rgba(255,255,255,0.12);

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  --shadow-card:  0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.15);
  --shadow-modal: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);

  --ease: cubic-bezier(0.16,1,0.3,1);

  /* Legacy compat */
  --color-background:        var(--bg-base);
  --color-foreground:        var(--text-primary);
  --color-muted:             var(--bg-elevated);
  --color-muted-foreground:  var(--text-secondary);
  --color-accent:            var(--accent);
  --color-accent-light:      var(--accent-hover);
  --color-accent-foreground: #fff;
  --color-border:            var(--border);
  --color-border-light:      rgba(255,255,255,0.03);
  --color-input:             var(--bg-elevated);
  --color-card:              var(--bg-surface);
  --color-ring:              var(--accent);
  --color-secondary:         var(--bg-surface);
}

/* ── Global Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dot-grid ambient background + Rich Theme Gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(rgba(99,102,241,0.15) 1px, transparent 1px),
    linear-gradient(135deg, #070c1c 0%, #0e152e 40%, #2e286e 100%);
  background-size: 32px 32px, 100% 100%;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums;
}

main { overflow-x: hidden; max-width: 100%; min-width: 0; }

/* ── Scrollbars ─────────────────────────────────────────────── */
.custom-scroll::-webkit-scrollbar { width: 3px; height: 3px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-full);
}
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.3); }

/* ── Layout Shells ──────────────────────────────────────────── */
aside {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border);
}

header {
  background-color: rgba(13,17,23,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ── Sidebar Navigation ─────────────────────────────────────── */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  position: relative;
  text-transform: none;
  transition: color 0.15s, background 0.15s;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-btn.active {
  color: #A5B4FC;
  background: var(--accent-dim);
  font-weight: 600;
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: var(--accent);
  border-radius: 0 var(--r-full) var(--r-full) 0;
}

/* ── Inputs ─────────────────────────────────────────────────── */
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
select {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--r-md);
  padding: 0 14px;
  height: 40px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

textarea {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

select option, select optgroup { background-color: var(--bg-elevated); color: var(--text-primary); }
select option:disabled { color: var(--text-muted); }

/* ── Buttons ────────────────────────────────────────────────── */
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; font-family: inherit; }

/* Live dot pulse animation */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Toast animation */
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-item { animation: toastIn 0.22s var(--ease) forwards; }

/* Shimmer */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease);
}
.btn-shine:hover::after { left: 120%; }

/* Utility */
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.flex-fluid { min-width: 0; flex: 1 1 0%; }

/* bg-ambient-grid (body class compat) */
.bg-ambient-grid {
  background-image: 
    radial-gradient(rgba(99,102,241,0.15) 1px, transparent 1px),
    linear-gradient(135deg, #070c1c 0%, #0e152e 40%, #2e286e 100%);
  background-size: 32px 32px, 100% 100%;
  background-attachment: fixed;
}

/* Mobile */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
  .tab-content { min-height: calc(100vh - 56px); }
}


/* ============================================================
   ULTRA-MODERN GLASSMORPHISM & MICRO-INTERACTION EXTENSIONS
   ============================================================ */

.glass-panel {
  background: rgba(13, 17, 26, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.18);
  transform: translateY(-2px);
}

/* Button Active Press Effect */
button, a.btn {
  touch-action: manipulation;
}

button:active {
  transform: scale(0.97);
}

/* Custom Smooth Glowing Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 8, 14, 0.8);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}
