#tool-wrapper {
    max-width: 600px;
    margin: 80px auto 40px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode #tool-wrapper {
    background: #2c3e50;
}

#tool-wrapper h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.dark-mode #tool-wrapper h1 {
    color: #ecf0f1;
}

.input-section {
    margin-bottom: 25px;
}

#qr-text {
    width: 100%;
    height: 100px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #3498db;
    border-radius: 8px;
    resize: vertical;
    background: #f8f9fa;
    color: #2c3e50;
}

.dark-mode #qr-text {
    background: #1a252f;
    color: #ecf0f1;
}

#qr-text:focus {
    outline: none;
    border-color: #2980b9;
}

.options {
    margin-bottom: 25px;
}

.option {
    margin-bottom: 15px;
}

.option > label {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.dark-mode .option > label {
    color: #ecf0f1;
}

.option span {
    color: #3498db;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d5dbdb;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.colors {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker label {
    font-weight: bold;
    color: #2c3e50;
}

.dark-mode .color-picker label {
    color: #ecf0f1;
}

input[type="color"] {
    width: 50px;
    height: 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.actions button {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#generate-btn {
    background: #2ecc71;
    color: white;
}

#generate-btn:hover {
    background: #27ae60;
    transform: scale(1.02);
}

#download-btn {
    background: #3498db;
    color: white;
}

#download-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: scale(1.02);
}

#download-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

#qr-result {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    min-height: 250px;
}

.dark-mode #qr-result {
    background: #1a252f;
}

#qr-canvas {
    display: none;
    margin: 0 auto;
}

#qr-canvas.show {
    display: block;
}

#qr-placeholder {
    color: #7f8c8d;
    padding: 80px 0;
}

@media (max-width: 480px) {
    #tool-wrapper {
        margin: 70px 15px 30px;
        padding: 20px;
    }
    
    .colors {
        flex-direction: column;
        gap: 15px;
    }
    
    .actions {
        flex-direction: column;
    }
}
