/* UESave Web Editor Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
.container { max-width: 1200px; margin: 20px auto; padding: 20px; background: rgba(255, 255, 255, 0.95); border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); }
header { text-align: center; margin-bottom: 40px; padding: 30px 0; border-bottom: 2px solid #f0f0f0; }
header h1 { color: #2c3e50; margin-bottom: 10px; font-size: 2.5rem; font-weight: 700; }
header p { color: #7f8c8d; font-size: 1.2rem; margin-bottom: 20px; }
.header-info { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.info-badge { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }
.progress-container { margin-bottom: 30px; }
.progress-steps { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; }
.step { display: flex; flex-direction: column; align-items: center; opacity: 0.5; transition: opacity 0.3s ease; }
.step.active { opacity: 1; }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: #e9ecef; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 8px; transition: background 0.3s ease; }
.step.active .step-number { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.step-label { font-size: 0.9rem; color: #6c757d; text-align: center; }
.upload-section { margin-bottom: 30px; }
.upload-section h2 { color: #2c3e50; margin-bottom: 20px; font-size: 1.5rem; }
.upload-area { border: 3px dashed #dee2e6; border-radius: 15px; padding: 40px; text-align: center; background: #f8f9fa; transition: all 0.3s ease; cursor: pointer; margin-bottom: 20px; }
.upload-area:hover { border-color: #667eea; background: #f0f4ff; }
.upload-area.dragover { border-color: #667eea; background: #e6f3ff; transform: scale(1.02); }
.upload-icon { font-size: 3rem; margin-bottom: 15px; opacity: 0.7; }
.upload-area p { margin-bottom: 10px; color: #495057; font-size: 1.1rem; }
.upload-hint { color: #6c757d; font-size: 0.9rem; margin-bottom: 20px; }
.btn { padding: 12px 24px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%); }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #218838; }
.btn-outline { background: transparent; border: 2px solid #667eea; color: #667eea; }
.btn-outline:hover { background: #667eea; color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.game-type-section { background: #f8fafc; border-radius: 12px; padding: 25px; margin-top: 20px; border: 1px solid #e2e8f0; animation: slideInUp 0.6s ease; }
.game-type-section h3 { color: #2d3748; margin-bottom: 10px; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.game-type-description { color: #718096; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; }
.game-type-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-bottom: 20px; }
.game-type-option { position: relative; }
.game-type-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.game-type-label { display: flex; align-items: center; gap: 15px; padding: 20px; background: white; border: 2px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.game-type-label:hover { border-color: #667eea; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); }
.game-type-option input[type="radio"]:checked + .game-type-label { border-color: #667eea; background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); }
.game-type-option input[type="radio"]:checked + .game-type-label::after { content: '✓'; position: absolute; top: 10px; right: 15px; width: 24px; height: 24px; background: #667eea; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; }
.game-type-icon { font-size: 2rem; opacity: 0.8; flex-shrink: 0; }
.game-type-info h4 { color: #2d3748; margin-bottom: 5px; font-size: 1.1rem; font-weight: 600; }
.game-type-info p { color: #718096; font-size: 0.9rem; margin: 0; line-height: 1.4; }
.game-type-status { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #e6fffa; border: 1px solid #81e6d9; border-radius: 8px; color: #234e52; font-size: 0.9rem; font-weight: 500; }
.status-icon { font-size: 1.1rem; }
.file-info { background: #f7fafc; border-radius: 8px; padding: 20px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.file-details { display: flex; align-items: center; gap: 15px; }
.file-icon { font-size: 2rem; opacity: 0.7; }
.file-meta p { margin-bottom: 5px; color: #495057; }
.file-meta strong { color: #2c3e50; }
.editor-section { margin-bottom: 30px; }
.editor-section h2 { color: #2c3e50; margin-bottom: 20px; font-size: 1.5rem; }
.editor-container { border: 1px solid #dee2e6; border-radius: 12px; overflow: hidden; background: white; }
.editor-toolbar { background: #f8f9fa; padding: 15px 20px; border-bottom: 1px solid #dee2e6; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.toolbar-left, .toolbar-right { display: flex; gap: 10px; align-items: center; }
.btn-icon { font-size: 1.1rem; }
.monaco-editor { min-height: 400px; }
footer { text-align: center; padding: 30px 0; border-top: 2px solid #f0f0f0; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-content p { color: #6c757d; margin: 0; }
.footer-content a { color: #667eea; text-decoration: none; }
.footer-content a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 15px; }
.link-btn { background: none; border: none; color: #667eea; text-decoration: none; cursor: pointer; padding: 5px 10px; border-radius: 5px; transition: background 0.3s ease; }
.link-btn:hover { background: #f0f4ff; }
.status-container { position: fixed; top: 20px; right: 20px; z-index: 1000; max-width: 400px; }
.status-message { padding: 15px 20px; margin-bottom: 10px; border-radius: 8px; color: white; font-weight: 500; animation: slideInRight 0.3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.status-info { background: #17a2b8; }
.status-success { background: #28a745; }
.status-error { background: #dc3545; }
.status-warning { background: #ffc107; color: #212529; }
@media (max-width: 768px) { .container { margin: 10px; padding: 15px; border-radius: 15px; } header h1 { font-size: 2rem; } .progress-steps { gap: 10px; } .step-number { width: 35px; height: 35px; font-size: 0.9rem; } .upload-area { padding: 30px 20px; } .upload-icon { font-size: 2.5rem; } .editor-toolbar { flex-direction: column; align-items: stretch; } .toolbar-left, .toolbar-right { justify-content: center; } .footer-content { flex-direction: column; text-align: center; } .file-info { flex-direction: column; align-items: stretch; gap: 15px; } .file-details { justify-content: center; } .status-container { top: 10px; right: 10px; left: 10px; max-width: none; } .game-type-section { padding: 20px; } .game-type-selector { grid-template-columns: 1fr; gap: 12px; } .game-type-label { padding: 15px; gap: 12px; } .game-type-icon { font-size: 1.5rem; } .game-type-info h4 { font-size: 1rem; } .game-type-info p { font-size: 0.85rem; } }
