:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    margin-bottom: 5px;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.app-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.app-header p {
    color: #666;
    font-size: 1rem;
}

.app-main {
    flex: 1;
    margin-bottom: -20px;
}

.generator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.input-section, .output-section {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.style-group {
    display: flex;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.form-group input[type="range"] {
    width: calc(100% - 50px);
    margin-right: 10px;
    vertical-align: middle;
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
}

.logo-preview-container {
    margin-top: 10px;
    height: 100px;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
}

.logo-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-preview-container span {
    color: #999;
    font-size: 0.9rem;
}

.logo-controls {
    margin-top: 10px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background-color: #f0f2ff;
}

.btn-primary i, .btn-secondary i {
    margin-right: 8px;
}

.qr-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.qr-container .placeholder {
    text-align: center;
    color: #999;
}

.qr-container .placeholder i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #ddd;
}

.qr-container canvas, .qr-container svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.qr-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
}

.qr-details h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.qr-details h3 i {
    margin-right: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-item span:first-child {
    font-weight: 500;
    color: #555;
}

.app-footer {
    text-align: center;
}

.app-footer p {
    margin-bottom: 10px;
    color: #666;
}

.app-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.app-footer .social-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.app-footer .social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .generator-container {
        flex-direction: column;
    }
    
    .app-header h1 {
        font-size: 1.8rem;
    }
    
    .download-options {
        justify-content: center;
    }
    
    .btn-secondary {
        margin-right: 5px;
        margin-bottom: 5px;
    }
}