body {
    background: #f4f4f7;
    margin: 0;
    padding: 20px;
    font-family: sans-serif;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
/*header*/

/* Обновленная компактная шапка */
.app-header {
    padding: 10px 20px;
    margin-bottom: 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}


.version-badge {
    font-size: 0.7rem;
    background: #e8e8ed;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Сбрасываем жирные отступы h1, сохраняя компактность */
h1.brand-name {
    display: inline; /* Чтобы быть в одну строку с бейджем */
    margin: 0;
    padding: 0;
    font-size: 1.1rem; /* Тот же размер, что был у span */
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-sub {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
}

.seo-keywords {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin-left: 5px;
}
/* Прячем на совсем маленьких экранах, чтобы не ломать верстку */
@media (max-width: 600px) {
    .seo-keywords { display: none !important; }
}

/* Переключатель языков */
.lang-switch {
    font-size: 0.8rem;
    font-weight: bold;
}

.lang-switch a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.lang-switch a:hover, .lang-switch a.active {
    color: #007bff;
}

.lang-switch .sep {
    color: #eee;
    margin: 0 4px;
}

/* Компактная кнопка доната */
.donate-mini-btn {
    font-size: 0.8rem;
    font-weight: bold;
    color: #d32f2f;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #f8d7da;
    border-radius: 20px;
    transition: 0.2s;
}

.donate-mini-btn:hover {
    background: #fff5f5;
    border-color: #d32f2f;
}


.tg-icon-link {
    display: flex;
    align-items: center;
    color: #0088cc; /* Фирменный цвет ТГ */
    text-decoration: none;
    transition: opacity 0.2s;
 /*   margin: 0 15px;*/ /* Отступы по бокам */
}

.tg-icon-link:hover {
    opacity: 0.7;
}

/* На мобилках можно чуть уменьшить отступы */
@media (max-width: 600px) {
    .tg-icon-link { margin: 0 8px; }
}



/* ТРИ РАВНЫЕ КОЛОНКИ */
/* Сетка основного контейнера */
.three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Три равные колонки */
    gap: 20px;
    margin-top: 20px;
}

/* Контейнер вкладок */
.tabs {
    display: flex;
    background: #eee;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Кнопки-вкладки */
.tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    color: #666;
    transition: 0.3s;
}

/* Активная вкладка */
.tab-btn.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hidden { display: none !important; }

/* Редактор */
.column-editor { display: flex; flex-direction: column; }
#textInput { flex-grow: 1; min-height: 400px; width: 100%; border: 1px solid #ddd; padding: 10px; box-sizing: border-box; }

/* Превью */
.canvas-wrapper { 
    background: #eee; border: 1px dashed #ccc; padding: 10px; 
    margin-bottom: 15px; display: flex; justify-content: center;
}
#mainCanvas { background: white; max-width: 100%; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* Кнопки */
button { width: 100%; padding: 12px; margin-bottom: 10px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; }
.btn-connect { background: #007bff; color: white; }
.btn-print { background: #28a745; color: white; font-size: 1.2em; height: 60px; }
.btn-print:disabled { background: #ccc; }

/* Настройки */
.settings-group { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.settings-group:last-child { border: none; }
.param { margin-bottom: 15px; }
.param label { display: block; font-size: 12px; color: #666; margin-bottom: 5px; }

select#driverSelect {
    padding:10px 0;
  max-width:200px  
}
