
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── TEMA (variáveis CSS) ─────────────────────────────────── */
:root {
    --bg-primary:   #2FA4D7;
    --bg-card:      #ffffff;
    --text-primary: #111827;
    --text-muted:   #374151;
    --border-color: #000000;
    --nav-hover:    #f3f4f6;
    --footer-text:  #111827;
}

[data-theme="dark"] {
    --bg-primary:   #111827;
    --bg-card:      #1f2937;
    --text-primary: #f9fafb;
    --text-muted:   #d1d5db;
    --border-color: #4b5563;
    --nav-hover:    #374151;
    --footer-text:  #9ca3af;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
}

nav {
    border-bottom: 1px solid var(--border-color);
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.nav-btn {
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: var(--text-primary);
}

.nav-btn:hover {
    background-color: var(--nav-hover);
}

/* ── CARDS ────────────────────────────────────────────────── */
.card {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card p,
.card span {
    color: var(--text-muted);
}

.card h2 {
    color: var(--text-primary);
}

/* ── SKILL CARD ───────────────────────────────────────────── */
.skill-card {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
}

/* ── FORMULÁRIO ───────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.form-input.input-error   { border-color: #ef4444 !important; }
.form-input.input-success { border-color: #22c55e !important; }

.form-label {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 4px;
}

.error-msg.visible { display: block; }

.btn-submit {
    padding: 12px;
    border-radius: 0.5rem;
    background-color: #2FA4D7;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #278bb8;
}

.sucesso-msg {
    display: none;
    text-align: center;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.875rem;
}

.sucesso-msg.visible { display: block; }

#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9998;
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-flash {
    position: fixed;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    animation: flash 0.4s ease forwards;
}

@keyframes flash {
    0%   { opacity: 0.8; }
    100% { opacity: 0; }
}

footer p {
    text-align: center;
    color: var(--footer-text);
    padding: 16px 0;
}

section h1 {
    color: var(--text-primary);
}

.camera-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    border: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.camera-label i {
    font-size: 72px;
    line-height: 1;
}

.camera-label span {
    font-size: 0.813rem;
    font-weight: 600;
}

.camera-label:hover {
    color: var(--btn-primary);
    transform: scale(1.05);
}

.camera-label:active {
    transform: scale(0.97);
}

/* Vídeo ao vivo */
.camera-video {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 2px solid var(--border-input);
}

/* Preview da foto tirada */
.camera-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 2px solid var(--btn-primary);
}

.camera-video.hidden,
.camera-preview.hidden { display: none; }