/* c:/xampp/htdocs/cs/notification-styles.css */

.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--header-text-color, white); /* Use variable from main CSS */
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-bell:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.notification-bell .fa-bell {
    font-size: 20px;
}

.notification-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #e53e3e; /* Red */
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--header-bg, #ff8a00); /* Match header background */
    transform: scale(0);
    transition: transform 0.2s ease-out;
}

.notification-count.show {
    transform: scale(1);
}

.notification-dropdown {
    position: absolute;
    top: 55px; /* Position below the header */
    right: 5px;
    width: 380px;
    max-height: 400px;
    background-color: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05));
    z-index: 1000;
    overflow: hidden;
    display: none; /* Hidden by default */
    flex-direction: column;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-dropdown.show {
    display: flex;
}

.notification-header {
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-primary);
}

.notification-body {
    overflow-y: auto;
    flex-grow: 1;
}

.notification-item {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: background-color 0.2s;
    animation: fadeInItem 0.5s ease-out;
}

.notification-item:hover {
    background-color: var(--bg-tertiary, #f8fafc);
}

.notification-item.unread {
    background-color: var(--orange-light, #fff8f0);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-icon.placed { background-color: #e0f2fe; color: #0ea5e9; } /* light-blue */
.notification-icon.shipped { background-color: #dbeafe; color: #3b82f6; } /* blue */
.notification-icon.completed { background-color: #dcfce7; color: #22c55e; } /* green */
.notification-icon.cancelled { background-color: #fee2e2; color: #ef4444; } /* red */

.notification-content {
    flex-grow: 1;
}

.notification-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 500;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty .fa-bell-slash {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color, #e2e8f0);
    background-color: var(--bg-tertiary, #f8fafc);
}

@keyframes fadeInItem {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}