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

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

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

.login-form{
	display: flex;
	flex-direction: column;
	width: 490px;
	background: #fff;
	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: #D7E4FF;
	border-radius: 10px;
	height: 54px;
	color: #102773;
	border: 0px;
	font-size: 16px;
}

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

.login-form .form-data button{
	width: 100%;
	height: 54px;
	border-radius: 10px;
	background: #1A46FF;
	color: #fff;
	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: rgba(0, 85, 255, 0.3);
	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: #fff;
}

.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 #fff;
}

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

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

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

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

.content {
    background: #fff;
    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: #102773;
}

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

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

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

.stat-badge.pending {
    background: #fff3e0;
    color: #e67e22;
}

.stat-badge.inwork {
    background: #e3f2fd;
    color: #2196f3;
}

.stat-badge.completed {
    background: #e8f5e9;
    color: #4caf50;
}

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

.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: #5a6e8a;
}

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

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #1A46FF;
    box-shadow: 0 0 0 3px rgba(26, 70, 255, 0.1);
}

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

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

.reset-filters-btn:hover {
    background: #e4e8ef;
    color: #102773;
}

/* Таблица */
.table-container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    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: #f8f9fc;
    font-weight: 600;
    color: #102773;
    border-bottom: 1px solid #e8ecf0;
}

.requests-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    color: #2c3e50;
}

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

.empty-row td {
    text-align: center;
    color: #94a3b8;
    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: #f0f2f5;
    border-radius: 10px;
}

.ward-form::-webkit-scrollbar-thumb,
.event-form::-webkit-scrollbar-thumb,
.user-form::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: #1A46FF;
    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: #fff3e0;
    color: #e67e22;
}

.status-inwork {
    background: #e3f2fd;
    color: #2196f3;
}

.status-completed {
    background: #e8f5e9;
    color: #4caf50;
}

.status-rejected {
    background: #ffebee;
    color: #f44336;
}

/* Бейджи типов */
.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: #e8eaf6;
    color: #3f51b5;
}

.type-donor {
    background: #e0f7fa;
    color: #0097a7;
}

.type-recipient {
    background: #fce4ec;
    color: #e91e63;
}

/* Кнопки действий */
.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: #2196f3;
    background: #e3f2fd;
}

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

.action-btn.edit {
    color: #ff9800;
    background: #fff3e0;
}

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

.action-btn.delete {
    color: #f44336;
    background: #ffebee;
}

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

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

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

.page-btn:hover:not(:disabled) {
    background: #f0f2f5;
    border-color: #1A46FF;
}

.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: #fff;
    border: 1px solid #d0d5dd;
}

.page-number.active {
    background: #1A46FF;
    color: #fff;
    border-color: #1A46FF;
}

.page-number:hover:not(.active) {
    background: #f0f2f5;
    border-color: #1A46FF;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.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: #fff;
    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 #e8ecf0;
}

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

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

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

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

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

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

.detail-section-title {
    background: #f8f9fc;
    padding: 12px 16px;
    font-weight: 600;
    color: #102773;
    border-bottom: 1px solid #e8ecf0;
}

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

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

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

.detail-value {
    color: #2c3e50;
    flex: 1;
}

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

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

/* Кнопки модалки */
.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: #1A46FF;
    color: #fff;
}

.modal-btn-primary:hover {
    background: #0e3ad6;
}

.modal-btn-secondary {
    background: #f0f2f5;
    color: #102773;
}

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

.modal-btn-danger {
    background: #ffebee;
    color: #f44336;
}

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

.status-confirmed {
    background: #e8f5e9;
    color: #4caf50;
}

.type-recipient-update {
    background: #e3f2fd;
    color: #2196f3;
}


/*  Wards */


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

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

.wards-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #2c3e50;
    vertical-align: top;
}

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

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

.add-btn {
    background: #1A46FF;
    color: #fff;
    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: #0e3ad6;
}

.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: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e8ecf0;
}

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

.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: #102773;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    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: #1A46FF;
    box-shadow: 0 0 0 3px rgba(26, 70, 255, 0.1);
}

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

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

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

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

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

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

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

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

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

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

.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: #1A46FF;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0e3ad6;
}

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

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

.back-to-list-btn {
    background: none;
    border: none;
    color: #1A46FF;
    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: #f8f9fc;
    font-weight: 600;
    color: #102773;
    border-bottom: 1px solid #e8ecf0;
}

.events-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #2c3e50;
    vertical-align: top;
}

.link-active {
    color: #4caf50;
    font-weight: 500;
}

.link-inactive {
    color: #f44336;
}

.status-active {
    background: #e8f5e9;
    color: #4caf50;
}

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

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

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

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

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

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

.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 #e8ecf0;
    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: #f0f2f5;
}

.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: #f8f9fc;
    font-weight: 600;
    color: #102773;
    border-bottom: 1px solid #e8ecf0;
}

.registrations-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    color: #2c3e50;
    vertical-align: top;
}

.action-btn.registrations {
    color: #9c27b0;
    background: #f3e5f5;
}

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

.modal-btn-info {
    background: #2196f3;
    color: #fff;
}

.modal-btn-info:hover {
    background: #1976d2;
}

#regStatusSelect {
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    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: #f8f9fc;
    font-weight: 600;
    color: #102773;
    border-bottom: 1px solid #e8ecf0;
}

.users-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    color: #2c3e50;
}

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

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

.user-form .form-card {
    background: #fff;
    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: #94a3b8;
    margin-top: 4px;
}