/* Compact QR Styles CSS - Adobe Express Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.qr-styles-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    padding: 30px;
}

.qr-preview {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

#qr-code-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#qr-canvas {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
}

.controls {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* URL Input */
.url-input {
    margin-bottom: 20px;
}

.url-input label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.url-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.url-input input:focus {
    outline: none;
    border-color: #007bff;
}

.help-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* Version Section */
.version-section {
    margin-bottom: 20px;
}

.version-section label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.version-section select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
}

.version-section select:focus {
    outline: none;
    border-color: #007bff;
}

/* Color Section */
.color-section {
    margin-bottom: 20px;
}

.color-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.color-palette {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.3);
}

.color-option::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.color-option.selected::after {
    opacity: 1;
}

/* Style Section */
.style-section {
    margin-bottom: 20px;
}

.style-section > label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.style-group {
    margin-bottom: 15px;
}

.style-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.style-options {
    display: flex;
    gap: 8px;
}

.style-option {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.style-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.style-option.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.style-option svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

/* Action Buttons */
.action-buttons {
    margin-top: 25px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qr-styles-container {
        border-radius: 15px;
    }
    
    .controls {
        padding: 20px;
    }
    
    .style-options {
        justify-content: center;
    }
    
    .color-palette {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .controls {
        padding: 15px;
    }
    
    .style-option {
        width: 36px;
        height: 36px;
    }
    
    .style-option svg {
        width: 20px;
        height: 20px;
    }
}

/* Animation for QR code updates */
#qr-canvas {
    transition: all 0.3s ease;
}

#qr-canvas:hover {
    transform: scale(1.02);
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success animation */
.success {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 