*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Inter;
	color: #3B2A1E;
}

body{
	background: #EFE6D6;
	width: 100%;
	height: 100vh;
}

.login-body{
	display: flex;
	justify-content: center;
	align-items: center;
}

.login-form{
	display: flex;
	flex-direction: column;
	width: 490px;
	background: #FBF6EC;
	border-radius: 20px;
	gap: 30px;
	justify-content: center;
	align-items: center;
	padding: 30px;
}

.login-form h1{
	font-size: 30px;
}

.login-form .form-data{
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 20px;
	justify-content: center;
	align-items: center;
}

.login-form .form-data input{
	width: 100%;
	padding: 0px 22px;
	background: #F1E6D3;
	border-radius: 10px;
	height: 54px;
	color: #3B2A1E;
	border: 0px;
	font-size: 16px;
}

.login-form .form-data input::placeholder{
	color: #3B2A1E;
	opacity: 0.8;
}

.login-form .form-data button{
	width: 100%;
	height: 54px;
	border-radius: 10px;
	background: #3B2A1E;
	color: #FBF6EC;
	transition: all .3s;
	border: 0px;
	cursor: pointer;
	font-size: 16px;
}

.login-form .form-data button:hover{
	opacity: 0.8;
}

#triangle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65; 
}

.main-body{
	display: flex;
	gap: 30px;
	padding: 30px;
}

aside{
	width: 304px;
	background: #3B2A1E;
	border-radius: 30px;
	flex-shrink: 0;
	-webkit-backdrop-filter: blur(30px);
	backdrop-filter: blur(30px);
}

.aside-content{
	padding: 30px;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.aside-content .profile{
	display: flex;
	gap: 12px;
	align-items: center;
}

.aside-content .profile p{
	font-size: 20px;
	color: #FBF6EC;
}

.aside-content .menu-aside{
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.aside-content .item-aside{
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	transition: all .3s;
}

.aside-content .item-aside:hover{
	opacity: 0.7;
}

.aside-content .item-aside.active::before{
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	width: 272px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid #FBF6EC;
}

.aside-content a{
	text-decoration: none;
}

.aside-content .item-aside p{
	text-decoration: none;
	color: #FBF6EC;
}

.logout-button{
	width: 100%;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #FBF6EC;
	background: rgba(217, 87, 74, 0.9);
	border-radius: 10px;
	transition: all .3s;
}

.logout-button:hover{
	opacity: 0.7;
}

.content {
    background: #FBF6EC;
    border-radius: 30px;
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Важно для flex-прокрутки */
}

.content h1{
	font-size: 30px;
	font-weight: 600;
}


/*  NEW */

/* admin-style.css - дополнительные стили для админ-панели */
/* Эти стили можно добавить в основной style.css */

/* ========== СТРАНИЦА ЗАЯВОК ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    color: #3B2A1E;
}

.header-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: #F1E6D3;
    color: #3B2A1E;
}

.stat-badge.all {
    background: #EDE0C9;
}

.stat-badge.pending {
    background: #FBE8D0;
    color: #E6843A;
}

.stat-badge.inwork {
    background: #DCE6F5;
    color: #3D6FC6;
}

.stat-badge.completed {
    background: #E4EED8;
    color: #5E9A4F;
}

/* Фильтры */
.filters-card {
    background: #FBF6EC;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2D3BA;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #7C6754;
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 1px solid #D9C7A9;
    border-radius: 10px;
    font-size: 14px;
    background: #FBF6EC;
    transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3B2A1E;
    box-shadow: 0 0 0 3px rgba(237, 182, 65, 0.35);
}

.search-group {
    min-width: 220px;
    flex: 1;
}

.reset-filters-btn {
    background: #F1E6D3;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #7C6754;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-filters-btn:hover {
    background: #E2D3BA;
    color: #3B2A1E;
}

/* Таблица */
.table-container {
    background: #FBF6EC;
    border-radius: 16px;
    border: 1px solid #E2D3BA;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.requests-table th {
    text-align: left;
    padding: 16px 16px;
    background: #F6EEE0;
    font-weight: 600;
    color: #3B2A1E;
    border-bottom: 1px solid #E2D3BA;
}

.requests-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F1E6D3;
    color: #3B2A1E;
}

.requests-table tr:hover {
    background: #F6EEE0;
}

.empty-row td {
    text-align: center;
    color: #A8957F;
    padding: 40px;
}

.requests-table,
.wards-table,
.events-table,
.users-table,
.registrations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px; /* Минимальная ширина для горизонтальной прокрутки */
}

/* Формы - чтобы прокручивались внутри .content */
.ward-form,
.event-form,
.user-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 8px;
}

