
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(145deg, #2c2f33, #23272a);
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.8s ease;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #ffffff;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #dcdcdc;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #3b3e44;
    color: #ffffff;
    transition: box-shadow 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 8px #7289da;
}

button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #5865f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
}

/* Output section styles */
#output {
    margin-top: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
    transition: box-shadow 0.4s ease;
    animation: fadeInUp 0.5s ease;
}

#output .line {
    opacity: 0;
    animation: lineFadeIn 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }
}
