body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

#previewContainer {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-control-color {
    width: 100%;
}

.d-flex.gap-2 {
    gap: 10px;
}

/* Theme Colors */
:root {
    --theme-color: #48D1CC;
    /* Teal from screenshot */
    --theme-hover: #3EB0AC;
}

/* QR Type Selector */
.qr-type-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.qr-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.qr-type-option:hover {
    border-color: var(--theme-color);
    background: #f8f9fa;
}

.qr-type-option.selected {
    border-color: var(--theme-color);
    background: #e6f7f7;
}

.qr-type-option svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #666;
}

.qr-type-option.selected svg {
    color: var(--theme-color);
}

.qr-type-option span {
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
}

.mb-2 {
    margin-bottom: 8px !important;
}

/* Custom File Input */
.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

.custom-file-upload:hover {
    background: #e7f1ff;
    border-color: var(--theme-color);
    color: var(--theme-color);
}

input[type="file"] {
    display: none;
}

/* Button Styling */
.btn-primary,
.btn-success {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-success:hover {
    background-color: var(--theme-hover) !important;
    border-color: var(--theme-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Visual Selector Styles */
.visual-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.visual-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100px;
    /* Increased from 80px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visual-option:hover {
    border-color: var(--theme-color);
    background: #f8f9fa;
}

.visual-option.selected {
    border-color: var(--theme-color);
    background: #e0f7fa;
    /* Light teal bg */
    color: var(--theme-color);
}

.visual-option svg {
    width: 32px;
    /* Increased from 24px */
    height: 32px;
    margin-bottom: 8px;
}

.visual-option span {
    font-size: 12px;
    font-weight: 500;
}

/* Custom Flex Utilities (since BS3 might be used) */
.d-flex-custom {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.flex-grow-1 {
    flex-grow: 1;
}

.w-100 {
    width: 100%;
}

/* Accordion Styles */
details.config-section {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
}

details.config-section summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    background: #f8f9fa;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

details.config-section summary::-webkit-details-marker {
    display: none;
}

details.config-section summary::after {
    content: '+';
    font-size: 18px;
    font-weight: normal;
}

details.config-section[open] summary::after {
    content: '-';
}

details.config-section .section-content {
    padding: 15px;
    border-top: 1px solid #eee;
}

/* Color Picker */
.color-picker-input {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
}

/* Preview Container Centering */
.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    border: 1px dashed #ccc;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
}