body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    margin: 0;
    padding: 20px;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.app-card {
    background-color: #1e293b;
    width: 100%;
    max-width: 800px;
    margin-top: 1rem;
    padding: 30px;
    border-radius: 12px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 8px 10px -6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

h1 {
    color: #38bdf8;
    margin-top: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

h2 {
    color: #94a3b8;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}

textarea {
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
    background-color: #0b1120;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    font-family: "Fira Code", Consolas, Monaco, "Courier New", monospace;
    font-size: 15px;
    line-height: 1.5;
    padding: 16px;
    resize: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

button {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    margin: 15px 0;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background-color 0.2s,
        transform 0.1s;
}

button:hover {
    background-color: #0ea5e9;
}

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

pre {
    background: #000000;
    color: #22c55e;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    font-family: "Fira Code", Consolas, Monaco, "Courier New", monospace;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid #334155;
    box-shadow: inset 0 0 15px rgba(34, 197, 94, 0.05);
}

.footer {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

.footer a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
}

.footer a:hover {
    color: #f8fafc;
    background-color: rgba(255, 255, 255, 0.05);
}
