/* =====================================================================
   Quiz Corporativo Online - Base CSS (reset + variaveis compartilhadas)
   Sem dependencia de frameworks externos (Bootstrap/Tailwind) e sem
   build via Node - CSS puro, pronto para producao em qualquer cPanel.
   ===================================================================== */

:root {
    --qc-purple-950: #120821;
    --qc-purple-900: #1a0b2e;
    --qc-purple-800: #241141;
    --qc-purple-700: #331a5c;
    --qc-purple-600: #4a2585;
    --qc-purple-500: #6c2bd9;
    --qc-gold-400: #ffd84d;
    --qc-gold-500: #ffc700;
    --qc-gold-600: #e0a800;
    --qc-blue-500: #2dd4ff;
    --qc-green-500: #35d67e;
    --qc-red-500: #ff4d6d;
    --qc-gray-50: #f7f7fb;
    --qc-gray-100: #eeecf5;
    --qc-gray-200: #d9d6e8;
    --qc-gray-400: #9992b3;
    --qc-gray-600: #6a6285;
    --qc-gray-800: #372f52;
    --qc-white: #ffffff;
    --qc-radius-sm: 6px;
    --qc-radius: 12px;
    --qc-radius-lg: 20px;
    --qc-shadow: 0 10px 30px rgba(18, 8, 33, 0.18);
    --qc-shadow-sm: 0 2px 8px rgba(18, 8, 33, 0.10);
    --qc-font: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--qc-font);
    background: var(--qc-gray-50);
    color: var(--qc-purple-950);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--qc-purple-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Botoes */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .65em 1.3em; border-radius: var(--qc-radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--qc-purple-500); color: #fff; }
.btn-primary:hover { background: var(--qc-purple-600); }
.btn-gold { background: linear-gradient(135deg, var(--qc-gold-400), var(--qc-gold-600)); color: #241100; }
.btn-gold:hover { box-shadow: 0 4px 16px rgba(255, 199, 0, .4); }
.btn-outline { background: transparent; border-color: var(--qc-gray-200); color: var(--qc-purple-800); }
.btn-outline:hover { border-color: var(--qc-purple-500); color: var(--qc-purple-500); }
.btn-danger { background: var(--qc-red-500); color: #fff; }
.btn-danger:hover { background: #e02f4e; }
.btn-sm { padding: .4em .9em; font-size: .82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Formularios */
.field { margin-bottom: 1.1em; }
.field label { display: block; font-weight: 600; margin-bottom: .35em; font-size: .9rem; color: var(--qc-purple-800); }
.field .hint { font-size: .8rem; color: var(--qc-gray-600); margin-top: .3em; }
.field .error { font-size: .8rem; color: var(--qc-red-500); margin-top: .3em; font-weight: 600; }
.form-control {
    width: 100%; padding: .65em .8em; border: 1px solid var(--qc-gray-200); border-radius: var(--qc-radius-sm);
    background: #fff; color: var(--qc-purple-950);
}
.form-control:focus { outline: none; border-color: var(--qc-purple-500); box-shadow: 0 0 0 3px rgba(108, 43, 217, .15); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: flex; gap: 1em; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 220px; }
.checkbox-row { display: flex; align-items: center; gap: .5em; margin-bottom: .6em; }
.checkbox-row input { width: 18px; height: 18px; }
.color-input { width: 60px; height: 40px; padding: 2px; border: 1px solid var(--qc-gray-200); border-radius: var(--qc-radius-sm); }

/* Alertas */
.alert { padding: .9em 1.1em; border-radius: var(--qc-radius-sm); margin-bottom: 1em; font-size: .92rem; }
.alert-success { background: #e5f9ef; color: #147a44; border: 1px solid #b7ecd0; }
.alert-error { background: #fde8ec; color: #a3123a; border: 1px solid #f7c1cd; }
.alert-info { background: #eaf2ff; color: #1c4ea3; border: 1px solid #c6dcfd; }
.alert-warning { background: #fff8e1; color: #8a6100; border: 1px solid #ffe49b; }

/* Cards */
.card { background: #fff; border-radius: var(--qc-radius); box-shadow: var(--qc-shadow-sm); padding: 1.4em; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--qc-radius); overflow: hidden; }
table.table th, table.table td { padding: .8em 1em; text-align: left; border-bottom: 1px solid var(--qc-gray-100); font-size: .92rem; }
table.table th { background: var(--qc-gray-50); font-weight: 700; color: var(--qc-purple-800); }
table.table tr:hover td { background: #faf9fd; }

/* Badges */
.badge { display: inline-block; padding: .25em .7em; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-gray { background: var(--qc-gray-100); color: var(--qc-gray-600); }
.badge-green { background: #e5f9ef; color: #147a44; }
.badge-gold { background: #fff6da; color: #8a6100; }
.badge-blue { background: #e3f7ff; color: #0c6f96; }
.badge-red { background: #fde8ec; color: #a3123a; }
.badge-purple { background: #efe7fb; color: #4a2585; }

.text-muted { color: var(--qc-gray-600); }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-1 { gap: .5em; } .gap-2 { gap: 1em; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-0{margin-top:0} .mt-1{margin-top:.5em} .mt-2{margin-top:1em} .mt-3{margin-top:1.5em} .mt-4{margin-top:2em}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:.5em} .mb-2{margin-bottom:1em} .mb-3{margin-bottom:1.5em} .mb-4{margin-bottom:2em}

/* Reduz movimento conforme preferencia do sistema/dispositivo */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
