/* --- Global Styles --- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

/* For tools that need centered vertical alignment */
.centered-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.padded-centered-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 100px;
}

/* --- Navigation (back to "Other tools") --- */
.back-nav {
    position: absolute;
    top: 20px;
    left: 20px;
}

.btn-back {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    user-select: none;
    display: inline-block;
}

.btn-back:hover {
    background-color: #e9ecef;
}

/* --- UI Components (Buttons & Displays) --- */
button {
    padding: 10px 20px;
    margin: 7px;
    border: none;
    border-radius: 8px;
    background: #e9ecef;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

button:hover {
    background: #dee2e6;
    transform: translateY(-1px);
}

button:active {
    transform: scale(0.95);
}

#copyBtn {
    min-width: 90px; /* This prevents the button from shrinking or growing */
    text-align: center;
}