body {
    font-family: Arial, sans-serif;
    padding-top: 20px;
}

.card {
    border-radius: 10px;
}

#qrCode {
    margin: 20px 0;
    padding: 20px;
    background: transparent;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrCode canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-control[type="color"] {
    height: 38px;
    padding: 0.375rem;
}

.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn i {
    margin-right: 0.5rem;
}

#downloadBtn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.sample-shapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.sample-shape {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.sample-shape:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sample-shape.selected {
    border-color: #0d6efd;
    background-color: #e3f2fd;
}

.sample-shape-content {
    font-size: 24px;
    color: #6c757d;
}

.size-slider-container {
    display: flex;
    align-items: center;
}

.size-slider-container input {
    flex-grow: 1;
    margin-right: 10px;
}

.size-slider-container span {
    min-width: 60px;
    text-align: right;
    font-weight: 500;
}

.encoding-info {
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.alert-custom {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
}

.shape-preview {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
/* Flag styles */
.dropdown-item img {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.dropdown-item:hover img {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.dropdown-item.active img {
    opacity: 0.9;
}