/* Кастомный скроллбар для форм (опционально) */
.ward-form::-webkit-scrollbar,
.event-form::-webkit-scrollbar,
.user-form::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ward-form::-webkit-scrollbar-track,
.event-form::-webkit-scrollbar-track,
.user-form::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
    background: #F1E6D3;
    border-radius: 10px;
}

.ward-form::-webkit-scrollbar-thumb,
.event-form::-webkit-scrollbar-thumb,
.user-form::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: #3B2A1E;
    border-radius: 10px;
}

/* Страница с фильтрами - тоже flex структура */
.content .filters-card {
    flex-shrink: 0; /* Фильтры не сжимаются */
}

.content .pagination {
    flex-shrink: 0; /* Пагинация не сжимается */
}

/* Бейджи статусов */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.status-new {
    background: #FBE8D0;
    color: #E6843A;
}

.status-inwork {
    background: #DCE6F5;
    color: #3D6FC6;
}

.status-completed {
    background: #E4EED8;
    color: #5E9A4F;
}

.status-rejected {
    background: #F8E1DC;
    color: #D9574A;
}

/* Бейджи типов */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.type-volunteer {
    background: #EDE0C9;
    color: #3D6FC6;
}

.type-donor {
    background: #DDEEE9;
    color: #4C9A86;
}

.type-recipient {
    background: #F7E0E6;
    color: #C9587A;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn.view {
    color: #3D6FC6;
    background: #DCE6F5;
}

.action-btn.view:hover {
    background: #C9D8EF;
}

.action-btn.edit {
    color: #E6843A;
    background: #FBE8D0;
}

.action-btn.edit:hover {
    background: #F6D5AE;
}

.action-btn.delete {
    color: #D9574A;
    background: #F8E1DC;
}

.action-btn.delete:hover {
    background: #F1C4BC;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 0;
}

.page-btn {
    padding: 8px 16px;
    background: #FBF6EC;
    border: 1px solid #D9C7A9;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #3B2A1E;
}

.page-btn:hover:not(:disabled) {
    background: #F1E6D3;
    border-color: #3B2A1E;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: #FBF6EC;
    border: 1px solid #D9C7A9;
}

.page-number.active {
    background: #3B2A1E;
    color: #FBF6EC;
    border-color: #3B2A1E;
}

.page-number:hover:not(.active) {
    background: #F1E6D3;
    border-color: #3B2A1E;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #FBF6EC;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E2D3BA;
}

.modal-header h2 {
    font-size: 20px;
    margin: 0;
    color: #3B2A1E;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #A8957F;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #D9574A;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #E2D3BA;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Стили для контента модалки */
.detail-section {
    margin-bottom: 24px;
    border: 1px solid #E2D3BA;
    border-radius: 12px;
    overflow: hidden;
}

.detail-section-title {
    background: #F6EEE0;
    padding: 12px 16px;
    font-weight: 600;
    color: #3B2A1E;
    border-bottom: 1px solid #E2D3BA;
}

.detail-section-content {
    padding: 16px;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-label {
    width: 180px;
    font-weight: 500;
    color: #7C6754;
    flex-shrink: 0;
}

.detail-value {
    color: #3B2A1E;
    flex: 1;
}

.detail-value.full-width {
    margin-top: 8px;
}

.child-card {
    background: #F6EEE0;
    padding: 12px;
    border-radius: 10px;
    margin-top: 8px;
    border-left: 3px solid #3B2A1E;
}

/* Кнопки модалки */
.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn-primary {
    background: #3B2A1E;
    color: #FBF6EC;
}

.modal-btn-primary:hover {
    background: #5A4130;
}

.modal-btn-secondary {
    background: #F1E6D3;
    color: #3B2A1E;
}

.modal-btn-secondary:hover {
    background: #E2D3BA;
}

.modal-btn-danger {
    background: #F8E1DC;
    color: #D9574A;
}

.modal-btn-danger:hover {
    background: #F1C4BC;
}

.status-confirmed {
    background: #E4EED8;
    color: #5E9A4F;
}

.type-recipient-update {
    background: #DCE6F5;
    color: #3D6FC6;
}


/*  Wards */


/* ========== СТРАНИЦА ПОДОПЕЧНЫХ ========== */
.wards-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wards-table th {
    text-align: left;
    padding: 14px 12px;
    background: #F6EEE0;
    font-weight: 600;
    color: #3B2A1E;
    border-bottom: 1px solid #E2D3BA;
    font-size: 13px;
}

.wards-table td {
    padding: 12px;
    border-bottom: 1px solid #F1E6D3;
    color: #3B2A1E;
    vertical-align: top;
}

.wards-table tr:hover {
    background: #F6EEE0;
}

.text-muted {
    color: #A8957F;
    font-size: 11px;
}

.add-btn {
    background: #3B2A1E;
    color: #FBF6EC;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.add-btn:hover {
    background: #5A4130;
}

.modal-small {
    max-width: 450px;
}

.modal-large {
    max-width: 800px;
}

/* WARD-FORM */


/* ========== ФОРМА ПОДОПЕЧНОГО ========== */
.ward-form {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    height: fit-content;
    gap: 24px;
}

.form-card {
    background: #FBF6EC;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E2D3BA;
}

.form-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #3B2A1E;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3B2A1E;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #3B2A1E;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D9C7A9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B2A1E;
    box-shadow: 0 0 0 3px rgba(237, 182, 65, 0.35);
}

.hint {
    font-size: 12px;
    color: #A8957F;
    margin-bottom: 8px;
}

.child-card {
    background: #F6EEE0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid #E2D3BA;
}

.remove-child-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #F8E1DC;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #D9574A;
    font-size: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    background: #EDE0C9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chip .remove {
    cursor: pointer;
    color: #D9574A;
    font-weight: bold;
}

