@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    background-color: #03320a;
    color: #00FF41; /* Verde tecnológico */
    font-family: 'VT323', monospace; /* Fonte estilo terminal */
    font-size: 20px;
    margin: 0;
    padding: 20px;
    text-shadow: 0 0 5px #00FF41; /* Efeito de brilho */
}

/* Efeito de scanlines para dar um ar de monitor antigo */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal {
    border: 2px solid #00FF41;
    padding: 25px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    background-color: rgba(0, 20, 0, 0.1); /* Fundo sutilmente verde */
}

h1, h2, h3 {
    color: #33FF77; /* Tom de verde mais claro para títulos */
    text-transform: uppercase;
}

p, li, span {
    line-height: 1.6;
}

a {
    color: #00FF41;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    background-color: #00FF41;
    color: #000;
}

/* Estilo para a tela de login */
#login-prompt {
    display: flex;
    align-items: center;
}

#passwordInput {
    background: transparent;
    border: none;
    color: #00FF41;
    font-family: 'VT323', monospace;
    font-size: 20px;
    text-shadow: 0 0 5px #00FF41;
    outline: none;
    margin-left: 10px;
    flex-grow: 1;
}

#cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: #00FF41; }
}

button {
    background-color: #00FF41;
    color: #000;
    border: none;
    padding: 5px 15px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
}

#feedback {
    margin-top: 15px;
    color: #FF4141; /* Vermelho para acesso negado */
    height: 25px;
}

.cite {
    font-size: 10px;
    opacity: 0.6;
    color: #33FF77;
}

/* Define uma seção dentro do terminal principal */
#fuel-terminal {
    border-top: 2px dashed #33FF77;
    margin-top: 30px;
    padding-top: 20px;
}

#fuel-terminal h1 {
    font-size: 1.5em; /* Deixa os títulos do painel um pouco maiores */
    text-align: center;
}

#fuel-terminal h2, #fuel-terminal h3 {
    font-size: 1.2em; /* Deixa os títulos do painel um pouco maiores */
    text-align: center;
    margin-bottom: 20px;
}

/* Container para as seções de Subluz e Coaxium */
.fuel-section-container {
    display: flex; /* Coloca as seções lado a lado em telas maiores */
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap; /* Permite que as seções quebrem para baixo em telas menores */
}

.fuel-section {
    flex: 1; /* Faz com que cada seção tente ocupar o mesmo espaço */
    min-width: 300px; /* Largura mínima antes de quebrar a linha */
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 15px;
    margin-bottom: 20px;
}

.fuel-section h4 {
    color: #33FF77;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 5px;
    margin-top: 0;
}

.fuel-section ul {
    list-style-type: none;
    padding-left: 0;
}

/* O mais importante: destaca a informação chave */
.fuel-section li strong {
    color: #c2ffbf; /* Cor branca para máximo destaque */
    font-weight: bold; /* Garante o negrito */
    padding-right: 8px; /* Espaçamento para separar do valor */
}

/* Estilo do cabeçalho clicável */
.terminal-header-collapsible {
    cursor: pointer; /* Muda o cursor para indicar que é clicável */
    padding: 10px;
    border: 1px dashed rgba(0, 255, 65, 0.2);
    transition: background-color 0.3s;
    text-align: center;
}

.terminal-header-collapsible:hover {
    background-color: rgba(0, 255, 65, 0.1); /* Efeito visual ao passar o mouse */
}

.terminal-header-collapsible h2 {
    margin: 0;
    font-size: 1.3em;
}

.terminal-header-collapsible .toggle-prompt {
    margin: 5px 0 0 0;
    color: #c2ffbf;
    font-style: italic;
}

/* Oculta o conteúdo por padrão */
.collapsible-content.collapsed {
    display: none;
}

/* Adiciona um pouco de espaço quando o conteúdo está visível */
.collapsible-content {
    padding-top: 20px;
}

/* Grid para alinhar os campos de entrada */
.fuel-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.ship-fuel-input h4 {
    color: #33FF77;
    text-transform: none;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 5px;
}

/* Estilo para os rótulos (labels) e campos (input) */
.ship-fuel-input label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.ship-fuel-input input[type="number"] {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00FF41;
    color: #00FF41;
    font-family: 'VT323', monospace;
    font-size: 18px;
    padding: 5px;
    width: 95%;
    text-shadow: 0 0 5px #00FF41;
}

/* Remove as setas do campo de número no Chrome/Safari/Edge */
.ship-fuel-input input::-webkit-outer-spin-button,
.ship-fuel-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Estilo do botão de salvar e da mensagem de feedback */
#save-fuel-btn {
    display: block;
    margin: 20px auto 10px auto;
    width: 50%;
}

#save-feedback {
    text-align: center;
    height: 20px;
    font-style: italic;
}

/* Define o painel (herda a maior parte do estilo de .terminal) */
#vehicle-bay {
    margin-top: 30px; /* Adiciona um espaço acima do painel */
}

/* Estiliza a linha que separa "O Cinzel" e "O Moedor" */
.section-divider {
    border: none;
    border-top: 2px dashed rgba(0, 255, 65, 0.3);
    margin: 25px 0;
}

/* Botão de ação principal (Fazer Viagem) */
.main-action-btn {
    background-color: #00FF41;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 22px;
    cursor: pointer;
    text-shadow: none; /* Remove o brilho do texto dentro do botão */
    width: 50%;
}
.main-action-btn:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}


/* Fundo do Modal (Overlay) */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Preto com transparência */
    backdrop-filter: blur(3px); /* Efeito de desfoque no fundo */
}

/* Conteúdo da janela Modal */
.modal-content {
    position: relative;
    margin: 10% auto;
    max-width: 600px;
}

/* Botão de fechar (X) */
.close-btn {
    color: #FF4141;
    float: right;
    font-size: 32px;
    font-weight: bold;
}
.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Estilo dos passos do formulário no modal */
.modal-step {
    margin: 20px 0;
}
.modal-step.hidden {
    display: none;
}
.modal-step label {
    display: block;
    margin-bottom: 8px;
}
.modal-step select, .modal-step input {
    width: 98%;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00FF41;
    color: #00FF41;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

#trip-feedback {
    text-align: center;
    height: 25px;
    margin-top: 15px;
    font-style: italic;
}

i.fa-solid {
    margin-right: 10px;
}

/* Barra de status de Vida/Escudo */
.status-bar-container {
    margin: 25px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 420px;
    max-width: 98%;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 0 8px 2px rgba(0,0,0,0.2);
    margin-bottom: 2px;
    gap: 10px;
}

.status-bar.vida {
    background: #a72626;
    color: #fff;
    border: 2px solid #fff0f0;
}

.status-bar.escudo {
    background: #47c5c9;
    color: #fff;
    border: 2px solid #b3d1ff;
}

.status-label {
    margin-right: 18px;
    font-size: 1.1em;
    letter-spacing: 1px;
    min-width: 70px;
    text-align: right;
}

.status-btn {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 1.4em;
    padding: 0 10px;
    cursor: pointer;
    transition: color 0.2s;
}
.status-btn:hover {
    color: #ffd700;
}

.status-input {
    width: 80px;
    text-align: center;
    font-size: .8em;
    background: transparent;
    border: none;
    color: #fff;
    border-radius: 0;
    margin: 0 6px;
    outline: none;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
    /* Remove setas no Chrome/Safari/Edge */
    text-shadow: 0 0 2px #00FF41, 0 0 2px #00FF41;
    font-weight: bold;
    letter-spacing: 2px;
    transition: none;
}
.status-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
    background: transparent;
}