/* Notification Bell Styles */
.notification-bell-link {
    position: relative;
    text-decoration: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--pwf-danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--pico-card-background-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}

.notification-dropdown.active {
    display: block;
}

.notification-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.notification-dropdown-item {
    padding: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    gap: 0.75rem;
}

.notification-dropdown-item:hover {
    background-color: var(--pwf-surface-hover);
}

.notification-dropdown-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-dropdown-content {
    flex: 1;
    min-width: 0;
}

.notification-dropdown-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--pico-color);
}

.notification-dropdown-message {
    font-size: 0.875rem;
    color: var(--pico-muted-color);
    margin-bottom: 0.25rem;
}

.notification-dropdown-time {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
}

.notification-dropdown-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--pico-muted-border-color);
    text-align: center;
}

.notification-dropdown-footer a {
    text-decoration: none;
    color: var(--pwf-info-text);
    font-weight: 500;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    gap: 1rem;
    position: relative;
}

.notification-item:hover {
    background-color: var(--pwf-surface-hover);
}

.notification-item.unread {
    background-color: var(--pwf-highlight);
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--pico-color);
}

.notification-item-message {
    font-size: 0.875rem;
    color: var(--pico-muted-color);
    margin-bottom: 0.25rem;
}

.notification-item-time {
    font-size: 0.75rem;
    color: var(--pico-muted-color);
}

.notification-unread-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 10px;
    height: 10px;
    background-color: var(--pwf-info);
    border-radius: 50%;
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--pico-muted-color);
}

.notifications-container {
    margin-top: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--pwf-info-text);
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--pwf-info-text);
}

/* Avatar Styles */
.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.avatar-medium {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

/* Avatar Picker Modal */
.avatar-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.avatar-picker-dialog {
    background: var(--pico-card-background-color);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.avatar-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    background: var(--pwf-surface-muted);
}

.avatar-picker-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--pico-color);
}

.avatar-picker-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--pico-muted-color);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.avatar-picker-close:hover {
    color: var(--pwf-danger-text);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.avatar-option {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    object-fit: cover;
}

.avatar-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--pwf-info-text);
}

.avatar-option.selected {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Mobile Responsive Styles for Notification Dropdown */
@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: 48px;
        left: 0.5rem;
        right: 0.5rem;
        min-width: auto;
        max-width: none;
        max-height: calc(100vh - 60px);
        border-radius: 8px;
    }

    .notification-dropdown-header {
        padding: 0.5rem 0.75rem;
    }

    .notification-dropdown-item {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .notification-dropdown-icon {
        font-size: 1.25rem;
    }

    .notification-dropdown-list {
        max-height: calc(100vh - 160px);
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .notification-dropdown {
        position: fixed;
        top: 48px;
        right: 0.5rem;
        left: auto;
        min-width: auto;
        max-width: 340px;
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 60px);
    }

    .notification-dropdown-header {
        padding: 0.75rem;
    }

    .notification-dropdown-item {
        padding: 0.75rem;
    }
}

/* Mobile Responsive Styles for Avatar */
@media (max-width: 768px) {
    .avatar-large {
        width: 100px;
        height: 100px;
    }

    .avatar-picker-dialog {
        max-width: 95%;
        max-height: 85vh;
    }

    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
        padding: 1rem;
    }

    .avatar-option {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .avatar-large {
        width: 80px;
        height: 80px;
    }

    .avatar-picker-header {
        padding: 0.75rem 1rem;
    }

    .avatar-picker-title {
        font-size: 1rem;
    }

    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .avatar-option {
        width: 60px;
        height: 60px;
    }
}
