/**
 * Notifications Page Styles
 * v20251224a
 */

/* Main Container */
.notifications-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Page Header */
.notifications-header {
    margin-bottom: 24px;
}

.notifications-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.notifications-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.notifications-mark-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.notifications-mark-all-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.notifications-mark-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter Tabs */
.notifications-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.notifications-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.notifications-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.notifications-tab.active {
    background: #1a1a2e;
    color: white;
}

.notifications-tab.active svg {
    stroke: white;
}

.notifications-tab-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-tab.active .notifications-tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Loading State */
.notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #666;
}

.notifications-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    color: #999;
}

.notifications-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.notifications-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.notifications-empty p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Notification Card */
.notification-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.notification-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-card.unread {
    background: #f8f9ff;
    border-color: #e0e5ff;
}

.notification-card.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4361ee;
    border-radius: 12px 0 0 12px;
}

.notification-card {
    position: relative;
}

/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.customer {
    background: #e8f5e9;
    color: #2e7d32;
}

.notification-icon.ai {
    background: #fff3e0;
    color: #e65100;
}

.notification-icon.system {
    background: #e3f2fd;
    color: #1565c0;
}

.notification-icon.urgent {
    background: #ffebee;
    color: #c62828;
}

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

.notification-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.notification-time {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.notification-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-action-btn:hover {
    background: #2a2a4e;
}

.notification-mark-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-mark-read-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Priority Badge */
.notification-priority {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-priority.urgent {
    background: #ffebee;
    color: #c62828;
}

.notification-priority.high {
    background: #fff3e0;
    color: #e65100;
}

/* Category Badge */
.notification-category {
    font-size: 12px;
    color: #999;
    text-transform: capitalize;
}

/* Dismiss Button */
.notification-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-card:hover .notification-dismiss {
    opacity: 1;
}

.notification-dismiss:hover {
    background: #f5f5f5;
    color: #333;
}

/* Date Separator */
.notification-date-separator {
    padding: 16px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Load More */
.notifications-load-more {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.notifications-load-more-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.notifications-load-more-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notifications-container {
        padding: 16px;
    }

    .notifications-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .notifications-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .notifications-tab {
        white-space: nowrap;
    }

    .notification-card {
        flex-direction: column;
        gap: 12px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
    }

    .notification-header {
        flex-direction: column;
        gap: 4px;
    }

    .notification-time {
        font-size: 12px;
    }
}
