* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative; /* Para posicionar el sidebar */
}

/* Estilos del menú lateral (sidebar) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px; /* Ancho colapsado */
    background-color: #2a2a2a;
    transition: width 0.3s ease; /* Animación para expandir/colapsar */
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.sidebar:hover {
    width: 200px; /* Ancho expandido */
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.sidebar-content a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap; /* Evita que el texto se envuelva */
    transition: background-color 0.3s;
}

.sidebar-content a:hover {
    background-color: #3a3a3a;
}

.sidebar-content a i {
    font-size: 20px;
    margin-right: 15px;
    min-width: 20px; /* Asegura que el icono siempre tenga espacio */
}

.sidebar-content a span {
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-content a span {
    opacity: 1; /* Mostrar texto al expandir */
}

.container {
    background-color: #2a2a2a;
    width: 800px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-left: 80px; /* Espacio para el sidebar colapsado */
}

.header-image {
    width: 50%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
}

h1 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 24px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

label {
    color: #b0b0b0;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: #e0e0e0;
    font-size: 16px;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #66ff99;
    box-shadow: 0 0 5px rgba(102, 255, 153, 0.5);
}

input[type="checkbox"] {
    margin-right: 10px;
}

.variable-power-inputs {
    display: none;
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.variable-power-inputs input {
    flex: 1;
}

button {
    background-color: #66ff99;
    color: #1a1a1a;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #55cc77;
}

.result {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #66ff99;
    border-radius: 15px;
    color: #e0e0e0;
    font-size: 16px;
    background-color: #333;
}

.result.error {
    border-color: #ff6666;
    color: #ff6666;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Estilos para las secciones y tablas */
.result h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #66ff99;
    text-align: center;
}

.section {
    margin-bottom: 20px;
}

.section h3 {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 10px;
    text-align: left;
    border-bottom: 1px solid #66ff99;
    padding-bottom: 5px;
}

.section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.section table tr {
    border-bottom: 1px solid #444;
}

.section table td {
    padding: 8px;
    text-align: left;
    color: #e0e0e0;
}

.section table td:last-child {
    text-align: right;
}

.section table tr.highlight {
    background-color: #3a3a3a;
    font-weight: bold;
}

.section table tr.highlight td {
    color: #66ff99;
}

.real-cost {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #66ff99;
    border-radius: 15px;
    color: #e0e0e0;
    font-size: 18px;
    font-weight: bold;
    background-color: #333;
    text-align: center;
}