/* ---- BASE STYLES & VARIABLES ---- */
:root {
    --primary-blue: #14b8a6;       /* Teal */
    --primary-blue-hover: #0d9488; /* Darker Teal */
    --light-blue-bg: #e0f8f7;      /* Pale Teal for backgrounds */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* ---- NAVBAR ---- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 40px; background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1400px; margin: 0 auto; }

.logo { font-size: 26px; font-weight: 700; color: var(--primary-blue); }
.logo svg { width: 100px; height: auto; } /* Keeping SVG if you want it, or use text-logo */

.search-bar { display: flex; align-items: center; background-color: #f3f4f6; border-radius: 8px; padding: 8px 16px; width: 300px; }
.search-bar i { color: var(--text-muted); margin-right: 10px; }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; }

.nav-links { display: flex; gap: 10px; }
.nav-item {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: var(--text-muted); padding: 8px 16px; border-radius: 8px; font-size: 16px; gap: 4px; transition: 0.2s;
}
.nav-item.active { background-color: var(--light-blue-bg); color: var(--primary-blue); }
.nav-item:hover { color: var(--primary-blue); }

.burger-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* ---- GLOBAL LAYOUT & UTILITIES ---- */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* ---- PAGE HEADER ---- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.new-badge {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

/* ---- NOTIFICATIONS CARD & FILTERS ---- */
.notifications-card {
    margin-bottom: 24px;
}

.notification-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background-color: #f3f4f6;
    color: var(--text-main);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover {
    background-color: #e5e7eb;
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.mark-read {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.mark-read:hover {
    text-decoration: underline;
}

/* ---- NOTIFICATION LIST ITEMS ---- */
.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    transition: background-color 0.2s;
}

.notification-item:last-child {
    border-bottom: none;
}

/* The mint green background for unread items */
.notification-item.unread {
    background-color: rgba(20, 184, 166, 0.15); /* Light Teal background */
}

/* Avatar and Overlapping Badge */
.notif-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.notif-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Fallback for when there's no profile picture */
.notif-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notif-badge-icon {
    position: absolute;
    bottom: -2px;
    right: -4px;
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 11px;
}

/* Text Content */
.notif-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
}

.notif-content p {
    font-size: 14px;
    margin: 0 0 4px 0;
    line-height: 1.4;
    color: var(--text-main);
}

.notif-content p strong {
    font-weight: 600;
}

.notif-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Unread Indicator Dot */
.unread-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    align-self: center; /* Vertically centers the dot */
    flex-shrink: 0;
}

/* ---- LOAD MORE BUTTON ---- */
.load-more-container {
    text-align: center;
    padding: 24px 0;
}

.load-more-btn {
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.load-more-btn:hover {
    color: var(--primary-blue-hover);
    text-decoration: underline;
}

/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 60px 20px 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover{
    color: var(--primary-blue-hover);
    transition: all 0.2s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 18px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .notification-filters {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .mark-read {
        align-self: flex-end;
    }

    .search-bar {
        display: none;
    }
    .nav-container { padding: 0 20px; }
    .search-bar { display: none; }
    .burger-btn { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 70px; left: 0;
        width: 100%; background: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 15px 0;
    }
    .nav-links.active { display: flex; }
    .nav-item { flex-direction: row; padding: 12px 30px; width: 100%; gap: 15px; }
}