/* Сброс базовых отступов */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f7f4eb; /* Пастельный бежевый фон всего сайта */
    color: #4a473f;            /* Темно-серый с теплым оттенком для текста */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER (Пастельный бамбук: молодой лист) --- */

.right-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 0 20px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: auto;
}

.main-nav {
    margin-right: 20px;
}

.user-name {
    color: #616b54;
    border-bottom: #222b17 solid 2px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.GPS {
    margin-right: 20px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}


.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #5b694b; /* Насыщенный бамбуковый для лого */
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: #616b54;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
    margin-left: 20px;
}

.main-nav a:hover {
    color: #3d4732; /* Потемнение при наведении */
    border-radius: 10%;
    border-bottom: solid 3px;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: #7b8e67; /* Цвет зрелого бамбука */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: solid #7b8e67;
    transition: background-color 0.2s;
}

.btn-login {
    color: #616b54;
}

.btn-export {
    background-color: #7b8e67;
    color: #ffffff;
    border-color: #7b8e67;
}

.btn-export:hover {
    background-color: #657653;
    color: #ffffff;
    border-color: #7b8e67;
}

.btn-primary {
    --bs-btn-focus-box-shadow: none;
}

.btn:hover {
    background-color: #657653;
    border-color: #7b8e67;
}

.btn:active {
    background-color: #222b17;
}

.btn-logout {
    background-color: #dfd5c6;
    color: #554e43;
}

/* --- MAIN CONTENT (Пастельный бежевый) --- */
.main-content {
    flex: 1; /* Растягивает контент, прижимая footer к низу */
    padding: 40px 0;
    background-color: #fcfaf2; /* Чуть более светлый пастельно-бежевый для контента */
}

.hero-section {
    background-color: #f3edd9; /* Бежевый акцентный фон для баннера */
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid #e6dec9;
}

.hero-section h1 {
    color: #3d4732;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Карточки моллюсков */
.recent-findings h2 {
    color: #5b694b;
    margin-bottom: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(165, 160, 145, 0.1);
    border: 1px solid #eadecc;
}

.card-title {
    overflow-wrap: break-word;
    word-break: break-word;
}

.card-image {
    height: 200px;
    background-color: #eae6db; /* Заглушка для фото */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5a091;
}

.card-body {
    padding: 20px;
}

.badge {
    display: inline-block;
    background-color: #e9edd0; /* Очень нежный бамбуковый */
    color: #5b694b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-body h3 {
    margin-bottom: 10px;
    color: #33312c;
}

.card-body p {
    font-size: 14px;
    margin-bottom: 8px;
}

.card-link {
    display: inline-block;
    margin-top: 10px;
    color: #7b8e67;
    text-decoration: none;
    font-weight: bold;
}

.card-link:hover {
    text-decoration: underline;
}

/* --- FOOTER (Пастельный бамбук: сухой/древесный оттенок) --- */
.site-footer {
    background-color: #dcdcc6; /* Чуть более глубокий пастельно-бамбуковый */
    border-top: 2px solid #ccccb3;
    padding: 30px 0 15px 0;
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info {
    flex: 2;
    min-width: 250px;
}

.footer-info h3 {
    color: #485438;
    margin-bottom: 10px;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    color: #485438;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #555e49;
    text-decoration: none;
}

.footer-links a:hover {
    color: #222b17;
}

.footer-bottom {
    width: 100%;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #c8c8b0;
    text-align: center;
    color: #6a725f;
}

/* Двухколоночный список параметров */
.param-list.two-columns {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px; /* небольшой отступ от заголовка */
}
.param-list.two-columns .form-check {
    width: 50%;
    hyphens: auto;
    padding-right: 0.5rem;
    margin-bottom: 0.4rem;
}
@media (max-width: 576px) {
    .param-list.two-columns .form-check {
        width: 100%;
        padding-right: 0;
    }
}



label {
    display: block;
}

.export-title-container {
    min-width: 100%;
    display: grid;
    grid-template-columns: 2fr 120px;
}

.export-title {
    min-width: auto;
}

/* ===== Таблица станций ===== */

.stations-table {
    width: 100%;
    table-layout: fixed; /* фиксированные колонки */
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(165, 160, 145, 0.12);
    border: 1px solid #eadecc;
}

.stations-table thead {
    background-color: #e9edd0;
}

.stations-table th {
    color: #485438;
    font-weight: 600;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 2px solid #d8ddbd;
}

.stations-table td {
    padding: 12px;
    border-bottom: 1px solid #efe7d8;
    vertical-align: middle;

    /* чтобы длинный текст не растягивал таблицу */
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

.stations-table tbody tr {
    transition: background-color 0.15s ease;
}

.stations-table tbody tr:hover {
    background-color: #f8f5ec;
}

.stations-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Ширина колонок ===== */

.stations-table th:nth-child(1),
.stations-table td:nth-child(1) {
    width: 20%;
}

.stations-table th:nth-child(2),
.stations-table td:nth-child(2) {
    width: 12%;
    text-align: center;
}

.stations-table th:nth-child(3),
.stations-table td:nth-child(3) {
    width: 22%;
}

.stations-table th:nth-child(4),
.stations-table td:nth-child(4) {
    width: 18%;
}

.stations-table th:nth-child(5),
.stations-table td:nth-child(5) {
    width: 18%;
}

.stations-table th:nth-child(6),
.stations-table td:nth-child(6) {
    width: 10%;
    text-align: center;
}

/* Кнопки действий */

.stations-table .btn {
    padding: 4px 8px;
    margin: 4px 4px 4px 4px;
    min-width: 36px;
}

.stations-table .btn-warning {
    margin-right: 4px;
}

/* ===== Адаптивность ===== */

.table-wrapper {
    border-radius: 12px;
}


.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 600px;
    max-width: 90%;
}

ul {
    padding-left: 1rem;
}