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

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8f9fb;
    margin: 0;
    padding: 20px;
}

/* ✅ Container Styling */
.container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    text-align: center;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ✅ Textarea & Readability Improvements */
textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    resize: none;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* ✅ Button Group for Submit & Reset */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

button {
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* ✅ Share Section (QR Code & Link) */
.share-section {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.share-section p {
    font-size: 18px;
    word-break: break-word;
}

/* ✅ Sticky Copy Button (Always Visible) */
.copy-button {
    position: fixed;
    top: 10px;
    right: 15px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: #28a745;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* ✅ Mobile Optimization */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    .copy-button {
        top: 5px;
        right: 10px;
    }

    textarea {
        font-size: 14px;
        height: 180px;
    }

    .share-section {
        padding: 10px;
    }
}

/* ✅ Hide Elements by Default */
.hidden {
    display: none;
}
