* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1280px;
    height: 700px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Banner de Simulação */
.simulation-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #ffc107;
    color: #000;
    text-align: center;
    font-weight: bold;
    display: none;
    z-index: 1;
    & .esc {
        position:absolute;
        margin-left:32%;
        width: 5px;height: 5px;
        background-color: #ffc107;
    }
} 

.controls {
    flex: 1;
    padding: 10px;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 8px 0 0 8px;
    height: 100%;
    padding-top: 3.3%;
}

#start-server {
    height: 40px;
    width: 100%;
    border: none;
    border-radius: 5px;
    color: #fff;
    background-color: #4CAF50;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

#start-server.active {
    background-color: red;
}

.http-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
}

button {
    width: 48%;
    height: 40px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    background-color: #555;
    transition: background-color 0.3s, transform 0.2s;
}

/* Efeito de hover e zoom */
button:hover {
    background-color: #666;
    transform: scale(1.05);
}

/* Botão de simulação */
button.simulate {
    background-color: #777;
}

/* Estilos para método selecionado */
 .http-method.selected {
    background-color: #444;
}

/* Inputs e Configurações */
.params {
    margin-top: 5px;
}
.json-object {
    padding: 9px;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    width: 100%;
    height: 220px;
    overflow-y: hidden;           /* Ativa a rolagem vertical */
    overflow-x: hidden;           /* Impede a rolagem horizontal */
    scrollbar-width: none;  
    display: flex;
    flex-direction: column;


    
}

.json-pair {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

label {
    width: 150px;
    font-weight: bold;
}

select {
    flex: 1;
    padding: 5px;
    border: none;
    outline: none;
    background-color: #222;
    color: #fff;

    border-radius: 3px;

    appearance: none;
    -webkit-appearance: none; /* Para navegadores baseados em WebKit (Safari, Chrome) */
    -moz-appearance: none; /* Para navegadores baseados em Mozilla (Firefox) */
    
}
/* Estilo dos inputs */


 input {
    width: 100%;
    height: 35px;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    font-size: 14px;
    text-indent: 10px;
}

textarea[name='body-params'] {
    width: 100%;
    height: 220px;
    font-family: monospace;
    white-space: pre-wrap;        /* Preserva espaços e quebras de linha */
    overflow-y: scroll;           /* Ativa a rolagem vertical */
    overflow-x: hidden;           /* Impede a rolagem horizontal */
    scrollbar-width: none;        /* Oculta a barra de rolagem no Firefox */
    resize: none;
    line-height: 1.5;
    padding: 10px;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    /* font-size: 12px;  */
   
}
textarea::-webkit-scrollbar {
    display: none;
  }
textarea[name='body-params']::placeholder {
    color: #aaa;
    opacity: 1;
}
.base-url {
    display: flex;
    margin-top: 7px;
    color: #777; 
}
.base-url input[type="text"] {
    font-family: 'Arial', sans-serif;font-size: 15px;font-weight: bold;background-color: #ECF0F1;border: 1px solid #BDC3C7;
    color: #2C3E50; border-radius: 4px;width: auto;
    background-color: transparent;transition: border-color 0.3s;
   
}
.base-url input[type="text"]:focus {
    border-color: #3498DB;             /* Cor da borda ao focar */
    outline: none;                     /* Remove contorno padrão */
}

p.request{
    color: #856404; /* Cor de um tom de amarelo-escuro para requisições */
    font-weight: bold; /* Negrito para destacar */
    background-color: #fff3cd; /* Um fundo leve para dar destaque */
    padding: 10px; /* Espaçamento interno para melhor legibilidade */
    border-left: 4px solid #856404; /* Borda à esquerda para visualização */
    border-radius: 4px; /* Cantos arredondados para suavizar */
}
p.response{
    color: #721c24; /* Cor de um tom de vermelho escuro para respostas */
    font-weight: bold; /* Negrito para destacar */
    background-color: #f8d7da; /* Um fundo leve para dar destaque */
    padding: 10px; /* Espaçamento interno para melhor legibilidade */
    border-left: 4px solid #721c24; /* Borda à esquerda para visualização */
    border-radius: 4px; /* Cantos arredondados para suavizar */
}


/* resulta */
.output {
    /* height: 30%; */
    flex: 2;
    padding: 10px;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 0 8px 8px 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; 
    justify-content: flex-start;  */
    height: 100%; 
    justify-content: center;
    overflow-y: auto;
    
    font-family: 'Arial', sans-serif; /* Manter uma fonte legível */
}

#results {
    background-color: #1f1f1f; /* Alterar para um fundo mais escuro */
    border: 1px solid #444; /* Borda mais escura para um efeito de destaque */
    border-radius: 5px;
    padding: 15px;
    max-width: 800px;
    /* max-height: 500px; */
    overflow-y: auto;
    color: #f4f4f4; /* Texto claro para melhor legibilidade */
    white-space: pre-wrap; /* Manter quebras de linha */
    word-wrap: break-word;
    display: grid; /* Usar grid para disposição em colunas */
    grid-template-columns: 1fr 1fr; /* Duas colunas */
    gap: 10px; /* Espaçamento entre os itens */
}

#results div {
    background-color: rgba(255, 255, 255, 0.1); 
    padding: 8px;
    border-radius: 4px; 
}
#results::-webkit-scrollbar {
    display: none; /* para navegadores WebKit (Chrome, Safari) */
}
.warning {
    /* background-color: #fff3cd; */
    color: #856404; /* Texto dourado */
    /* border: 1px solid #ffeeba; */
    padding: 10px;
    border-radius: 5px; /* Bordas arredondadas */
    font-family: Arial, sans-serif; /* Fonte */
}

