
/* =====================================================
   Busca de Certificado - Estilos modernos e responsivos
   ===================================================== */
.bc-certificado-wrap {
    --bc-primary: #2563eb;
    --bc-primary-dark: #1d4ed8;
    --bc-bg: #f8fafc;
    --bc-border: #e2e8f0;
    --bc-text: #1e293b;
    --bc-muted: #64748b;
    --bc-success: #16a34a;
    --bc-error: #dc2626;
    --bc-radius: 12px;
    --bc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow);
    color: var(--bc-text);
}

.bc-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bc-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bc-text);
}

.bc-input-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bc-input {
    flex: 1 1 250px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--bc-border);
    border-radius: 10px;
    background: var(--bc-bg);
    color: var(--bc-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bc-input:focus {
    outline: none;
    border-color: var(--bc-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bc-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--bc-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    min-width: 170px;
}

.bc-button:hover {
    background: var(--bc-primary-dark);
}

.bc-button:active {
    transform: translateY(1px);
}

.bc-button.bc-loading .bc-button-text {
    opacity: 0.7;
}

.bc-button.bc-loading .bc-spinner {
    display: inline-block;
}

.bc-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bc-spin 0.8s linear infinite;
}

@keyframes bc-spin {
    to { transform: rotate(360deg); }
}

.bc-mensagens {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bc-mensagem-sucesso {
    color: var(--bc-success);
    font-weight: 600;
}

.bc-mensagem-erro {
    color: var(--bc-error);
    font-weight: 600;
}

.bc-resultados {
    margin-top: 1rem;
}

.bc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.bc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.bc-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.bc-item-title {
    font-weight: 600;
    color: var(--bc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-item-filename {
    font-size: 0.8rem;
    color: var(--bc-muted);
}

.bc-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--bc-success);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.bc-download:hover {
    background: #15803d;
}

@media (max-width: 600px) {
    .bc-input-group {
        flex-direction: column;
    }
    .bc-button,
    .bc-input {
        width: 100%;
    }
    .bc-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .bc-download {
        width: 100%;
        justify-content: center;
    }
}
