.secret-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 600px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.secret-box label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.logo {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 150px; /* You can bump to 180–200px if it feels small */
    height: auto;
    opacity: 0.95; /* Slight transparency keeps it from overpowering text */
}

@media (min-width: 700px) {
    .logo {
        max-width: 180px;
    }
}
/* --- Layout and Header --- */
body {
    font-family: system-ui, sans-serif;
    background: #fafafa;
    color: #222;
    text-align: center;
    margin: 2rem auto;
    max-width: 700px;
    line-height: 1.5;
}

.header {
    margin-bottom: 2rem;
}

.logo {
    display: block;
    margin: 0 auto 0.5rem auto;
    max-width: 160px;
    height: auto;
    opacity: 0.95;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.divider {
    width: 60%;
    margin: 1rem auto 1.5rem auto;
    border: none;
    border-top: 1px solid #ddd;
}

/* --- Secret Box --- */
.secret-box {
    margin: 1.5rem auto;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 90vw; /* keep it responsive on narrow screens */
    width: 600px; /* but cap it gracefully for desktops */
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    text-align: left;
}

    .secret-box label {
        font-weight: bold;
        display: block;
        margin-bottom: 0.5rem;
    }

button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #2e7d32;
    color: white;
    cursor: pointer;
}

    button:hover {
        background: #256628;
    }

/* --- Fix long secret wrapping --- */
.secret-box pre {
    white-space: pre-wrap; /* allow wrapping */
    word-wrap: break-word; /* legacy support */
    overflow-wrap: anywhere; /* modern support */
    max-width: 100%; /* stay within parent box */
    display: block;
    margin: 0; /* reset extra margins */
    padding: 0;
}

/* === Create Page Styles (migrated from create.html) === */

body.create-page {
    background: #fafafa;
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.4;
    font-family: system-ui, sans-serif;
}

    body.create-page h1 {
        text-align: center;
    }

#createForm textarea {
    width: 100%;
    min-height: 220px;
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize:vertical;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

#createForm button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
}

#result {
    margin-top: 2rem;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 8px;
    display: none;
}

.field {
    margin-bottom: 0.5rem;
}

input[readonly] {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.9rem;
}

#user-info {
    text-align: right;
    font-size: 0.9rem;
    color: #555;
}

#version-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-top-left-radius: 6px;
    z-index: 9999;
    font-family: system-ui, sans-serif;
    pointer-events: none; /* prevents accidental clicks */
}