:root {
    --bg-dark: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --accent-green: #238636;
    --accent-green-hover: #2ea043;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --nav-height: 65px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Контейнеры экранов */
.tab-content {
    flex: 1;
    display: none;
    height: calc(100vh - var(--nav-height));
    position: relative;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Фрейм терминала */
.iframe-container {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Экран настроек робота */
.bot-container {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.bot-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.bot-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #21262d;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: background 0.2s;
}

.support-btn:hover {
    background: #30363d;
}

/* Нижняя панель навигации */
.bottom-nav {
    height: var(--nav-height);
    background: #161b22;
    border-top: 1px solid var(--border-color);
    display: flex;
    position: relative;
    z-index: 100;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.nav-btn.active {
    color: #58a6ff;
}