:root {
    --cor-primaria: #0b2e4f;
    --cor-secundaria: #184c7d;
    --cor-destaque: #c59b27;
    --cor-fundo: #f4f6f9;
    --cor-texto: #333333;
}

body {
    background-color: var(--cor-fundo);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--cor-texto);
    margin: 0;
    min-height: 100vh;
}

/* ====================================================
   CABEÇALHO INSTITUCIONAL
   ==================================================== */
.cabecalho-institucional {
    background-color: var(--cor-primaria) !important;
    color: #ffffff;
    padding: 16px 28px;
    border-bottom: 4px solid var(--cor-destaque);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabecalho-institucional h1,
.cabecalho-institucional h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.subtitulo {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* ====================================================
   COMPONENTES GERAIS E BOTÕES
   ==================================================== */
.card-login {
    border: none;
    border-top: 4px solid var(--cor-primaria);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-ufmg {
    background-color: var(--cor-primaria);
    color: #ffffff;
    border: none;
    font-weight: 500;
}

.btn-ufmg:hover {
    background-color: var(--cor-secundaria);
    color: #ffffff;
}

.card-servico {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-servico:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--cor-destaque);
}

.card-servico i {
    font-size: 2.4rem;
    color: var(--cor-primaria);
    margin-bottom: 12px;
}

.card-destaque {
    border-top: 4px solid var(--cor-destaque);
}

.card-destaque i {
    color: var(--cor-destaque);
}

/* ====================================================
   MÓDULO DE MONITORAMENTO DE SERVIDORES (CSP COMPLIANT)
   ==================================================== */
.col-status {
    width: 100px;
}

.col-metrica {
    width: 180px;
}

.col-acoes {
    width: 120px;
}

.progress-fina {
    height: 8px !important;
    background-color: #e9ecef;
    border-radius: 4px;
}

/* Larguras pré-definidas das barras de progresso (Zero Inline Style) */
.barra-w-0   { width: 0%; }
.barra-w-1   { width: 1%; }
.barra-w-2   { width: 2%; }
.barra-w-3   { width: 3%; }
.barra-w-4   { width: 4%; }
.barra-w-5   { width: 5%; }
.barra-w-6   { width: 6%; }
.barra-w-7   { width: 7%; }
.barra-w-8   { width: 8%; }
.barra-w-9   { width: 9%; }
.barra-w-10  { width: 10%; }
.barra-w-15  { width: 15%; }
.barra-w-20  { width: 20%; }
.barra-w-25  { width: 25%; }
.barra-w-30  { width: 30%; }
.barra-w-35  { width: 35%; }
.barra-w-40  { width: 40%; }
.barra-w-45  { width: 45%; }
.barra-w-50  { width: 50%; }
.barra-w-55  { width: 55%; }
.barra-w-60  { width: 60%; }
.barra-w-65  { width: 65%; }
.barra-w-70  { width: 70%; }
.barra-w-75  { width: 75%; }
.barra-w-77  { width: 77%; }
.barra-w-80  { width: 80%; }
.barra-w-85  { width: 85%; }
.barra-w-90  { width: 90%; }
.barra-w-95  { width: 95%; }
.barra-w-100 { width: 100%; }

/* ====================================================
   OPS COPILOT (ASSISTENTE IA - CSP COMPLIANT)
   ==================================================== */
.copilot-chat-box {
    min-height: 350px;
    max-height: 450px;
    overflow-y: auto;
}

.copilot-msg-user {
    max-width: 80%;
    word-break: break-word;
}

.copilot-msg-bot-card {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.5;
}

.btn-ia-flutuante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   ESTEIRA DE DEMANDAS / STEPPER (COMPATÍVEL COM CSP)
   ========================================================================== */
.card-demanda {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.stepper-row {
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
}

.step-box {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-bubble {
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    margin: 0 auto 6px auto;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

/* Etapa Concluída (Verde) */
.step-bubble.is-done {
    background-color: #198754;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.2);
}

/* Etapa Ativa / Em Execução (Azul) */
.step-bubble.is-current {
    background-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

/* Etapa Futura / Pendente (Cinza) */
.step-bubble.is-pending {
    background-color: #e9ecef;
    color: #6c757d;
    border: 1px solid #ced4da;
}

.step-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.2;
}

.step-box.done .step-text {
    color: #198754;
}

.step-box.current .step-text {
    color: #0d6efd;
    font-weight: 700;
}

.box-despacho-ti {
    background-color: #f8fafc;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
    padding: 12px 16px;
}

