/* ============================================================
   PedidoEletronico.com — tema PE para swagger-ui 2.x (Swashbuckle)
   Injetado via SwaggerConfig.InjectStylesheet.
   ============================================================ */

/* ---- Barra superior (verde padrao -> azul PE) ---- */
.swagger-section #header,
#header {
    background: linear-gradient(135deg, #0277bd 0%, #0288d1 55%, #00acc1 120%) !important;
    border-bottom: 0 !important;
}
#header #logo,
.swagger-ui-wrap #logo {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: .01em;
}
#header #input_baseUrl,
#header #input_apiKey,
.swagger-ui-wrap #input_baseUrl,
.swagger-ui-wrap #input_apiKey {
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
    box-shadow: none !important;
}
#header #explore,
.swagger-ui-wrap #explore {
    background: #ff9800 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 0 !important;
    border-radius: 6px !important;
    text-shadow: none !important;
}
#header #explore:hover,
.swagger-ui-wrap #explore:hover {
    background: #f57c00 !important;
}

/* ---- Tipografia / titulos ---- */
.swagger-ui-wrap,
.swagger-section .swagger-ui-wrap {
    font-family: 'Segoe UI', -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a2238;
}
.swagger-ui-wrap .info_title,
.swagger-ui-wrap h1,
.swagger-ui-wrap h2 {
    color: #1a2238 !important;
    font-weight: 800 !important;
}
.swagger-ui-wrap .info_description,
.swagger-ui-wrap .info p {
    color: #5a6478 !important;
}

/* ---- Cabecalho de cada recurso (controller) ---- */
.swagger-ui-wrap ul#resources li.resource div.heading h2 a {
    color: #0288d1 !important;
    font-weight: 700 !important;
}
.swagger-ui-wrap ul#resources li.resource div.heading ul.options li a {
    color: #5a6478 !important;
}

/* ---- Cores por metodo HTTP (blocos de operacao) ---- */
/* GET - azul */
.swagger-ui-wrap li.operation.get div.heading,
.swagger-ui-wrap .operation.get {
    background: #eef7fd !important;
    border-color: #03a9f4 !important;
}
.swagger-ui-wrap .operation.get div.heading h3 span.http_method a,
.swagger-ui-wrap li.get .http_method a {
    background-color: #0288d1 !important;
}
/* POST - verde */
.swagger-ui-wrap li.operation.post div.heading,
.swagger-ui-wrap .operation.post {
    background: #eaf7ef !important;
    border-color: #00c878 !important;
}
.swagger-ui-wrap .operation.post div.heading h3 span.http_method a,
.swagger-ui-wrap li.post .http_method a {
    background-color: #00a865 !important;
}
/* PUT - laranja */
.swagger-ui-wrap li.operation.put div.heading,
.swagger-ui-wrap .operation.put {
    background: #fff6e9 !important;
    border-color: #ff9800 !important;
}
.swagger-ui-wrap .operation.put div.heading h3 span.http_method a,
.swagger-ui-wrap li.put .http_method a {
    background-color: #f08c00 !important;
}
/* DELETE - vermelho */
.swagger-ui-wrap li.operation.delete div.heading,
.swagger-ui-wrap .operation.delete {
    background: #fdecec !important;
    border-color: #e53935 !important;
}
.swagger-ui-wrap .operation.delete div.heading h3 span.http_method a,
.swagger-ui-wrap li.delete .http_method a {
    background-color: #e53935 !important;
}

/* ---- Botoes de acao / submit ---- */
.swagger-ui-wrap .submit,
.swagger-ui-wrap input.submit,
.swagger-ui-wrap .sandbox_header input[type=submit] {
    background: #0288d1 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 6px !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* ---- Links gerais ---- */
.swagger-ui-wrap a { color: #0288d1; }
