/* Ficharespostas View Styles */

.ficharespostas-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ficharespostas-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ficharespostas-header .btn-secondary {
    flex-shrink: 0;
    margin-top: 2px;
    white-space: nowrap;
}

.ficharespostas-titulo {
    flex: 1;
    min-width: 250px;
}

.ficharespostas-titulo h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.ficharespostas-preenchimento-titulo {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.ficharespostas-preenchimento-titulo strong {
    color: #374151;
    font-weight: 600;
}

.ficharespostas-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.ficharespostas-info .info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ficharespostas-info .info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ficharespostas-info .info-value {
    font-size: 0.95rem;
    color: #1f2937;
}

.ficharespostas-observacao {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.ficharespostas-observacao h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
}

.ficharespostas-observacao p {
    margin: 0;
    color: #1f2937;
    line-height: 1.6;
}

.ficharespostas-respostas {
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ficharespostas-respostas h2 {
    margin: 0 0 24px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

.ficharespostas-resposta-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.ficharespostas-resposta-card:hover {
    background: #fff;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resposta-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.resposta-titulo h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.badge-situacao-pendente {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-situacao-aprovado {
    background-color: #dcfce7;
    color: #166534;
}

.badge-situacao-rejeitado {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-situacao-complementacao {
    background-color: #dbeafe;
    color: #1e40af;
}

.resposta-conteudo {
    background: #fff;
    border-left: 3px solid #155bcb;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.resposta-conteudo p {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.resposta-arquivo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f3f4f6;
    border-radius: 4px;
}

.resposta-arquivo i {
    font-size: 1.2rem;
    color: #155bcb;
}

.resposta-arquivo a {
    color: #155bcb;
    text-decoration: none;
    font-weight: 500;
}

.resposta-arquivo a:hover {
    text-decoration: underline;
}

.resposta-comentario {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.resposta-comentario strong {
    display: block;
    margin-bottom: 6px;
    color: #92400e;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.resposta-comentario p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
}

.resposta-meta {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Alert styles */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    border-radius: 6px;
}

/* Badge generic styles */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-rascunho,
.badge-pendente {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-complemento {
    background-color: #fbbf24;
    color: #78350f;
}

.badge-recusado,
.badge-rejeitado {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-aprovado {
    background-color: #dcfce7;
    color: #166534;
}

/* Preenchimento Actions */
.preenchimento-acoes {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex-wrap: wrap;
}

.preenchimento-acoes .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preenchimento-acoes .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.preenchimento-acoes .btn-success {
    background-color: #10b981;
    color: #fff;
}

.preenchimento-acoes .btn-success:hover {
    background-color: #059669;
}

.preenchimento-acoes .btn-warning {
    background-color: #f59e0b;
    color: #fff;
}

.preenchimento-acoes .btn-warning:hover {
    background-color: #d97706;
}

.preenchimento-acoes .btn-danger {
    background-color: #ef4444;
    color: #fff;
}

.preenchimento-acoes .btn-danger:hover {
    background-color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .ficharespostas-container {
        padding: 12px;
    }

    .ficharespostas-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ficharespostas-titulo h1 {
        font-size: 1.5rem;
    }

    .ficharespostas-header .btn-secondary {
        width: 100%;
        text-align: center;
        margin-top: 0;
    }

    .ficharespostas-info {
        grid-template-columns: 1fr;
    }

    .ficharespostas-respostas {
        padding: 16px;
    }

    .resposta-titulo {
        flex-direction: column;
        align-items: flex-start;
    }

    .resposta-arquivo {
        flex-direction: column;
        align-items: flex-start;
    }

    .resposta-arquivo a {
        word-break: break-all;
    }

    .preenchimento-acoes {
        flex-direction: column;
    }

    .preenchimento-acoes .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ficharespostas-titulo h1 {
        font-size: 1.2rem;
    }

    .resposta-titulo h4 {
        font-size: 0.95rem;
    }

    .resposta-conteudo,
    .resposta-comentario {
        padding: 8px;
    }
}
