/* Notifications Modal Styles */

/* Design tokens from Figma */
:root {
    --seai-teal: #4b8f8d;
    --seai-teal-light: #5aa199;
    --seai-dark: #001a33;
    --seai-text-primary: #333333;
    --seai-text-secondary: #666666;
    --seai-border-light: #e8e8e8;
    --seai-bg-light: #f5f5f5;
    --seai-white: #ffffff;
    --seai-error: #d93434;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.notifications-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
}

.notifications-modal-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    background-color: var(--seai-teal-light) !important;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-in-out;
    overflow: hidden;
}

.notifications-modal-header {
    background-color: var(--seai-teal-light);
    color: var(--seai-white);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.notifications-modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--seai-white);
    font-size: 14px;
    font-weight: 300;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.notifications-modal-close-btn:hover {
    opacity: 0.8;
}

.notifications-modal-close-btn .material-icons {
    font-size: 18px;
    font-variation-settings: 'FILL' 1;
}

.notifications-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    color: var(--seai-white);
}

.notifications-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    background-color: var(--seai-teal-light) !important;
}

/* Filter buttons styling */
.notification-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
}

.notification-filter-btn {
    padding: 8px 16px;
    border: none;
    background-color: var(--seai-teal) !important;
    color: var(--seai-white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-filter-btn:hover {
    opacity: 0.9;
}

.notification-filter-btn.active {
    background-color: #ffffff !important;
    color: var(--seai-teal);
}

/* Notification list container */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Notification item card styling */
.notification-item {
    background-color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.notification-item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--seai-error);
    font-size: 14px;
}

.notification-item-icon::before {
    content: '';
    font-size: 12px;
}

.notification-item-unread .notification-item-icon::before {
    content: '●';
    font-size: 12px;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333333 !important;
}

.notification-item-description {
    margin: 0;
    font-size: 12px;
    color: #999999 !important;
}

.notification-item-timestamp {
    margin: 3px 0 0 0;
    font-size: 11px;
    color: #999999 !important;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #39827d;
    font-size: 14px;
}

/* Responsive design for larger screens */
@media (min-width: 768px) {
    .notifications-modal-sheet {
        height: auto;
        max-height: calc(100vh - 100px);
        width: 400px;
        max-width: none;
        left: auto;
        right: 0;
        bottom: 40px;
        top: 60px;
        transform: none;
        border-radius: 16px 0 0 16px;
        animation: slideInFromRight 0.3s ease-in-out;
        box-sizing: border-box;
    }
}
