:root {
    --primary: #8e9eab;
    --secondary: #eef2f3;
    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-color: #2d3748;
    --accent: #ff9a9e;
    --accent-gradient: linear-gradient(to right, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --bg-gradient: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto';
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: var(--bg-gradient);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

.background-blobs::before,
.background-blobs::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
}

.background-blobs::before {
    background: #ff9a9e;
    top: 10%;
    left: 20%;
    animation: float 8s infinite alternate;
}

.background-blobs::after {
    background: #a18cd1;
    bottom: 10%;
    right: 20%;
    animation: float 8s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, -30px);
    }
}

.container {
    width: 90%;
    max-width: 500px;
    padding: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
    font-size: 2rem;
}

.subtitle {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 32px;
    font-weight: 500;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    color: #1a202c;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 500;
}

input:focus {
    background: #fff;
    border-color: #a18cd1;
    box-shadow: 0 0 0 4px rgba(161, 140, 209, 0.1);
}

input::placeholder {
    color: #718096;
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background-image: var(--accent-gradient);
    color: #1a202c;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.5);
}

button:active {
    transform: translateY(1px);
}

#result-area {
    margin-top: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    max-height: 200px;
    opacity: 1;
}

.result-hidden {
    margin-top: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
}

pre {
    background: rgba(255, 255, 255, 0.5);
    padding: 16px;
    border-radius: 12px;
    font-family: 'Courier New';
    font-size: 0.9rem;
    color: #000000;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.3s;
}

pre:not(:empty) {
    display: block;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .background-blobs::before,
    .background-blobs::after {
        width: 200px;
        height: 200px;
    }
}

footer {
    position: fixed;
    bottom: 20px;
    text-align: center;
    color: #1a202c;
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}