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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #1a2a3a;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 3px solid #e67e22;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #1a2a3a 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.logo p {
    color: #666;
    font-size: 0.9rem;
}

.header-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-links a {
    color: #1a2a3a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.header-links a:hover {
    background: #e67e22;
    color: white;
}

/* Tool Container */
.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Controls Panel */
.controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: fit-content;
}

.controls h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #1a2a3a;
}

.control-group {
    margin-bottom: 1.25rem;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.control-group textarea,
.control-group input[type="text"],
.control-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.control-group textarea:focus,
.control-group input:focus {
    outline: none;
    border-color: #e67e22;
}

.control-group input[type="color"] {
    width: 60px;
    height: 50px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px;
}

.control-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #888;
}

.size-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.size-btn:hover {
    background: #e67e22;
    color: white;
}

.control-group input[type="number"] {
    flex: 1;
    text-align: center;
}

.control-group input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-primary {
    background: #e67e22;
    color: white;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.info-note {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

/* QR Preview */
.preview {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.preview h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #1a2a3a;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #fafafa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

#qrCanvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.preview-actions {
    margin: 1rem 0;
}

.copy-btn {
    background: #1a2a3a;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #2a3a4a;
    transform: translateY(-2px);
}

.preview-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Examples Section */
.examples {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.examples h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
}

.example-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.example-btn {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.example-btn:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    margin-top: 1rem;
    color: #666;
}

footer a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-links {
        justify-content: center;
    }
    
    .example-buttons {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .controls, .preview, .examples {
        padding: 1rem;
    }
    
    .qr-container {
        min-height: 250px;
    }
}