body {
    background-color: #0d0f12;
    color: #a3b8cc;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Контейнер для выравнивания картинки и текста в одну линию */
.header-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Отступ между рамкой с картинкой и текстом */
}

/* Тот самый красный квадратный блок-рамка */
.header-avatar-box {
    width: 80px;
    height: 80px;
    border: 0px solid #d15555; /* Твоя красная рамка */
    box-shadow: 0 0 8px rgba(209, 85, 85, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0f12;
    flex-shrink: 0; /* Чтобы рамка не сжималась */
}

/* Стили самой картинки внутри красной рамки */
.header-avatar-img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated; /* Сохраняет пиксельный стиль иконки четким */
    object-fit: cover;
}

/* Текстовая правая часть */
.header-text-side {
    flex-grow: 1;
}

/* Смещаем h1 чуть ниже для идеального выравнивания по сетке */
header h1 {
    color: #d15555;
    margin: 0 0 10px 0;
    font-size: 24pt;
    text-shadow: 0 0 5px rgba(209, 85, 85, 0.5);
    line-height: 1;
}

.server-status {
    background: #161d26;
    border-left: 4px solid #5599d1;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 10pt;
}

.status-alert {
    color: #ff3333;
    font-weight: bold;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

nav {
    margin-top: 15px;
}

nav a {
    color: #5599d1;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
    font-size: 11pt;
}

nav a:hover {
    color: #d15555;
    text-decoration: underline;
}

h2 {
    color: #e0e6ed;
    border-bottom: 1px solid #2a3644;
    padding-bottom: 5px;
    font-size: 16pt;
}

h3 {
    color: #d15555;
    font-size: 13pt;
    margin-top: 25px;
}

.experiment-card {
    background: #11161d;
    border: 1px solid #2a3644;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.experiment-meta {
    font-size: 9pt;
    color: #62778c;
    margin-bottom: 10px;
    border-bottom: 1px dashed #2a3644;
    padding-bottom: 5px;
}

.status-tag {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 8pt;
}

.status-isolated { background: #5c4314; color: #ffcc00; }
.status-purged { background: #4a1c1c; color: #ff6666; }
.status-active { background: #1c4a24; color: #66ff66; }
.status-missing { background: #3a1c4a; color: #cc66ff; }

.corrupted-text {
    color: #ff4444;
    font-family: sans-serif;
    background: rgba(255,0,0,0.1);
    padding: 0 4px;
}

footer {
    margin-top: 50px;
    border-top: 1px solid #2a3644;
    padding-top: 15px;
    font-size: 9pt;
    color: #4f5f70;
    text-align: center;
}

.terminal-box {
    background: #05070a;
    border: 1px solid #1f2833;
    padding: 15px;
    overflow-y: auto;
    max-height: 400px;
    font-size: 10pt;
}

.terminal-line {
    margin-bottom: 5px;
}

.t-input { color: #66ff66; }
.t-server { color: #5599d1; }
.t-error { color: #ff3333; }

.download-link {
    display: inline-block;
    background: #222b35;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 10pt;
    border: 1px solid #3a4959;
    margin-top: 10px;
}
.download-link:hover {
    background: #d15555;
    border-color: #ff6666;
}
