/* --- General Page Styles --- */
main.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 120px;
    min-height: 80vh;
}

h1 {
    text-align: center;
    font-family: "Amarante", serif;
    color: var(--primary-dark);
    font-size: 2.5em; /* Slightly larger */
    margin-bottom: 40px;
    margin-top: -40px;
    /* Adding a subtle text shadow for depth */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* --- Enhanced Loading Spinner --- */
.spinner-container {
    display: flex;
    justify-content: center;
    padding: 60px;
}

.spinner {
    border: 6px solid rgba(85, 139, 47, 0.2);
    border-top-color: var(--primary-dark);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.2s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Notifications Container --- */
.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Slightly more spacing */
}

/* --- HEBBI Notification Item --- */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    background-color: var(--background-white);
    border-radius: 12px; /* Smoother radius */
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden; /* For pseudo-element effects */
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- Special Style for Unread Notifications --- */
.notification-item.unread {
    /* Glassmorphism / Frosted Glass Effect */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 5px solid var(--accent-dark);
}

.notification-icon {
    font-size: 1.8em; /* Bigger icon */
    color: var(--primary-dark);
    margin-top: 3px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.notification-item:hover .notification-icon {
    transform: scale(1.1);
}

.notification-content {
    flex: 1;
}

.notification-message {
    margin: 0 0 8px 0; /* Add margin-bottom */
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 500;
}

.notification-timestamp {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Adding a clock icon before timestamp for better UI */
.notification-timestamp::before {
    content: '\f017'; /* FontAwesome clock icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* --- Engaging Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--background-white), var(--background-main));
    border-radius: 12px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 5em;
    margin-bottom: 25px;
    color: var(--primary-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.empty-state p {
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: var(--text-on-primary);
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(85, 139, 47, 0.4);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(85, 139, 47, 0.5);
}