* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: radial-gradient( circle farthest-corner at 17.6% 50.7%,  rgba(25,0,184,1) 10%, rgb(9, 1, 46) 90% );
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
header {
    margin-top: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
}

.subtitle {
    opacity: 0.8;
    margin-top: 5px;
}

.name {
    color: #00eaff;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
    margin-bottom: 15px;
}

button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background: #ff00ea;
    color: #000;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,234,255,0.4);
}

#status {
    margin-top: 15px;
    min-height: 20px;
    opacity: 0.9;
}


/* QR */
#img {
    display: none;
    margin: 20px auto;
    width: 200px;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

#link {
    display: none;
    margin-top: 10px;
    color: #00eaff;
    text-decoration: none;
    font-weight: bold;
}
.preview-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 8px;
    min-height: 18px;
    text-align: center;
}

.hint {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.8;
}
.preview-blur {
    filter: blur(6px);
    opacity: 0.6;
    transition: 0.3s ease;
}


#clearBtn {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
    background: #ff4d4d;
    color: white;
}


#clearBtn:hover {
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    opacity: 0.8;
}

.socials {
    margin: 10px 0;
}

.socials a {
    margin: 0 10px;
    color: #25dfd5;
    text-decoration: none;
}

.watermark {
    font-size: 0.8rem;
    opacity: 0.6;
}
.format-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #00eaff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}
