@charset "UTF-8";

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--font-color);
    padding-top: 40px;
}

.main-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.qr-container {
    background-color: var(--content-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 25px;
}

h1 {
    margin-top: 0;
    color: var(--font-color);
    text-align: center;
    margin-bottom: 10px;
}

/* Tool info banner */
.tool-info-banner {
    display: flex;
    align-items: center;
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #4CAF50;
}

.info-content {
    flex: 1;
}

.info-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #2e7d32;
}

.info-description {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.info-description strong {
    font-weight: 600;
    color: #1b5e20;
}

/* Layout */
.qr-generator-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

/* Input Section */
.qr-input-section {
    background-color: var(--alt-content-bg-color);
    border-radius: 6px;
    padding: 20px;
}

.qr-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--font-color);
}

.form-select, .form-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
	color: var(--font-color);
	background-color: var(--content-bg-color);
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
	color: var(--font-color);
	background-color: var(--content-bg-color);
}

.form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customization-section h3 {
    margin: 0 0 15px 0;
    color: var(--font-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Color Controls */
.color-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.color-group {
    display: flex;
    flex-direction: column;
}

.color-input {
    width: 50px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-top: 5px;
}

.checkbox-label input {
    margin-right: 8px;
}

/* File Input */
.file-input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.logo-preview {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.logo-image {
    max-width: 60px;
    max-height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-logo {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Generate Button */
.generate-section {
    text-align: center;
}

.primary-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-button:hover {
    background-color: #45a049;
}

/* QR Display Section */
.qr-display-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-output {
    background-color: var(--alt-content-bg-color);
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.qr-placeholder {
    color: var(--font-color);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.qr-canvas {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-info {
    margin-top: 10px;
    font-size: 14px;
    color: var(--font-color);
    text-align: center;
}

/* Download Section */
.download-section {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.download-section h4 {
    margin-bottom: 10px;
    color: var(--font-color);
}

.download-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-button {
    background-color: #f1f1f1;
    color: #333;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.secondary-button:hover {
    background-color: #e7e7e7;
}

.download-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 12px;
}

/* Success notification */
.qr-notification {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
}

.qr-notification span {
    font-size: 18px;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qr-generator-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-controls {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .secondary-button {
        width: 100px;
    }
}

