/* =========================
   Notifications Page - Component Styles
========================= */

/* ---------- Container & Header ---------- */
.notifications-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

/* ---------- Grid Layout ---------- */
.notifications-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .notifications-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Section Card ---------- */
.section-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.section-title {
    font-size: 1.1rem;
    display: flex;
    font-weight: bold;
    padding: 1rem;
    text-align: start;
    max-width: 500px;
    border-radius: 6px;
    color: var(--light);
}

/* ---------- Notification Link Wrapper ---------- */
.notification-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.15s ease;
}

.notification-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ---------- Notification Card ---------- */
.notification-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.notification-card:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.notification-card.unread {
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.08), #d3e2fc 70%);
}

/* Text inside card */
.notification-card p {
    margin: 0;
    font-size: 0.92rem;
}

.notification-card .meta {
    font-size: 0.78rem;
    color: #6b7280;
}

/* ---------- Notification Icon & Body ---------- */
.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-title {
    margin: 0 0 0.35rem 0;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    word-break: break-word;
}

.notification-text {
    margin: 0.35rem 0 0.6rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- Badges & Actions ---------- */
.badge-new {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 600;
}

.notification-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ---------- Messages List ---------- */
.messages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sender-name {
    font-weight: 600;
    color: var(--primary);
}
