* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-info {
    text-align: center;
    margin-bottom: 15px;
}

.qr-benefits {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 15px;
    color: #008538;
    font-weight: 500;
}

.qr-benefits span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qr-benefits span::before {
    content: '✓';
    color: #27ae60;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
}

.color-group {
    margin-bottom: 20px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    position: relative;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    position: relative;
}

.color-circle:hover {
    transform: scale(1.1);
    border-color: #3498db;
}

.color-circle.active {
    border: 4px solid #3498db;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
}

.color-circle.active::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.color-picker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.color-picker:hover {
    transform: scale(1.1);
}

.createQRcodebutton {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.qr-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    display: none;
}

#qrcode {
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-btn {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    width: 200px;
    display: none;
}

.download-btn:hover {
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

#toggle-password {
    font-size: 18px;
    user-select: none;
    color: #34495e;
    transition: color 0.2s ease;
}

#toggle-password:hover {
    color: #3498db;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
    display: none;
}

.picker-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 300px;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 24px;
    }
    .qr-types {
        font-size: 14px;
    }
    .qr-benefits {
        font-size: 12px;
        gap: 10px;
    }
    .color-square {
        width: 150px;
        height: 150px;
    }
    .hue-bar {
        width: 25px;
        height: 150px;
    }
}

.color-area {
    display: flex;
    gap: 20px;
}

.color-square {
    width: 200px;
    height: 200px;
    position: relative;
    background: linear-gradient(to right, white, #808080), 
               linear-gradient(to top, black, transparent);
    background-blend-mode: overlay;
    border-radius: 10px;
    border: 1px solid #ddd;
    cursor: crosshair;
    overflow: hidden;
}

.hue-bar {
    width: 30px;
    height: 200px;
    background: linear-gradient(to bottom, 
        #ff0000, #ffff00, #00ff00, 
        #00ffff, #0000ff, #ff00ff, #ff0000);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    cursor: pointer;
}

.cursor {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.1s;
}

.hue-cursor {
    width: 38px;
    height: 8px;
    border-radius: 4px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
}

.values {
    display: flex;
    gap: 10px;
    justify-content: left;
}

.values div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.values label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.values input {
    width: 50px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    transition: border-color 0.2s;
    text-align: left;
}

.values input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#hex {
    width: 70px;
    text-transform: uppercase;
}

.picker-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.picker-buttons button {
    width: 100px;
    padding: 10px;
    margin-top: 0;
}

#cancelPicker {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

#cancelPicker:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

#confirmPicker {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

#confirmPicker:hover {
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

#wifiCanvas {
    display: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.size-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    justify-content: center;
    align-items: center;
}

.size-dialog {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.size-option {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: #3498db;
    background: #f5f7fa;
}

.size-option.selected {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.size-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}