/* ------------------- MÓDULO DE ABERTURA DE CHAMADOS (SERVICE DESK SEDUC) ------------------- */

.chamados-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Banner Superior */
.chamados-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chamados-banner-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chamados-banner-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.chamados-banner-text p {
    font-size: 0.9rem;
    color: #fecaca;
    margin: 0;
}

/* Sub-abas de Chamados */
.chamados-subtabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.chamado-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.chamado-subtab-btn:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.chamado-subtab-btn.active {
    background: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
    box-shadow: var(--shadow-sm);
}

/* Cards de Resumo e Estatísticas (Admin) */
.chamados-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-chamado-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-circle.abertos { background: #fef3c7; color: #b45309; }
.stat-icon-circle.concluidos { background: #dcfce7; color: #15803d; }
.stat-icon-circle.total { background: #e0f2fe; color: #0369a1; }

.stat-info-text .stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-info-text .stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Card do Formulário de Abertura */
.card-chamado-form {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}

.chamado-form-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.chamado-form-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
}

.form-group-chamado {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group-chamado label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}

.form-group-chamado .required-star {
    color: #ef4444;
}

/* Seletor Visual de Tipo de Atividade */
.atividade-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.atividade-radio-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.atividade-radio-label input[type="radio"] {
    accent-color: #b91c1c;
    transform: scale(1.15);
}

.atividade-radio-label:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.atividade-radio-label.selected {
    background: #fef2f2;
    border-color: #b91c1c;
    color: #991b1b;
}

/* Botão de Envio de Chamado */
.btn-submit-chamado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #b91c1c;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.2);
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-submit-chamado:hover {
    background: #991b1b;
    transform: translateY(-1px);
}

/* Badges de Status do Chamado */
.badge-status-chamado {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-status-chamado.aberto {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-status-chamado.concluido {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-status-chamado.nao-reparado {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.protocolo-badge {
    font-family: monospace;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 0.88rem;
    border: 1px solid #bae6fd;
}

/* Ações na Tabela de Chamados */
.btn-acao-chamado {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap !important;
    transition: all 0.15s;
    border: none;
}

.btn-acao-chamado.finalizar {
    background: #10b981;
    color: #ffffff;
}

.btn-acao-chamado.finalizar:hover {
    background: #059669;
}

.btn-acao-chamado.pdf {
    background: #991b1b;
    color: #ffffff;
}

.btn-acao-chamado.pdf:hover {
    background: #7f1d1d;
}

.btn-acao-chamado.detalhes {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-acao-chamado.detalhes:hover {
    background: #e2e8f0;
}
