/* css/notifications.css - Стиль как в Shop/Events */



.notifications-container {
    max-width: 1600px; /* Увеличено с 1200px */
    margin: 0 auto;
    padding: 30px 50px;
    min-height: 80vh;
}

/* Заголовок */
.notif-title-section {
    display: flex; align-items: center; margin-bottom: 30px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border-color);
}
.notif-title-section h1 {
    font-size: 2rem; color: var(--text-color); margin: 0;
    font-family: 'Minecraft', sans-serif; display: flex; gap: 15px; align-items: center;
}
.notif-title-section h1 i { color: var(--primary-color); }

/* Алерт успеха */
.notif-alert {
    padding: 15px; border-radius: 12px; margin-bottom: 30px;
    font-family: 'Minecraft', sans-serif; display: flex; align-items: center; gap: 10px;
}
.notif-alert.success {
    background: rgba(40, 199, 111, 0.15); color: #28C76F; border: 1px solid rgba(40, 199, 111, 0.3);
}

/* Лейаут */
.notif-layout { display: flex; gap: 30px; align-items: flex-start; }
.notif-content { flex: 1; }

/* Сайдбар */
.notif-sidebar {
    width: 320px; /* Увеличено с 280px для соответствия другим страницам */
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 24px; padding: 30px 25px;
    position: sticky; top: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.sidebar-header h3 {
    margin: 0 0 20px; font-size: 1.1rem; font-weight: 700;
    color: var(--text-color); text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Minecraft', sans-serif;
    border-bottom: 1px solid var(--border-color); padding-bottom: 15px;
}
.sidebar-header h3 i { color: var(--primary-color); }

/* Навигация сайдбара */
.nav-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }

.nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; border-radius: 12px; text-decoration: none;
    color: var(--text-muted); transition: var(--transition);
    border: 1px solid transparent; font-family: 'Minecraft', sans-serif; font-size: 0.95rem;
}
.nav-link span i { margin-right: 8px; width: 20px; text-align: center; }

.nav-link:hover { background: var(--hover-bg-color); color: var(--text-color); }
.nav-link.active {
    background: rgba(106, 90, 255, 0.1); color: var(--primary-color);
    border-color: var(--primary-color); font-weight: bold;
}

.badge {
    background: var(--primary-color); color: white; padding: 2px 8px;
    border-radius: 10px; font-size: 0.75rem; font-weight: bold;
}

/* Кнопки действий */
.sidebar-actions { display: flex; flex-direction: column; gap: 10px; }

.action-btn {
    width: 100%; padding: 12px; border: none; border-radius: 12px;
    cursor: pointer; font-family: 'Minecraft', sans-serif; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
}

.read-all {
    background: var(--secondary-background); color: var(--text-color); border: 1px solid var(--border-color);
}
.read-all:hover { border-color: var(--success-color, #28C76F); color: var(--success-color, #28C76F); }

.delete-all {
    background: rgba(234, 84, 85, 0.1); color: #EA5455; border: 1px solid transparent;
}
.delete-all:hover { background: rgba(234, 84, 85, 0.2); border-color: #EA5455; }

/* Список уведомлений */
.notif-list { display: flex; flex-direction: column; gap: 10px; }

.notif-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 15px; /* Уменьшены отступы */
    display: flex; gap: 15px; /* Уменьшен gap */
    transition: var(--transition); position: relative;
    align-items: flex-start;
}

.notif-card:hover { transform: translateX(5px); border-color: var(--hover-color); }

.notif-card.unread {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(to right, rgba(106, 90, 255, 0.05), var(--card-bg));
}

.notif-icon-wrapper {
    width: 45px; height: 45px; border-radius: 12px;
    background: var(--secondary-background); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.notif-card.unread .notif-icon-wrapper {
    background: rgba(106, 90, 255, 0.1); color: var(--primary-color);
}

.notif-body { flex: 1; display: flex; flex-direction: column; }

.notif-text {
    font-size: 0.95rem; color: var(--text-color); line-height: 1.4;
    margin-bottom: 6px; /* Уменьшен отступ */
}
.notif-card.unread .notif-text { font-weight: 500; }

.notif-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.8rem; color: var(--text-muted);
}

.status-badge {
    background: var(--primary-color); color: white; padding: 1px 6px;
    border-radius: 4px; font-size: 0.65rem; text-transform: uppercase; font-weight: bold;
}

.btn-delete-single {
    background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 0.9rem; padding: 5px;
    transition: color 0.2s; margin-left: 5px;
}
.btn-delete-single:hover { color: #EA5455; }

/* Пагинация */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.page-link {
    width: 35px; height: 35px; display: flex; align-items: center; justify-content: center;
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px;
    color: var(--text-color); text-decoration: none; transition: var(--transition);
}
.page-link:hover, .page-link.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Пустое состояние */
.empty-state {
    text-align: center; padding: 60px 20px;
    background: var(--card-bg); border: 1px dashed var(--border-color);
    border-radius: 16px; color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; }
.empty-state p { margin-bottom: 20px; font-size: 1.1rem; }

.btn-reset {
    display: inline-block; padding: 10px 20px;
    background: var(--secondary-background); color: var(--text-color);
    border: 1px solid var(--border-color); border-radius: 10px;
    text-decoration: none; font-family: 'Minecraft', sans-serif;
    transition: var(--transition);
}
.btn-reset:hover { border-color: var(--primary-color); color: var(--primary-color); }

@media (max-width: 900px) {
    .notif-layout { flex-direction: column; }
    .notif-sidebar { width: 100%; position: static; margin-bottom: 20px; }
    .sidebar-actions { flex-direction: row; }
    .action-btn { width: auto; flex: 1; }
}

@media (max-width: 600px) {
    .sidebar-actions { flex-direction: column; }
    .notif-card { padding: 12px; }
    .notif-icon-wrapper { width: 40px; height: 40px; font-size: 1rem; }
}