/* Notification System Styles */

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

/* Notification Dropdown */
.notifications-dropdown {
    min-width: 320px;
    max-width: 400px;
}

.notifications-dropdown .dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.notifications-dropdown .dropdown-body {
    max-height: 300px;
    overflow-y: auto;
}

.notifications-dropdown .notify-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

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

.notifications-dropdown .notify-item:last-child {
    border-bottom: none;
}

.notifications-dropdown .notify-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.notifications-dropdown .msg-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #495057;
}

.notifications-dropdown .msg-time {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notifications-dropdown .dropdown-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
}

/* Notification Cards */
.notification-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.notification-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

/* Notification Priority Colors */
.notification-priority-high {
    border-left: 4px solid #dc3545;
}

.notification-priority-medium {
    border-left: 4px solid #ffc107;
}

.notification-priority-low {
    border-left: 4px solid #28a745;
}

/* Notification Type Badges */
.notification-type-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.notification-type-event_reminder {
    background-color: #e3f2fd;
    color: #1976d2;
}

.notification-type-event_update {
    background-color: #fff3e0;
    color: #f57c00;
}

.notification-type-new_event {
    background-color: #e8f5e8;
    color: #388e3c;
}

.notification-type-system {
    background-color: #fce4ec;
    color: #c2185b;
}

.notification-type-promotional {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Notification Stats Cards */
.notification-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
}

.notification-stats-card .card-body {
    padding: 1.5rem;
}

.notification-stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.notification-stats-card .stats-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Notification Filters */
.notification-filters {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.notification-filters .form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.notification-filters .btn {
    border-radius: 6px;
    font-weight: 500;
}

/* Notification Table */
.notification-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.notification-table td {
    vertical-align: middle;
    border-color: #f1f3f4;
}

.notification-table .notification-title {
    font-weight: 600;
    color: #495057;
}

.notification-table .notification-message {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Notification Actions */
.notification-actions .btn {
    margin-right: 0.25rem;
    border-radius: 6px;
}

.notification-actions .btn:last-child {
    margin-right: 0;
}

/* Notification Preview */
.notification-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

.notification-preview .preview-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.notification-preview .preview-message {
    color: #6c757d;
    line-height: 1.5;
}

/* Notification Cleanup */
.notification-cleanup {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
}

.notification-cleanup .cleanup-warning {
    color: #856404;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notifications-dropdown {
        min-width: 280px;
        max-width: 320px;
    }

    .notification-filters .row > div {
        margin-bottom: 1rem;
    }

    .notification-table {
        font-size: 0.875rem;
    }

    .notification-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Animation Classes */
.notification-fade-in {
    animation: fadeIn 0.3s ease-in;
}

.notification-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Custom Scrollbar for Notifications */
.notifications-dropdown .dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.notifications-dropdown .dropdown-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.notifications-dropdown .dropdown-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.notifications-dropdown .dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
