/* ARTE COM BALÕES PRO — CSS DE DESIGN DE ELITE (MOTOR ANTI-GENÉRICO) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --bg-canvas: #07090e;
  --bg-surface-1: #0d111a;
  --bg-surface-2: #131926;
  --bg-surface-3: #1a2234;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-hairline-hover: rgba(255, 255, 255, 0.18);
  --border-gold: rgba(245, 158, 11, 0.3);
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-rose: #f43f5e;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --glass-bg: rgba(13, 17, 26, 0.75);
  --glass-blur: blur(16px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(244, 63, 94, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(13, 17, 26, 0.8) 100%);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(251, 191, 36, 0.2);
}

/* Micro-interações táteis */
.interactive-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.interactive-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hairline-hover);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5);
}

/* Custom Tabs */
.tab-btn {
  position: relative;
  transition: all 0.2s ease;
}
.tab-btn.active {
  color: #fbbf24;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* Custom Checkbox */
.custom-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.15s ease;
}
.custom-checkbox:checked {
  background: #10b981;
  border-color: #10b981;
}
.custom-checkbox:checked::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* Certificate Styles */
.cert-canvas-container {
  background: #fff;
  border: 12px solid #1a2234;
  outline: 2px solid #d97706;
  position: relative;
}

@media print {
  body * {
    visibility: hidden;
  }
  #printable-certificate, #printable-certificate * {
    visibility: visible;
  }
  #printable-certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
}
