/* Notification System Styles */
.notification-container {
    position: relative;
    margin-left: 20px;
    display: inline-block;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-coral);
    border-radius: 50%;
    border: 1px solid white;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.notification-dropdown {
    position: absolute;
    top: 180%;
    right: -80px;
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Arrow */
.notification-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 86px;
    width: 12px;
    height: 12px;
    background-color: white;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
}

.new-tag {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--accent-blue);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: start;
    padding: 15px 20px;
    border-bottom: 1px solid #f6f6f6;
    transition: background-color 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notif-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(46, 204, 113, 0.1); /* Green for new */
    color: #2ecc71;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1rem;
}

.notif-icon.update {
    background-color: rgba(52, 152, 219, 0.1); /* Blue for update */
    color: #3498db;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: block;
}

.notif-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    display: block;
}

.notification-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background-color: #fbfbfb;
    border-radius: 0 0 12px 12px;
}

.notification-footer a {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.notification-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .notification-container {
        margin-left: 0;
        margin-bottom: 15px; /* In mobile menu, stack it */
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .notification-dropdown {
        position: fixed;
        top: 100px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 90%;
        right: auto;
    }
    .notification-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
    .notification-dropdown::before {
        display: none;
    }
}
