/* Notifications/Alerts Page Styles */
:root {
    --primary-red: #dc2626;
    --primary-green: #16a34a;
    --light-red: #fef2f2;
    --light-green: #f0fdf4;
    --dark-red: #991b1b;
    --dark-green: #15803d;
    --gradient-red: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --gradient-green: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Alerts Header */
.alerts-header {
    background: var(--gradient-red);
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.alerts-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.alerts-header .container {
    position: relative;
    z-index: 2;
}

/* Notification Cards */
.notification-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.notification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.notification-card.priority-urgent {
    border-left: 6px solid #dc2626;
}

.notification-card.priority-high {
    border-left: 6px solid #ea580c;
}

.notification-card.priority-medium {
    border-left: 6px solid #0891b2;
}

.notification-card.priority-low {
    border-left: 6px solid #16a34a;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.notification-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.priority-urgent .notification-icon {
    background: var(--gradient-red);
}

.priority-high .notification-icon {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.priority-medium .notification-icon {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.priority-low .notification-icon {
    background: var(--gradient-green);
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

/* Priority and Category Badges */
.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.urgent {
    background: var(--light-red);
    color: var(--primary-red);
}

.priority-badge.high {
    background: #fff7ed;
    color: #ea580c;
}

.priority-badge.medium {
    background: #f0f9ff;
    color: #0891b2;
}

.priority-badge.low {
    background: var(--light-green);
    color: var(--primary-green);
}

.category-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #f3f4f6;
    color: #374151;
}

/* Sidebar Styles */
.sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar h5 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: bold;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h6 {
    color: var(--primary-green);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.filter-link {
    display: block;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.filter-link:hover, .filter-link.active {
    background: var(--light-green);
    color: var(--primary-green);
    text-decoration: none;
}

.recent-notification {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
    border-left: 3px solid var(--primary-red);
    transition: all 0.3s ease;
}

.recent-notification:hover {
    background: var(--light-red);
}

.recent-notification h6 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--primary-red);
}

.recent-notification p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-box input:focus {
    border-color: var(--primary-green);
    outline: none;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Search box width override */
.search-box.search-width {
    width: 300px;
}

/* Read full alert button */
.btn-read-alert {
    background: var(--gradient-green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-read-alert:hover {
    background: var(--dark-green);
    color: white;
    transform: translateY(-2px);
}
