* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("Chrome.gif") center center / cover no-repeat;
    filter: blur(1px);
    z-index: -2;
    opacity: 0.6;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 700px;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px 0;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.color-picker {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    cursor: pointer;
    height: 40px;
    width: 100%;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: all 0.3s ease;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 10px;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 10px;
}

.color-picker:hover {
    transform: scale(1.05);
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    position: relative;
    margin-top: 10px;
}

.toggle-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    transition: all 0.4s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.toggle-checkbox:checked + .toggle-slider {
    background-color: rgba(87, 87, 87, 0.8);
}

.toggle-checkbox:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.hover-button {
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.hover-button:hover {
    background: rgba(87, 87, 87, 0.8);
    transform: scale(1.03);
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid rgba(87, 87, 87, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#qrContainer {
    margin: 10px auto;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    display: inline-block;
}

#qrPreview {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .hover-button {
        padding: 10px;
        font-size: 14px;
    }

    #qrContainer {
        width: 100%;
        padding: 5px;
    }
}