.doc-block {
    background: #F6EEE0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.remove-doc-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #F8E1DC;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #D9574A;
}

.add-doc-btn {
    background: none;
    border: 1px dashed #3B2A1E;
    color: #3B2A1E;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
}

.add-doc-btn:hover {
    background: #EDE0C9;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 8px;
}

.btn-primary {
    background: #3B2A1E;
    color: #FBF6EC;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5A4130;
}

.btn-secondary {
    background: #F1E6D3;
    color: #3B2A1E;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #E2D3BA;
}

.back-to-list-btn {
    background: none;
    border: none;
    color: #3B2A1E;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-to-list-btn:hover {
    text-decoration: underline;
}

/* ========== СТРАНИЦА МЕРОПРИЯТИЙ ========== */
.events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.events-table th {
    text-align: left;
    padding: 14px 12px;
    background: #F6EEE0;
    font-weight: 600;
    color: #3B2A1E;
    border-bottom: 1px solid #E2D3BA;
}

.events-table td {
    padding: 12px;
    border-bottom: 1px solid #F1E6D3;
    color: #3B2A1E;
    vertical-align: top;
}

.link-active {
    color: #5E9A4F;
    font-weight: 500;
}

.link-inactive {
    color: #D9574A;
}

.status-active {
    background: #E4EED8;
    color: #5E9A4F;
}

/* ========== ФОРМА МЕРОПРИЯТИЯ ========== */
.event-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.schedule-item {
    background: #F6EEE0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid #E2D3BA;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
    color: #3B2A1E;
}

.remove-schedule-btn {
    background: #F8E1DC;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #D9574A;
    font-size: 14px;
}

.add-schedule-btn {
    background: none;
    border: 1px dashed #3B2A1E;
    color: #3B2A1E;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
    width: 100%;
}

.add-schedule-btn:hover {
    background: #EDE0C9;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #E2D3BA;
    border-radius: 12px;
}

.user-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-checkbox-label:hover {
    background: #F1E6D3;
}

.user-checkbox-label input {
    margin-top: 2px;
}

/* ========== ЗАПИСАВШИЕСЯ ========== */
.registrations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.registrations-table th {
    text-align: left;
    padding: 14px 12px;
    background: #F6EEE0;
    font-weight: 600;
    color: #3B2A1E;
    border-bottom: 1px solid #E2D3BA;
}

.registrations-table td {
    padding: 12px;
    border-bottom: 1px solid #F1E6D3;
    color: #3B2A1E;
    vertical-align: top;
}

.action-btn.registrations {
    color: #8A5A9E;
    background: #EFE2F0;
}

.action-btn.registrations:hover {
    background: #DCC4E3;
}

.modal-btn-info {
    background: #3D6FC6;
    color: #FBF6EC;
}

.modal-btn-info:hover {
    background: #3D6FC6;
}

#regStatusSelect {
    padding: 8px 12px;
    border: 1px solid #D9C7A9;
    border-radius: 8px;
    font-size: 14px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.users-table th {
    text-align: left;
    padding: 14px 16px;
    background: #F6EEE0;
    font-weight: 600;
    color: #3B2A1E;
    border-bottom: 1px solid #E2D3BA;
}

.users-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1E6D3;
    color: #3B2A1E;
}

.users-table tr:hover {
    background: #F6EEE0;
}

/* ========== ФОРМА ПОЛЬЗОВАТЕЛЯ ========== */
.user-form {
    max-width: 700px;
    margin: 0 auto;
}

.user-form .form-card {
    background: #FBF6EC;
    border-radius: 20px;
    padding: 30px;
}

.user-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.user-form .hint {
    font-size: 12px;
    color: #A8957F;
    margin-top: 4px;
}

/* =====================================================================
   Стилистика «Карта благополучателя» (как в формах на kubanskayasemya.ru):
   кремовый фон, тёмно-коричневый текст, подсолнухи, радужная волна.
   Шрифт Inter не меняем.
   ===================================================================== */

