* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --panel: #12121a;
  --panel-inner: #1a1a24;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --code-bg: #07070a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}


* {
  --sb-track-color: #232E33;
  --sb-thumb-color: #884552;
  --sb-size: 9px;
}

*::-webkit-scrollbar {
  width: var(--sb-size)
}

*::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
  
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  display: grid;
  grid-template-columns: 1fr 380px;
  flex: 1;
  overflow: hidden;
}

.preview-area {
  position: relative;
  overflow: hidden;
  background: url('https://cdn.prod.website-files.com/650b672b6d49343e2368aa57/655385c06b6ae4c1ecfd8d31_627453139b5c122bd14de312_WesCockx_Microsoft_FluentUI_15.jpeg') center/cover no-repeat;
}

.preview-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-container {
  background: var(--panel-inner);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  border: none;
  background: transparent;
}

.tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.preview-item { display: none; }
.preview-item.active { display: flex; align-items: center; justify-content: center; }

.sidebar {
  background: var(--panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px;
}

.sidebar-section {
  background: var(--panel-inner);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.control-row label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  min-width: 80px;
}

.control-row .val {
  font-family: Arial, sans-serif;
  font-weight: 100;
  font-size: 0.85rem;
  color: #fff;
  min-width: 50px;
  text-align: right;
  opacity: 0.8;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  flex: 1;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

input[type=color] {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 0;
}

.code-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.code-group {
  display: flex;
  flex-direction: column;
}

.code-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.code-box pre {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  color: #94a3b8;
  padding: 16px;
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
}

.copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

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

svg.hidden { display: none; }

.liquidGlass-wrapper {
  position: relative;
  display: flex;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  text-decoration: none;
}

.liquidGlass-effect {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: url(#glass-distortion);
}

.liquidGlass-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.liquidGlass-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.liquidGlass-content {
  position: relative;
  z-index: 3;
  color: #000;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#preview-div .liquidGlass-wrapper { width: 300px; height: 180px; align-items: center; justify-content: center; }
#preview-button .liquidGlass-wrapper { 
    display: inline-flex;
    min-width: 200px; 
    padding: 18px 48px; 
    border: none; 
    cursor: pointer; 
    justify-content: center; 
}
#preview-button .liquidGlass-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#preview-input .liquidGlass-wrapper { width: 340px; height: 60px; align-items: center; padding: 0 24px; }

#preview-input input {
  background: transparent; border: none; outline: none; font-size: 1rem; font-weight: 600; width: 100%;
}