/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f11;
    color: #e6e6e6;
    height: 100%;
    width: 100%;
    font-size: 15px;
    margin: 0;
    padding: 0;
}

/* Menu estilizado */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #151518;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    margin: 0;
    padding: 0;
    width: 100%;
}

.menu a {
    position: relative;
    padding: 14px 22px;
    color: #cfcfcf;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-right: 1px solid #1f1f1f;
    background: transparent;
    min-width: 120px;
    text-align: center;
}

.menu a:last-child {
    border-right: none;
}

.menu a::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease-in-out;
}

.menu a:hover::after,
.menu a.active::after {
    background: #0d6efd;
}

.menu a:hover {
    color: #fff;
    background: #1e1e22;
}

.menu a.active {
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
}

/* Container principal */
.container {
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Áreas de texto e resultados */
textarea {
    width: 100%;
    background: #101012;
    color: #e1e1e1;
    border: 1px solid #2b2b2d;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 20px;
    resize: vertical;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: border 0.3s ease;
}

textarea:focus {
    outline: none;
    border: 1px solid #0d6efd;
    box-shadow: 0 0 6px #0d6efd55;
}

/* Botões */
button {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #094bcc;
}

.stack-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.btn-copiar {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #0d6efd;
    font-size: 13px;
    padding: 6px 12px;
}

.btn-copiar:hover {
    background-color: #0a4ecb;
}

/* Bloco de comando */
.bloco-comando {
    background-color: #1b1b1d;
    border: 1px solid #2c2c2e;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 4px 10px #00000040;
    max-width: 1000px;
}

.bloco-comando h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #2c2c2e;
}

/* Links */
a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Textos e listas */
ul {
    margin-left: 20px;
}

ul li {
    margin-bottom: 6px;
}

p {
    margin: 8px 0;
    line-height: 1.6;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* Formulário verticalizado */
.form-box {
    background-color: #1b1b1d;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.form-box h2 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.form-box form {
    display: flex;
    flex-direction: column;
}

.form-box label {
    margin-top: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-box input[type="text"],
.form-box select {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

.form-box input[type="text"]::placeholder {
    color: #999;
}

.form-box button[type="submit"] {
    margin-top: 25px;
    padding: 12px;
    border: none;
    background-color: #1675f2;
    color: white;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-box button[type="submit"]:hover {
    background-color: #105ed1;
}

.form-box .mensagem {
    margin-top: 20px;
    padding: 15px;
    border-left: 5px solid #00c853;
    background-color: #263238;
    color: #cfd8dc;
    border-radius: 4px;
    white-space: pre-line;
}

.rodape {
    text-align: center;
    padding: 15px 0;
    background-color: #111;
    color: #888;
    border-top: 1px solid #222;
    font-size: 14px;
    margin-top: 30px;
}

.rodape a {
    color: #007bff;
    text-decoration: none;
}

.rodape a:hover {
    text-decoration: underline;
}

