/* vibebd.css — Общий стиль Character Gallery */

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

/* Заголовки */
h1, h2, h3 {
    color: #222;
    margin-top: 0;
}

h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

/* Единый стиль таблиц */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 30px 0;
}

table th {
    background: #f1f3f5;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Чередование строк */
table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f0f4f8;
}

/* Кнопки действий (пиктограммы) */
.action-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 8px;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f1f3f5;
}

.action-btn.edit   { color: #0066cc; }
.action-btn.delete { color: #c00; }

/* Сообщения (success / error) */
.message {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 15px;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Кнопки */
button, .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
}

/* Навбар */
.nav {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.nav a {
    margin-right: 25px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: #003366;
    text-decoration: underline;
}

/* Логотип */
.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.header-logo img {
    height: 55px;
    width: auto;
}

.header-logo h1 {
    margin: 0;
    font-size: 28px;
}
