* {
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    transition: background 0.3s, color 0.3s;
}

/* Темы */
body.dark {
    background: #0b0b0b;
    color: #f2f2f2;
}

body.light {
    background: #f4f4f4;
    color: #111;
}

/* Header */
header {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

#themeToggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

/* Layout */
.layout {
    display: flex;
    height: calc(100vh - 70px);
}

/* Sidebar */
aside {
    width: 220px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px; /* ← регулируй высоту */
    border-right: 1px solid #333;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Кнопки категорий */
.category {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    opacity: 0.7;
}

/* Голубая полоска */
.category.active {
    opacity: 1;
}

.category.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #4cc2ff;
    border-radius: 2px;
}

/* Main */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    overflow-y: auto;
}

/* Команды */
.commands-wrapper {
    width: 100%;
    max-width: 600px;
}

.command-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 15px;
    transition: transform 0.15s;
}

body.light .command-card {
    background: #fff;
}

.command-card:hover {
    transform: translateY(-2px);
}

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

.command-text {
    font-weight: 600;
    font-size: 16px;
}

.copy {
    cursor: pointer;
    opacity: 0.7;
}

.copy:hover {
    opacity: 1;
}

.description {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.7;
}
