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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1ec8a5;
    min-height: 100vh;
    padding: 20px;
}

.qr-container {
    max-width: 1200px;
    margin: 0 auto;
}

.qr-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.qr-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .qr-content {
        grid-template-columns: 1fr;
    }
}

/* Input Section */
.qr-input-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.input-group-custom {
    margin-bottom: 20px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.label-icon {
    font-size: 1.3rem;
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.form-control-custom {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: #1ec8a5;
    box-shadow: 0 0 0 3px rgba(30, 200, 165, 0.1);
}

.color-picker {
    width: 100%;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-picker:hover {
    border-color: #1ec8a5;
}

.color-picker:focus {
    outline: none;
    border-color: #1ec8a5;
    box-shadow: 0 0 0 3px rgba(30, 200, 165, 0.1);
}

/* File Input */
.file-input-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.file-input {
    display: none;
}

.file-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-label:hover {
    border-color: #1ec8a5;
    background: #e0f7f3;
}

.file-icon {
    font-size: 1.5rem;
}

.btn-clear {
    padding: 10px 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #ff3838;
    transform: scale(1.1);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-custom {
    background: #1ec8a5;
    color: white;
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 200, 165, 0.4);
    background: #17b694;
}

.btn-primary-custom:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-success-custom {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger-custom {
    background: #ffe5e5;
    color: #d32f2f;
    border: 2px solid #ffcdd2;
}

.alert-icon {
    font-size: 1.3rem;
}

/* Preview Section */
.qr-preview-section {
    position: sticky;
    top: 20px;
}

.preview-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.preview-image-wrapper {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-image {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .preview-image {
        max-width: 250px;
    }
}

.preview-info {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.preview-info p {
    margin: 8px 0;
    color: #666;
    word-break: break-word;
}

.preview-info strong {
    color: #333;
}

/* Placeholder */
.preview-placeholder {
    background: white;
    border-radius: 20px;
    padding: 60px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #999;
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.placeholder-hint {
    font-size: 1rem;
    opacity: 0.7;
}
