@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

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

body {
    background: radial-gradient(circle at top left, #1A1F2D, #0B0E14);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    /* Adicionando um leve "glow" de fundo atrás do container para dar profundidade */
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(11, 14, 20, 0) 70%);
    z-index: 0;
}

.glass-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 384px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

header {
    text-align: center;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.neon-text {
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    gap: 8px;
}

input[type="number"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input[type="number"]:focus {
    border-color: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

button {
    background: transparent;
    border: 1px solid #00F0FF;
    color: #00F0FF;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

button:hover {
    background: #00F0FF;
    color: #0B0E14;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.result-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    min-height: 200px;
    /* max-height removido para exibir a tabuada completa sem barra de rolagem */
}

.result-container::-webkit-scrollbar {
    width: 5px;
}
.result-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.result-container::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 8px;
}
.result-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.6);
}

ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

li {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(10px); }
}

li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #00F0FF;
    transform: translateX(5px);
}

.placeholder-msg {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    justify-content: center;
    background: transparent;
    border: none;
    opacity: 1;
}

.placeholder-msg:hover {
    background: transparent;
    border: none;
    transform: none;
}

/* Error message styling */
.error-msg {
    color: #ff4757;
    font-size: 0.7rem;
    margin-top: 4px;
    display: none;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

footer {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    color: #00F0FF;
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Responsividade para telas menores (smartphones) */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .glass-container {
        padding: 24px 16px;
        gap: 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    button {
        padding: 10px;
        justify-content: center;
    }

    li {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .result-container {
        min-height: auto;
    }
}