* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: calc(100vh - 70px);
}

/* Навигация */
.main-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-brand h2 {
    margin: 0;
    font-size: 24px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
}

.user-title {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #5568d3;
}

.btn-primary {
    background-color: #667eea;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Страница логина */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.login-header h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.login-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

/* Вид полей ввода описан один раз — в Retorika\UI\FormControls, который
   попадает в <head> всех четырёх шаблонов. Правила отсюда убраны: селектор
   `.form-group select` специфичнее элементного `select` и перебивал общий
   вид на тех экранах, где поле обёрнуто в .form-group. */

.error-message {
    background-color: #ff4757;
    color: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.login-hint {
    margin-top: 20px;
    text-align: center;
    color: #777;
}

/* Заголовки страниц */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.page-header h1 {
    font-size: 28px;
    color: #333;
}

/* Таблицы */
.members-table,
.roles-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.members-table th,
.members-table td,
.roles-table th,
.roles-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.members-table th,
.roles-table th {
    background-color: #667eea;
    color: white;
    font-weight: 600;
}

.members-table tr:hover {
    background-color: #f9f9f9;
}

.badge {
    background-color: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Фильтры */
.filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filters form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filters label {
    font-weight: 600;
}

/* Вид — из FormControls; здесь только раскладка фильтров. */

/* Карточки встреч */
.meetings-list {
    display: grid;
    gap: 20px;
}

.meeting-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.meeting-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.meeting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.meeting-header h3 {
    margin: 0;
}

.meeting-header h3 a {
    color: #667eea;
    text-decoration: none;
}

.meeting-header h3 a:hover {
    text-decoration: underline;
}

.meeting-date {
    color: #777;
    font-size: 14px;
}

.meeting-theme {
    color: #555;
    margin-bottom: 15px;
}

.meeting-actions {
    display: flex;
    gap: 10px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #667eea;
}

.pagination a:hover {
    background-color: #667eea;
    color: white;
}

.pagination a.active {
    background-color: #667eea;
    color: white;
}

/* Детальная встреча */
.meeting-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.meeting-detail-header h1 {
    font-size: 32px;
    color: #667eea;
}

.meeting-detail-header .meeting-theme {
    font-size: 20px;
    color: #555;
    margin-top: 10px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section {
    margin-bottom: 40px;
}

.section h3 {
    background: #667eea;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.speech-block {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #667eea;
    margin-bottom: 20px;
}

.speech-block h4 {
    margin-bottom: 10px;
    color: #667eea;
}

.no-data {
    color: #999;
    font-style: italic;
}