/* Estilo inspirado en Ado (paleta oscura, azul y violeta con acentos suaves) */

body {
    background: radial-gradient(circle at top, #0b0b20 0%, #000 80%);
    font-family: 'Segoe UI', sans-serif;
    color: #e0e0ff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Tabla centrada y con efecto de neón */
table {
    border-collapse: collapse;
    background: rgba(25, 25, 50, 0.8);
    border: 2px solid #5a5aff;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(90, 90, 255, 0.6);
    padding: 10px;
}

/* Pantalla de la calculadora */
#Pantalla {
    width: 100%;
    height: 60px;
    font-size: 1.5rem;
    background: #0f0f2f;
    color: #00e0ff;
    border: none;
    border-radius: 10px;
    text-align: right;
    padding-right: 10px;
    box-shadow: inset 0 0 10px #5a5aff;
}

/* Botones */
input[type="button"] {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    margin: 5px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #202060, #1a1a40);
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Efectos al pasar el cursor */
input[type="button"]:hover {
    background: #5a5aff;
    box-shadow: 0 0 10px #5a5aff, 0 0 20px #5a5aff;
}

/* Botón de resultado (=) con color especial */
#resultado {
    background: linear-gradient(145deg, #ff004c, #c0003a);
}
#resultado:hover {
    background: #ff3370;
    box-shadow: 0 0 15px #ff3370, 0 0 30px #ff3370;
}

/* Botón de borrar */
#borrar {
    background: linear-gradient(145deg, #440000, #220000);
}
#borrar:hover {
    background: #ff0022;
    box-shadow: 0 0 10px #ff0022, 0 0 25px #ff0022;
}

/* Efecto de resplandor al presionar */
input[type="button"]:active {
    transform: scale(0.95);
    filter: brightness(1.2);
}

/* Imagen de retroceso */
a img {
    position: absolute;
    top: 20px;
    left: 20px;
    filter: drop-shadow(0 0 8px #5a5aff);
    transition: transform 0.2s ease, filter 0.2s ease;
}

a img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px #00e0ff);
}
