/* Notification Bell Styles */

.notification-bell-container {
    position: relative;
    display: inline-block;
    margin: 0 10px;
    vertical-align: middle;
}

.notification-bell {
    background: none;
    border: none;
    color: #8B4513;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    padding: 5px 8px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.notification-bell:hover {
    transform: scale(1.12);
    color: #5D2E0C;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    width: 380px;
    max-height: 550px;
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

.notification-dropdown.show {
    display: flex !important;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fafafa;
}

.notification-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.notification-list {
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

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

.notification-item.unread {
    background-color: #f0f4ff;
    border-left: 3px solid #8B4513;
    padding-left: 12px;
}

.notification-icon {
    font-size: 16px;
    color: #8B4513;
    margin-top: 2px;
    min-width: 20px;
    flex-shrink: 0;
}

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

.notification-title {
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 4px 0;
    color: #333;
    word-wrap: break-word;
}

.notification-message {
    font-size: 12px;
    color: #666;
    margin: 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.notification-empty {
    padding: 40px 15px;
    text-align: center;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.notification-empty p {
    margin: 0;
}

.notification-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    text-align: center;
    flex-shrink: 0;
    background: #f9f9f9;
}

.notification-footer .btn-link {
    background: none;
    border: none;
    color: #8B4513;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notification-footer .btn-link:hover {
    text-decoration: underline;
    color: #5D2E0C;
}

#closeNotifications {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

#closeNotifications:hover {
    color: #555;
}

/* Messages Container Styles */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.messages-container .alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
}

.messages-container .alert-success {
    background-color: #28a745;
}

.messages-container .alert-error,
.messages-container .alert-danger {
    background-color: #dc3545;
}

.messages-container .alert-warning {
    background-color: #ffc107;
    color: #333;
}

.messages-container .alert-info {
    background-color: #17a2b8;
}

.messages-container .btn-close {
    filter: brightness(0) invert(1);
}

.messages-container .alert-warning .btn-close {
    filter: none;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 480px) {
    .notification-dropdown {
        width: 95vw;
        max-width: 380px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}
