/* Notification Dropdown Styles */
.notification-dropdown-container {
    position: relative;
    display: inline-block;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: transparent;
}

.notification-dropdown-card {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 380px;
    max-width: 90vw;
    max-height: 500px;
    background: var(--bg-white, white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-gray, #e5e5e5);
}

.notification-dropdown-header h6 {
    font-size: 1rem;
    color: #333;
}

.notification-dropdown-header .btn-link {
    font-size: 0.875rem;
    color: #B8621B;
}

.notification-dropdown-header .btn-link:hover {
    color: #8a4a14;
}

.notification-dropdown-body {
    flex: 1;
    overflow-y: auto;
    min-height: 100px;
}

.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #fff8f3;
}

.notification-item.unread:hover {
    background-color: #fff0e6;
}

.notification-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 1rem;
}

.notification-item.unread .notification-item-icon {
    background: #ffe9d6;
}

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

.notification-item-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.notification-item-message {
    font-size: 0.813rem;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-item-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.notification-item-badge {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: #B8621B;
    border-radius: 50%;
    margin-top: 0.5rem;
}

.notification-dropdown-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.notification-dropdown-footer .btn-link {
    color: #fff;
    font-size: 0.875rem;
    background-color: #B8621B;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-decoration: none !important;
}

.notification-dropdown-footer .btn-link:hover {
    color: #fff;
    background-color: #8a4a14;
}

/* Dark theme support */
.dark-theme .notification-dropdown-card {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dark-theme .notification-dropdown-header {
    border-bottom-color: #404040;
}

.dark-theme .notification-dropdown-header h6 {
    color: #e5e5e5;
}

.dark-theme .notification-item {
    border-bottom-color: #404040;
}

.dark-theme .notification-item:hover {
    background-color: #353535;
}

.dark-theme .notification-item.unread {
    background-color: #3a2f28;
}

.dark-theme .notification-item.unread:hover {
    background-color: #4a3a2f;
}

.dark-theme .notification-item-icon {
    background: #404040;
}

.dark-theme .notification-item.unread .notification-item-icon {
    background: #5a4a3f;
}

.dark-theme .notification-item-type {
    color: #e5e5e5;
}

.dark-theme .notification-item-message {
    color: #b0b0b0;
}

.dark-theme .notification-item-time {
    color: #808080;
}

.dark-theme .notification-dropdown-footer {
    border-top-color: #404040;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-dropdown-card {
        position: fixed !important;
        top: 4rem !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: calc(100vw - 2rem) !important;
        max-width: 420px !important;
        max-height: calc(100vh - 5rem);
        border-radius: 12px;
    }
}
