/* Notification System Styles */

.notification-dropdown {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.5rem;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.notification-item.unread:hover {
    background-color: #bbdefb;
}

.notification-item .dropdown-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.notification-item .dropdown-item:hover {
    background-color: #e9ecef;
}

.notification-item h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.notification-item p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.notification-item small {
    font-size: 0.75rem;
}

.notification-item i {
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
}

/* Notification Badge */
#notificationBadge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1055;
}

.toast {
    min-width: 250px;
}

/* Notification Settings */
.notification-settings {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.notification-settings .form-check {
    margin-bottom: 1rem;
}

.notification-settings .form-check-label {
    font-weight: 500;
    color: #495057;
}

.notification-settings .form-check-input:checked {
    background-color: #2196f3;
    border-color: #2196f3;
}

/* Notification History */
.notification-history {
    max-height: 500px;
    overflow-y: auto;
}

.notification-history .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.notification-history .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.notification-history .card-body {
    padding: 1rem;
}

.notification-history .notification-meta {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-history .notification-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.notification-history .notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-history .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 100% !important;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .notification-item {
        padding: 0.5rem;
    }
    
    .notification-item h6 {
        font-size: 0.8rem;
    }
    
    .notification-item p {
        font-size: 0.75rem;
    }
    
    .toast-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Animation for new notifications */
@keyframes notificationPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.notification-item.new {
    animation: notificationPulse 0.5s ease-in-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .notification-dropdown {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .notification-item {
        color: #f8f9fa;
        border-bottom-color: #495057;
    }
    
    .notification-item:hover {
        background-color: #495057;
    }
    
    .notification-item.unread {
        background-color: #1e3a5f;
        border-left-color: #4dabf7;
    }
    
    .notification-item.unread:hover {
        background-color: #2c5aa0;
    }
    
    .notification-item h6 {
        color: #f8f9fa;
    }
    
    .notification-item p {
        color: #adb5bd;
    }
    
    .notification-settings {
        background-color: #343a40;
        color: #f8f9fa;
    }
    
    .notification-settings .form-check-label {
        color: #f8f9fa;
    }
}

/* Loading states */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}

.notification-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Empty state */
.notification-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Notification filters */
.notification-filters {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.notification-filters .btn-group {
    width: 100%;
}

.notification-filters .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Notification search */
.notification-search {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.notification-search .form-control {
    font-size: 0.875rem;
    border-radius: 1.5rem;
    padding-left: 2.5rem;
}

.notification-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

/* Notification pagination */
.notification-pagination {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    text-align: center;
}

.notification-pagination .btn {
    margin: 0 0.25rem;
    font-size: 0.8rem;
}

/* Notification preferences */
.notification-preferences {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.notification-preferences h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.notification-preferences .form-check {
    margin-bottom: 0.75rem;
}

.notification-preferences .form-check-input:checked {
    background-color: #fff;
    border-color: #fff;
}

.notification-preferences .form-check-label {
    color: white;
    font-weight: 500;
}

/* Notification statistics */
.notification-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.notification-stat {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.notification-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196f3;
    margin-bottom: 0.25rem;
}

.notification-stat .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} 