/* Estilos generales */
body {
    font-family: Arial, 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    margin: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin: 20px;
    border-radius: 8px;
}

/* Títulos */
h1, h2 {
    color: #2c3e50;
    text-align: center;
}

h3 {
    color: #333;
    margin-top: 20px;
}

/* Formularios */
input, button {
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
}

input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

button:hover {
    background-color: #004494;
}


p, #output, label, input, button {
    margin: 20px; /* Aplicar el mateix marge per a tots aquests elements */
    padding: 15px; /* Opcional: assegura't que el padding sigui coherent */
    border-radius: 8px; /* Opcional: estil consistent */
    
}


.output {
    font-weight: bold;
    color: #d9534f;
}

/* Pasos */
.step {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 5px solid #0056b3; /* Línia vertical blau a l'esquerra */
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #0056b3; /* Color blau per la línia */
}


/* Estilos adicionales */
.highlight {
    font-weight: bold;
    color: #e74c3c;
}

.rotor, .reflector {
    font-family: monospace;
    padding: 5px;
    border-radius: 3px;
    display: inline-block;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    input[type="text"] {
        width: calc(100% - 12px);
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
