/* Основные стили */
* { 
    box-sizing: border-box;
    touch-action: manipulation;
}

body {
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
    touch-action: manipulation;
    background: #f5f5f5;
    overflow-x: hidden;
    position: relative;
}

html {
    overflow-x: hidden;
}

/* Главный контейнер */
.main-wrapper {
    display: grid;
    grid-template-columns: 0% 30% 70%;
    min-height: 100vh;
    transition: grid-template-columns 0.3s ease;
}

.main-wrapper.menu-open {
    grid-template-columns: 20% 40% 40%;
}

/* Группа кнопок управления */
.top-controls-group {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    gap: 0;
    background: #1a1a1a;
    border-radius: 0 0 4px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Общий стиль для всех кнопок в группе */
.top-controls-group button {
    padding: 8px 12px;
    background: #1a1a1a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
}

/* Убираем скругление у первой кнопки слева */
.top-controls-group button:first-child {
    border-radius: 0 0 0 4px;
}

/* Убираем скругление у последней кнопки справа */
.top-controls-group button:last-child {
    border-radius: 0 0 4px 0;
}

/* Hover эффект для всех кнопок */
.top-controls-group button:hover {
    background: #2a2a2a;
}

/* Разделитель между кнопками */
.top-controls-group button:not(:last-child) {
    border-right: 1px solid #333;
}

/* Контент для клиента */
.content-user {
    background: #ffffff;
    padding: 40px;
    padding-bottom: 100px; /* Отступ для кнопки внизу */
    border-right: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.content-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Заголовок "Что видит пользователь" */
.content-title-user {
    font-size: 14px;
    font-weight: 700;
    color: #5a5a5a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
}

/* Заголовок "Что видит разработчик" */
.content-title-dev {
    font-size: 14px;
    font-weight: 700;
    color: #5a5a5a;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0px;
}

/* Контент для разработчика */
.content-dev {
    background: #f9f9f9;
    padding: 40px;
}

.demo-info-block {
    background: #fff;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 16px;
    text-align: left;
    display: block;
}

/* Специальный стиль для блока с таблицей */
.demo-info-block.table-block {
    padding: 16px 0 0 0;
}

/* Специальный стиль для блока с кодом */
.demo-info-block.code-block {
    background: #fff;
    border: 2px solid #1a1a1a;
    padding: 0;
}

.demo-info-block.code-block .demo-info-label {
    background: #1a1a1a;
    color: #fff;
    margin: 0;
    padding: 10px 16px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.demo-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    padding: 0 12px;
}

.demo-info-value {
    font-size: 13px;
    color: #333;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}

.backend-code-pre {
    margin: 0;
    padding: 16px;
    background: #f9f9f9;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Кнопка переключения блоков */
.toggle-blocks-btn {
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.toggle-blocks-btn:hover {
    background: #e0e0e0;
}

.toggle-blocks-btn.active {
    background: #1f6aff;
    color: white;
    border-color: #1f6aff;
}


