/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-color: #007ced;
    --primary-dark: #005bb5;
    --primary-light: #3399ff;
    --primary-glow: rgba(0, 124, 237, 0.3);
    
    /* Cores do tema escuro */
    --bg-primary: #0a0a1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252545;
    --bg-card: #1e1e3f;
    --bg-input: #2d2d4d;
    
    /* Cores de texto */
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0cc;
    --text-muted: #6c6c8c;
    --text-accent: #ffffff;
    
    /* Cores de estado */
    --success-color: #28a745;
    --success-glow: rgba(40, 167, 69, 0.3);
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Bordas e sombras */
    --border-color: #3a3a5a;
    --border-light: #4a4a6a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 124, 237, 0.4);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Bordas */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

/* ===== BASE E TIPOGRAFIA ===== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 124, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 124, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(40, 167, 69, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* ===== CABEÇALHO ===== */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ===== BOTÃO VOLTAR ===== */
.btn-voltar {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
    color: var(--primary-light);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-voltar:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 15px var(--primary-glow);
    border-color: var(--primary-light);
}

/* ===== FORMULÁRIO ===== */
#suggestion-form {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

#suggestion-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--success-color));
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

/* ===== GRID DO FORMULÁRIO ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

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

.form-grid-full {
    grid-column: 1 / -1;
}

.submit-container {
    text-align: center;
    margin-top: 1rem;
}

/* ===== LABELS ===== */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CAMPOS DE ENTRADA ===== */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-sm);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover,
select:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}

/* ===== TEXTAREA ESPECÍFICO ===== */
textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

textarea#resumo {
    min-height: 60px;
}

textarea#sugestao {
    min-height: 120px;
}

/* ===== UPLOAD DE IMAGEM ===== */
input[type="file"] {
    padding: 12px;
    background: var(--bg-input);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    font-weight: 500;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(0, 124, 237, 0.05);
    box-shadow: var(--shadow-sm);
}

input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    margin-right: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 237, 0.3);
}

/* ===== PREVIEW DA IMAGEM ===== */
#preview {
    margin-top: 12px;
}

#preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    background: var(--bg-input);
}

#preview img:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* ===== BOTÃO ENVIAR ===== */
button[type="submit"] {
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-accent);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

button[type="submit"]:active {
    transform: translateY(-1px);
}

/* ===== MENSAGEM DE STATUS ===== */
#status-message {
    margin: 1rem 0;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(10px);
}

#status-message p {
    margin: 0;
}

/* ===== TOAST DE SUCESSO ===== */
#sucesso-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: var(--text-accent);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    z-index: 10000;
    border-left: 4px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    max-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-normal);
}

#sucesso-toast.mostrar {
    opacity: 1;
    transform: translateX(0);
}

/* ===== CONTADOR DE VISITAS ===== */
.visitor-counter {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(30, 30, 63, 0.5);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.visitor-counter img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-color);
    transition: all var(--transition-normal);
    background: var(--bg-input);
    max-width: 100%;
}

.visitor-counter img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 15px;
    }
    
    #suggestion-form {
        padding: 2rem;
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        margin-top: 2rem;
    }
    
    .btn-voltar {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        display: inline-flex;
        width: auto;
    }
    
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        padding: 12px 14px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    #suggestion-form {
        padding: 1.5rem;
        border-radius: var(--border-radius);
    }
    
    button[type="submit"] {
        padding: 14px 24px;
        font-size: 1rem;
        max-width: 100%;
    }
    
    #sucesso-toast {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .btn-voltar {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-grid > * {
    animation: fadeInUp 0.6s ease;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004a9c);
}

/* ===== ESTADOS ESPECIAIS ===== */
input:required,
textarea:required {
    border-left: 3px solid var(--primary-color);
}

input:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-color);
}

/* ===== PLACEHOLDERS ===== */
::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== FOCO ACESSÍVEL ===== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}