body {
    font-family: 'Helvetica Neue', sans-serif;
    background: #0f172a;
    color: #ffffff;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 1rem;
}

.container {
    text-align: center;
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 320px;
    transition: padding-bottom 0.3s ease;
}

.container.expanded {
    padding-bottom: 2.5rem; /* expands slightly when status shows */
}

input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    width: 80%;
    padding: 0.65rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.watch-button {
    background: #06b6d4;
    color: #0f172a;
}

.watch-button:hover {
    background: #0ea5e9;
}

.copy-button {
    background: #ffffff;
    color: #0f172a;
}

.copy-button:hover {
    background: #e2e8f0;
}

#status {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 0px; /* no space when empty */
    overflow: hidden;
}

#spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #bae6fd;
    border-top: 2px solid #06b6d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#status-text,
#spinner {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#status.active #status-text,
#status.active #spinner {
    opacity: 1;
}

@keyframes spin {
    from {
    transform: rotate(0deg);
    }

    to {
    transform: rotate(360deg);
    }
}

.logo {
    width: 160px;
    margin-bottom: 1rem;
}

.footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.disclaimer {
    font-size: 0.7rem;
    color: #94a3b8;
}

.small-coffee-button {
    background: #304360;
    color: #94a3b8;
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1.1;
    text-align: center;
    width: 35%;
}


.small-coffee-button:hover {
    background: #3c5377;
}

@media (max-width: 340px) {
    .container {
        width: 90%; /* makes the container adapt to smaller viewports */
    }

    input {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    button {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    .small-coffee-button {
        width: auto;
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    .footer-row {
        flex-direction: column;
        gap: 0.3rem;
    }
}
