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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
    color: #fff;
}

#app {
    display: flex;
    width: 100vw;
    height: 100vh;
}

#sidebar {
    width: 330px;
    background-color: #242424;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 4px 0 12px rgba(0,0,0,0.3);
    z-index: 10;
    overflow-y: auto;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidebar h2 {
    font-size: 1.4rem;
    color: #4CAF50;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: #111;
    padding: 3px;
    border-radius: 6px;
}

.lang-btn {
    background: none;
    border: none;
    color: #888;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

.lang-btn.active {
    background: #4CAF50;
    color: #fff;
}

.subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-top: -10px;
    margin-bottom: 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    color: #ccc;
}

.input-group input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #4CAF50;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.btn {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn.primary { background-color: #4CAF50; color: white; }
.btn.primary:hover { background-color: #45a049; }

.btn.danger { background-color: #f44336; color: white; }
.btn.danger:hover { background-color: #da190b; }

.btn.success { background-color: #2196F3; color: white; }
.btn.success:hover { background-color: #0b7dda; }

.guide-box {
    margin-top: auto;
    background: #181818;
    padding: 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    border-left: 4px solid #4CAF50;
}

.guide-box h3 {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.guide-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.delete-tip {
    font-size: 0.78rem;
    color: #aaa;
    border-top: 1px solid #333;
    padding-top: 6px;
}

.axis-x { color: #ff4d4d; font-weight: bold; }
.axis-y { color: #4dff4d; font-weight: bold; }
.axis-z { color: #4d88ff; font-weight: bold; }

#visualization {
    flex: 1;
    height: 100%;
    position: relative;
}
