/* ==========================================
   Notifications Modal Styles
   ========================================== */

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Only apply these styles to notification items in the notifications modal */
.notifications-list .notification-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.75rem;
}

.notifications-list .notification-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.notifications-list .notification-item.unread {
    background: linear-gradient(to right, #f0f9ff 0%, #ffffff 100%);
    border-left: 4px solid #667eea;
}

.notifications-list .notification-item.read {
    opacity: 0.7;
}

.notifications-list .notification-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-badge.news {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.notification-badge.release {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification-badge.maintenance {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.notification-badge.feature {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.notification-badge.bug_fix {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification-priority {
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1.5px solid;
}

.notification-priority.low {
    background: #f9fafb;
    color: #6b7280;
    border-color: #d1d5db;
}

.notification-priority.normal {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.notification-priority.high {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fdba74;
}

.notification-priority.urgent {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notification-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.notifications-list .notification-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.notifications-list .notification-content {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
}

.notifications-list .notification-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.btn-mark-read {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-mark-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-mark-read:active {
    transform: translateY(0);
}

.read-indicator {
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================
   Notifications Modal - Mobile Responsive
   ========================================== */

@media (max-width: 768px) {
    /* Modal container */
    #notificationsModal .modal-container {
        width: 95% !important;
        max-width: none !important;
        max-height: 90vh !important;
        margin: 0.5rem !important;
    }

    #notificationsModal .modal-header {
        padding: 1rem 1.25rem !important;
    }

    #notificationsModal .modal-header h2 {
        font-size: 1.2rem !important;
    }

    #notificationsModal .modal-body {
        padding: 1rem !important;
        max-height: calc(90vh - 150px) !important;
    }

    /* Footer buttons - side by side */
    #notificationsModal .modal-footer {
        padding: 1rem !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
    }

    #notificationsModal .modal-footer .btn {
        flex: 1 !important;
        padding: 0.625rem 0.75rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* Notification items */
    .notifications-list .notification-item {
        padding: 1rem;
    }

    .notifications-list .notification-title {
        font-size: 1rem;
    }

    .notifications-list .notification-content {
        font-size: 0.875rem;
    }

    .notification-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }

    .notification-priority {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    #notificationsModal .modal-container {
        width: 100% !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        height: 100% !important;
    }

    #notificationsModal .modal-footer .btn {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
}
