/**
 * استایل ابزار تولید QR Code
 */

.novin-qr-generator .novin-qr-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.novin-qr-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.novin-qr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'danaFaNum', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.novin-qr-type-btn:hover {
    background: #f8f4ff;
    border-color: #7043f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 67, 242, 0.15);
}

.novin-qr-type-btn.active {
    background: linear-gradient(135deg, #7043f2 0%, #5c35c9 100%);
    border-color: #7043f2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(112, 67, 242, 0.3);
}

.novin-qr-type-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.novin-qr-type-btn:hover svg,
.novin-qr-type-btn.active svg {
    transform: scale(1.1);
}

.novin-qr-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.novin-qr-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.novin-qr-result {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
}

.novin-qr-image-container {
    display: inline-block;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.novin-qr-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.novin-qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.novin-color-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.novin-color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
}

.novin-range-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.novin-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.novin-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7043f2;
    cursor: pointer;
}

.novin-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7043f2;
    cursor: pointer;
    border: none;
}

.novin-range-value {
    font-size: 14px;
    font-weight: 600;
    color: #7043f2;
}

@media (max-width: 768px) {
    .novin-qr-type-selector {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .novin-type-btn {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .novin-qr-result {
        padding: 20px;
    }
}
