/* QR Code Generator CSS */
.qr-types-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.qr-type-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4b5563;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-type-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #d1d5db;
}

.qr-type-btn.active {
    background: var(--primary_color, #2584DC);
    color: #ffffff;
    border-color: var(--primary_color, #2584DC);
}

.qr-input-panel {
    display: none;
}

.qr-input-panel.active {
    display: block;
}

.qr-options-panel {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.qr-preview-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    min-height: 250px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.qr-preview-box canvas {
    max-width: 100%;
    height: auto !important;
}

.qr-export-btn {
    height: 48px;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

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

.color-picker-input {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 40px;
    height: 38px;
    cursor: pointer;
    padding: 2px;
    background: #ffffff;
}

.logo-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo-upload-container:hover {
    border-color: var(--primary_color, #2584DC);
    background: #eff6ff;
}

.logo-preview-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    margin-top: 8px;
}

.logo-preview-badge .close-btn {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
}

/* Custom CSS track lines & thumb styling for range sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    margin: 12px 0;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary_color, #2584DC);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: background 0.15s ease, transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

/* Firefox compatibility */
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border: none;
    border-radius: 50%;
    background: var(--primary_color, #2584DC);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: background 0.15s ease, transform 0.1s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}
