/* Notification Bell */
.notification-container {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s;
}

.notification-bell:hover {
    color: #007bff;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 380px;
    max-height: 600px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Notification List */
.notification-list {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e7f3ff;
    border-left: 3px solid #007bff;
}

.notification-item.unread:hover {
    background: #d0e7ff;
}

.notification-item .notification-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.notification-item .notification-message {
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.notification-item .notification-time {
    color: #999;
    font-size: 12px;
}

.notification-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.notification-footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Scrollbar styling */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Error message */
.notification-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10000;
}

.notification-error strong {
    display: block;
    color: #dc3545;
    margin-bottom: 10px;
    font-size: 16px;
}

.notification-error p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.notification-error button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.notification-error button:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 320px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* No notifications message */
.no-notifications {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
