/* ============================================
   HEADER NOTIFICATIONS STYLES
   ============================================ */

/* Mobile Notification Bell */
.mobile-notification-wrapper {
    position: relative;
}

.btn-notification-mobile {
    background: transparent;
    border: none;
    padding: 10px;
    position: relative;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 1.5rem;
}

.btn-notification-mobile:hover,
.btn-notification-mobile:active {
    background-color: #f7fafc;
}

.notification-badge-mobile {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Notification Dropdown */
.mobile-notification-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 80vh;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

/* Desktop Notification */
.header-notification-wrapper {
    position: relative;
}

.header-notification-btn {
    background: transparent;
    border: none;
    padding: 8px;
    position: relative;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 1.2rem;
}

.header-notification-btn:hover {
    background-color: #f7fafc;
}

.header-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 380px;
    max-width: 400px;
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

.btn-login-mobile {
    background-color: transparent;
    color: #2d3748;
    border: 2px solid #2d3748;
    padding: 6px 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.btn-login-mobile:hover {
    background-color: #2d3748;
    color: white;
}

/* Notification Dropdown Styles */
.notification-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-dropdown-header h6 {
    font-weight: 600;
    color: #212529;
}

.btn-link-custom {
    background: none;
    border: none;
    color: #2d3748;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

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

.notification-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
}

.notification-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.notification-dropdown-item {
    display: flex;
    align-items: start;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    position: relative;
}

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

.notification-dropdown-item.unread {
    background-color: #f0f7ff;
}

.notification-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-icon-wrapper.icon-blue {
    background-color: #e3f2fd;
    color: #1976d2;
}

.notification-icon-wrapper.icon-green {
    background-color: #e8f5e9;
    color: #388e3c;
}

.notification-icon-wrapper.icon-red {
    background-color: #ffebee;
    color: #d32f2f;
}

.notification-icon-wrapper.icon-yellow {
    background-color: #fff8e1;
    color: #f57c00;
}

.notification-content-wrapper {
    flex: 1;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

.notification-message {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background-color: #0066cc;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
}

.notification-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 15px;
}

.notification-empty p {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
}

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

.view-all-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .header-notification-dropdown {
        min-width: 320px;
    }
}