:root {
    --primary: #4285f4;
    --secondary: #34a853;
    --danger: #ea4335;
    --warning: #fbbc05;
    --dark: #202124;
    --light: #f8f9fa;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
header {
    background-color: var(--primary);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 0 0 10px 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
h1 {
    margin: 0;
    font-size: 2.2rem;
}
.auth-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 50px auto;
}
.subject-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.subject-btn {
    background-color: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
}
.subject-btn:hover, .subject-btn.active {
    background-color: var(--primary);
    color: white;
}

.question-area {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 16px;
    box-sizing: border-box;
}
textarea {
    min-height: 150px;
    resize: vertical;
}
button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}
button:hover {
    background-color: #3367d6;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.box-botao{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#response {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.file-input-label {
    display: block;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    margin: 15px 0;
    border: 2px dashed #ccc;
}
#imagem, #comprovante {
    display: none;
}
.previewImagem{
    display: none;
}
#previewImagem{
    max-width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
#previewComprovante {
    max-width: 100%;
    margin-top: 10px;
    display: none;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.error {
    color: var(--danger);
    padding: 10px;
    background-color: #fdecea;
    border-radius: 5px;
    margin-top: 10px;
}
.hidden {
    display: none;
}
.question-counter {
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
    color: var(--primary);
}
.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.auth-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.auth-tab.active {
    border-bottom: 3px solid var(--primary);
    font-weight: bold;
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.premium-box {
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    border-left: 44px solid var(--secondary);
    margin: 20px 0;
}
.pix-code {
    font-family: monospace;
    background: #333;
    color: white;
    padding: 15px;
    border-radius: 5px;
    word-break: break-all;
    margin: 10px 0;
}
.typing-cursor {
    animation: blink 0.7s infinite;
}

.btn {
    display: block;
    width: 45vh !important;
    border: none;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    height: 2rem;
    margin: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}
.btn-warning{
    background-color: var(--warning);
    color: red;
}
.btn-primary{
    background-color: var(--primary);
    color: white;
}
.botoes{
    display: flex;
    justify-content: center;
    align-items: center;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}