/* Основные стили для главной страницы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    overflow: hidden;
}

#canvas-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Стили для YAML панели */
#yaml-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border: none;
    color: #1a1a2e;
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 200;
    transition: all 0.3s ease;
}

#yaml-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#yaml-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 150;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

#yaml-panel.open {
    right: 0;
}

.yaml-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 215, 0, 0.1);
}

.yaml-header h3 {
    color: #ffd700;
    margin: 0;
    font-size: 18px;
}

.yaml-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#yaml-editor {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    resize: none;
    outline: none;
    overflow-y: auto;
}

#yaml-editor:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.yaml-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.yaml-btn {
    background: linear-gradient(135deg, #6a5acd, #483d8b);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    flex: 1;
}

.yaml-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.yaml-btn.primary {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2e;
    font-weight: bold;
}

.yaml-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.yaml-status.success {
    background: rgba(46, 139, 87, 0.2);
    color: #2e8b57;
    border: 1px solid rgba(46, 139, 87, 0.3);
}

.yaml-status.error {
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
    border: 1px solid rgba(220, 20, 60, 0.3);
}