/* Анимированные треугольники на фоне убраны — вместо них подсолнухи */
#triangle-bg {
    display: none;
}

body {
    background: #EFE6D6;
}

input, select, textarea {
    background-color: #FFFBF3;
    color: #3B2A1E;
}

input::placeholder, textarea::placeholder {
    color: #A8957F;
}

::selection {
    background: #F3D27E;
}

/* ---------- Сайдбар: светлый, классический ---------- */
aside {
    width: 264px;
    background: #FBF6EC;
    border: 1px solid #E2D3BA;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.aside-content {
    justify-content: flex-start;
    gap: 0;
    padding: 24px 16px;
}

.aside-logo {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    transition: width .3s ease, height .3s ease;
}

.aside-content .profile {
    padding: 0 12px 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid #E2D3BA;
}

.aside-content .profile img {
    width: 28px;
    height: 28px;
}

.aside-content .profile p {
    font-size: 16px;
    font-weight: 600;
    color: #3B2A1E;
}

.aside-content .menu-aside {
    gap: 4px;
}

.aside-content .item-aside {
    padding: 11px 12px;
    border-radius: 10px;
    gap: 12px;
}

.aside-content .item-aside img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.aside-content .item-aside p {
    color: #3B2A1E;
    font-size: 15px;
}

.aside-content .item-aside:hover {
    opacity: 1;
    background: #F1E6D3;
}

.aside-content .item-aside.active::before {
    display: none;
}

.aside-content .item-aside.active {
    background: #F1E6D3;
    box-shadow: inset 3px 0 0 #EDB641;
}

.aside-content .item-aside.active p {
    font-weight: 600;
}

.aside-content > form {
    margin-top: auto;
    padding-top: 16px;
}

.logout-button {
    height: 44px;
    background: transparent;
    border: 1px solid #E2D3BA !important;
    gap: 10px;
}

.logout-button img {
    width: 20px;
    height: 20px;
}

.aside-content .logout-button span {
    color: #3B2A1E;
    font-size: 15px;
}

.logout-button:hover {
    opacity: 1;
    background: #F8E1DC;
    border-color: #F1C4BC !important;
}

.sidebar-toggle-btn {
    border-color: #FBF6EC !important;
}

body.sidebar-collapsed .aside-logo {
    width: 48px;
    height: 48px;
}

body.sidebar-collapsed .aside-content .profile {
    padding: 0 0 18px;
}

body.sidebar-collapsed .aside-content .item-aside {
    padding: 11px 0;
}

/* ---------- Основная область ---------- */
.content {
    background: #FBF6EC;
    border: 1px solid #E2D3BA;
    position: relative;
}

/* радужная лента сверху, как волна на карте */
.content::before {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    top: 0;
    height: 14px;
    background: url("../img/wave-thin.svg") left center / 100% 100% no-repeat;
}

.content h1,
.page-header h1 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #3B2A1E;
}

/* заголовки таблиц и подписи полей — как «ФАМИЛИЯ ИМЯ ОТЧЕСТВО» */
table th {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #3B2A1E;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* фокус полей — жёлтый подсолнуха */
input:focus, select:focus, textarea:focus {
    border-color: #EDB641 !important;
    box-shadow: 0 0 0 3px rgba(237, 182, 65, .35) !important;
    outline: none;
}

/* кнопки */
.btn-primary {
    font-weight: 600;
    letter-spacing: .03em;
}

/* модальные окна: затемнение в тон */
.modal-overlay, .modal {
    -webkit-backdrop-filter: none;
}

/* полосы прокрутки в тон */
* {
    scrollbar-color: #D9C7A9 transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #D9C7A9; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }

/* ---------- Страница входа ---------- */
.login-body {
    background: #EFE6D6;
    min-height: 100vh;
    height: auto;
    padding: 30px 16px;
    position: relative;
    overflow-x: hidden;
}

.login-body::before {
    content: "";
    position: fixed;
    right: -40px;
    bottom: 40px;
    width: 380px;
    height: 470px;
    background: url("../img/sunflowers.svg") right bottom / contain no-repeat;
    pointer-events: none;
}

.login-body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: url("../img/wave-band.svg") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.login-form {
    position: relative;
    z-index: 1;
    border: 1px solid #E2D3BA;
    padding: 40px 36px 46px;
}

.login-form::after {
    content: "";
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 22px;
    height: 14px;
    background: url("../img/wave-thin.svg") left center / 100% 100% no-repeat;
}

.login-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.login-form h1 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-align: center;
}

.login-form .form-data input {
    background: #F1E6D3;
    border: 1.5px solid transparent;
}

.login-form .form-data input::placeholder {
    color: #7C6754;
    opacity: 1;
}

.login-form .form-data button {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .login-body::before {
        width: 200px;
        height: 250px;
        opacity: .5;
    }
}
