/* Variáveis herdadas do projeto antigo para manter as cores do form idênticas */
:root {
    --md-sys-color-surface: #1E1E1E;
    --md-sys-color-surface-variant: #2C2C2C;
    --md-sys-color-primary: #D32F2F;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-secondary: #E98A15;
    --md-sys-color-on-surface-variant: #BDBDBD;
    --color-error: #cf6679;
    --radius-md: 12px;
    --shadow-2: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Formulário */
#reportForm .form-group {
    margin-bottom: 24px;
}

#reportForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
}

#reportForm input,
#reportForm select {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#reportForm input:focus,
#reportForm select:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.deck-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Botões do Formulário */
.btn-remove {
    background: rgba(207, 102, 121, 0.1);
    color: var(--color-error);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
    width: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: rgba(207, 102, 121, 0.3);
}

.btn-add {
    background: transparent;
    border: 1px dashed var(--md-sys-color-on-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-add:hover {
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
    background: rgba(211, 47, 47, 0.05);
}

.btn-submit {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.1s;
}

.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-reset {
    background: transparent;
    border: 1px solid var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: var(--radius-md);
    width: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset:hover {
    border-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Seção OCR */
.ocr-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #444;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.ocr-section:hover {
    border-color: var(--md-sys-color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.ocr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--md-sys-color-primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ocr-desc { color: #888; font-size: 0.85rem; margin: 0 0 15px 0; }

.btn-ocr {
    display: inline-block;
    background: #111;
    border: 1px solid var(--md-sys-color-primary);
    color: var(--md-sys-color-primary);
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-ocr:hover { background: var(--md-sys-color-primary); color: white; }
#ocrInput { display: none; }

.progress-bar {
    width: 100%; height: 6px; background: #333;
    border-radius: 3px; overflow: hidden; margin-bottom: 5px;
}
.progress-fill {
    height: 100%; background: var(--md-sys-color-primary);
    width: 0%; transition: width 0.2s;
}
#progressText { font-size: 0.8rem; color: #aaa; }
.hidden { display: none !important; }

/* Linhas de Decks */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.deck-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
    align-items: center;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Responsividade para telas muito pequenas de celular */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 8px;
    }
}

.deck-row input { padding: 16px 12px !important; font-size: 1.05rem !important; }
.input-player-name { flex: 2; min-width: 180px; }
.input-player-points { flex: 0.5; min-width: 70px; text-align: center; font-weight: bold; }
.input-deck-url { flex: 3; min-width: 250px; }

@media (max-width: 600px) {
    .input-deck-url { width: 100%; flex: 100%; order: 3; }
    .btn-remove { order: 2; }
}