/* Premium Notification Popup Styles - Clean Design */
@import url('theme.css');

.notification-popup {
    position: absolute;
    top: 70px;
    right: 2rem;
    width: 380px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: popupSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.notification-popup.show {
    display: flex;
}

/* Dark Mode */
[data-theme="dark"] .notification-popup {
    background: #1e293b;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Header - Minimal */
.notification-header {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .notification-header h3 {
    color: #f1f5f9;
}

.badge-count {
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.mark-read-btn {
    background: transparent;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.mark-read-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Segmented Control - Pill Style */
.notification-tabs-container {
    padding: 0 1.25rem 0.75rem;
}

.segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    position: relative;
}

[data-theme="dark"] .segmented-control {
    background: #0f172a;
}

.segment-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
    text-align: center;
    border-radius: 8px;
}

.segment-btn.active {
    color: #0f172a;
}

[data-theme="dark"] .segment-btn.active {
    color: #f1f5f9;
}

.segment-glider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

[data-theme="dark"] .segment-glider {
    background: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* List Area */
.notification-content-area {
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Notification Item - Card Style */
.notification-item {
    margin: 0 0.75rem 0.5rem;
    padding: 0.875rem 1rem;
    display: flex;
    gap: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    background: transparent;
    align-items: flex-start;
}

.notification-item:hover {
    background: #f8fafc;
}

[data-theme="dark"] .notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background: #eff6ff;
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(59, 130, 246, 0.1);
}

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

[data-theme="dark"] .notification-item.unread:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Icon - Compact Circle */
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.notif-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.notif-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

.notif-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

/* Dark Mode Icons */
[data-theme="dark"] .notif-icon.success {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

[data-theme="dark"] .notif-icon.warning {
    background: rgba(217, 119, 6, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .notif-icon.info {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .notif-icon.error {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

/* Content - Clean Typography */
.notif-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .notif-title {
    color: #f1f5f9;
}

/* Hide description - just show title for cleaner look */
.notif-desc {
    display: none;
}

.notif-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

[data-theme="dark"] .notif-time {
    color: #64748b;
}

/* Unread indicator dot */
.notification-item.unread .notif-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Footer */
.notification-footer {
    padding: 0.875rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

[data-theme="dark"] .notification-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.view-all-btn {
    background: transparent;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 6px;
}

.view-all-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Empty State - Minimal */
.notif-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.notif-empty i {
    font-size: 2.5rem;
    opacity: 0.4;
    color: #cbd5e1;
}

[data-theme="dark"] .notif-empty i {
    color: #475569;
}

.notif-empty p {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Animations */
@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar - Thin */
.notification-content-area::-webkit-scrollbar {
    width: 4px;
}

.notification-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.notification-content-area::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 2px;
}

[data-theme="dark"] .notification-content-area::-webkit-scrollbar-thumb {
    background: #334155;
}

.notification-content-area::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

[data-theme="dark"] .notification-content-area::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Divider between items */
.notification-item + .notification-item {
    border-top: none;
}

/* Loading spinner */
.notif-empty .fa-spinner {
    font-size: 1.5rem;
    color: #3b82f6;
    opacity: 1;
}
