/**
 * Notification System Styles
 * 
 * Styles for the notification icon, badge, dropdown, and notification pages
 */

/* Notification Icon Container */
.hm-notification-container {
    position: relative;
    display: inline-block;
}

/* Notification Badge */
.hm-notification-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
    background-color: #dc3545;
    color: white;
    z-index: 10;
}

/* Notification Icon */
.hm-notification-icon {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.hm-notification-icon:hover {
    color: #ffc107;
    transform: scale(1.1);
}

/* Notification Dropdown */
.hm-notification-dropdown {
    min-width: 350px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.hm-notification-dropdown .dropdown-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

/* Notification Item in Dropdown */
.hm-notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: block;
    text-decoration: none;
    color: #333;
}

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

.hm-notification-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.hm-notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 0.9rem;
}

.hm-notification-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

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

/* View All Link */
.hm-notification-dropdown .text-center {
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #007bff;
    display: block;
    text-decoration: none;
    border-top: 1px solid #dee2e6;
}

.hm-notification-dropdown .text-center:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

/* Empty State */
.dropdown-item-text {
    padding: 1.5rem 1rem;
    text-align: center;
}

/* Notification List Page Styles */
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* List Group Items */
.list-group-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.list-group-item.list-group-item-light {
    background-color: #f8f9fa;
}

/* Badge Colors */
.badge.bg-primary {
    background-color: #007bff !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Notification Detail Page */
.notification-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

.notification-meta h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.notification-meta .badge {
    padding: 0.4em 0.6em;
    font-size: 0.85rem;
}

/* Card Styles */
.card-header h4 {
    color: #333;
    font-size: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hm-notification-dropdown {
        min-width: 300px;
        max-width: 90vw;
    }
    
    .list-group-item:hover {
        transform: none;
    }
}

/* Animation for New Notifications */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hm-notification-badge.new {
    animation: pulse 2s infinite;
}

/* Scrollbar Styling for Dropdown */
.hm-notification-dropdown::-webkit-scrollbar {
    width: 8px;
}

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

.hm-notification-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Text Decoration Override for Links */
.hm-notification-item a,
.list-group-item a {
    text-decoration: none;
}

.hm-notification-item a:hover,
.list-group-item a:hover {
    text-decoration: none;
}
