
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: #333;
    font-size: 2.5em;
    margin: 0;
}

.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

#textInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

#textInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.logo-upload-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.logo-upload-section label {
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#logoUpload {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

#logoUpload::-webkit-file-upload-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.logo-preview {
    position: relative;
    display: inline-block;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 10px;
    background: white;
    max-width: 150px;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.remove-logo-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-logo-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#generateBtn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#generateBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#clearBtn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

#clearBtn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.output-section {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.output-section h3 {
    margin-bottom: 20px;
    color: #333;
}

#qrContainer {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#qrContainer canvas {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.qr-preview {
    margin-bottom: 30px;
    padding: 25px;
    border: 2px solid #667eea;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    text-align: center;
}

.preview-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
    word-break: break-word;
}

.generation-info {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

#downloadBtn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    margin-top: 20px;
}

#downloadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border-radius: 10px;
    border-top: 3px solid #667eea;
}

.footer p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.footer a:before {
    content: "🎥 ";
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer a:hover:before {
    opacity: 1;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .logo {
        height: 60px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .footer {
        margin-top: 20px;
        padding: 15px;
    }
    
    .footer p {
        font-size: 12px;
    }
}
