/**
 * Notifications Styles
 * Bob and Mariel Ward School of Filipino Languages
 */

/* Notification Container */
.notification-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Notification Bell Button */
.notification-bell {
    position: relative;
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.notification-bell:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Dropdown Header */
.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-mark-all {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.notification-mark-all:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* Notification List */
.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* Empty State */
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg-hover);
}

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

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

/* Notification Icon */
.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notification-icon.match_request,
.notification-icon.match_invitation {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.notification-icon.match_approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.notification-icon.match_declined,
.notification-icon.student_removed,
.notification-icon.teacher_removed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Notification Actions */
.notification-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-notif-action {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-notif-action.approve {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.btn-notif-action.approve:hover {
    background: var(--success);
    color: white;
}

.btn-notif-action.decline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.btn-notif-action.decline:hover {
    background: var(--error);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
    }

    .notification-item {
        padding: 16px;
    }
}

/* Dark Mode */
[data-theme="dark"] .notification-dropdown {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .notification-header {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(59, 130, 246, 0.1);
}
