* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    position: relative;
}

h1 {
    color: #4a6fa5;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.icon {
    margin-right: 8px;
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.controls {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.preview {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a6fa5;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #c3cfe2;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
}

.file-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #eef2f7;
    border-radius: 6px;
    font-size: 0.9em;
    color: #555;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 2px solid #c3cfe2;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: border 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #4a6fa5;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

input[type="range"] {
    width: calc(100% - 60px);
    height: 10px;
    margin-right: 15px;
    -webkit-appearance: none;
    background: #c3cfe2;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a6fa5;
    cursor: pointer;
}

#fontSizeValue {
    font-weight: bold;
    color: #4a6fa5;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

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

.btn.generate {
    background-color: #4a6fa5;
    color: white;
}

.btn.generate:hover {
    background-color: #3a5a80;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(74, 111, 165, 0.2);
}

.btn.download {
    background-color: #ff6b6b;
    color: white;
}

.btn.download:hover:not(:disabled) {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(255, 107, 107, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-container {
    width: 100%;
    height: 300px;
    border: 2px dashed #c3cfe2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    margin-bottom: 15px;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.canvas-placeholder {
    text-align: center;
    color: #999;
}

.canvas-placeholder .icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: #c3cfe2;
}

.preview-info {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.instructions {
    background: #eef2f7;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.instructions h3 {
    color: #4a6fa5;
    margin-bottom: 15px;
}

.instructions ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.note {
    font-style: italic;
    color: #666;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #4a6fa5;
}

.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #eaeaea;
    margin-top: 20px;
}

.studio-name {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.vm2 {
    color: #ff0000;
    font-weight: 900;
}

.studios {
    color: #000000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .studio-name {
        font-size: 20px;
    }
}