/**
 * Notification Center Modal Styles
 * Slide-in panel for notification management
 */

#notification-center-modal {
    display: none;
}

#notification-center-modal.open {
    display: flex;
}

.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.2s ease-out;
}

.notification-modal-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 900px;
    height: 100vh;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

.notification-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.notification-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.notification-modal-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.notification-modal-sidebar {
    border-right: 1px solid #eee;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
}

.notification-filters {
    margin-bottom: 24px;
}

.notification-filters h3,
.notification-categories h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.notification-categories {
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.category-item:hover {
    background: #e8e8e8;
}

.category-item.active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.category-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    flex-shrink: 0;
}

.category-item.active .category-count {
    background: #0369a1;
    color: white;
}

.notification-modal-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-modal-toolbar {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.notification-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #f9f9f9;
}

.notification-search:focus {
    outline: none;
    border-color: #06b6d4;
    background: white;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.notification-toolbar-actions {
    display: flex;
    gap: 8px;
}

.notification-toolbar-actions button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.notification-toolbar-actions button:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.notification-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.notification-modal-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-modal-item:hover {
    background: #f9f9f9;
}

.notification-modal-item.unread {
    background: #f0f9ff;
}

.notification-checkbox {
    margin-top: 4px;
    cursor: pointer;
}

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

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

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

.notification-modal-item-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #999;
}

.notification-type {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.notification-modal-item-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.notification-modal-item-actions button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-modal-item-actions button:hover {
    background: #eee;
    color: #333;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.loading {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f0f0f0;
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* Notification bell button in header */
.notification-bell-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-bell-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.notification-bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    display: none;
}

.notification-bell-badge.show {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-modal-panel {
        max-width: 100%;
    }

    .notification-modal-content {
        grid-template-columns: 1fr;
    }

    .notification-modal-sidebar {
        display: none;
    }

    .notification-modal-toolbar {
        flex-wrap: wrap;
    }

    .notification-search {
        min-width: 200px;
    }

    .notification-toolbar-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .notification-modal-panel {
        max-width: 100%;
    }

    .notification-modal-toolbar {
        padding: 12px;
    }

    .notification-search {
        min-width: 100%;
    }

    .notification-modal-item {
        padding: 10px 12px;
    }

    .notification-modal-item-title {
        font-size: 12px;
    }

    .notification-modal-item-message {
        font-size: 11px;
    }
}
