/* Modern Notifications Section */

/* Header */
.notifications-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 50%, #6D28D9 100%);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.25);
    position: relative;
    overflow: hidden;
}

.notifications-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.notifications-header .header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.notifications-header .header-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.notifications-header .header-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Notifications Grid */
.notifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* Notification Card */
.notification-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.notification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--card-color) 0%, var(--card-color-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-card:hover {
    border-color: var(--card-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.notification-card:hover::before {
    opacity: 1;
}

/* Card Variants */
.success-card {
    --card-color: #10b981;
    --card-color-dark: #059669;
}

.primary-card {
    --card-color: #8D3FF2;
    --card-color-dark: #7C3AED;
}

.warning-card {
    --card-color: #f59e0b;
    --card-color-dark: #d97706;
}

.info-card {
    --card-color: #3b82f6;
    --card-color-dark: #2563eb;
}

/* Card Icon */
.notification-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.success-card .card-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.primary-card .card-icon {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7C3AED;
}

.warning-card .card-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.info-card .card-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.notification-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Card Content */
.notification-card .card-content {
    flex: 1;
}

.notification-card .card-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.notification-card .card-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.card-toggle {
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    border-radius: 34px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    box-shadow: 0 0 0 4px rgba(141, 63, 242, 0.1);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 0 4px rgba(141, 63, 242, 0.1);
}

/* Footer */
.notifications-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border: 1px solid #e9d5ff;
}

.notifications-footer i {
    font-size: 20px;
    color: #8D3FF2;
    flex-shrink: 0;
}

.notifications-footer span {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .notifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .notifications-header {
        padding: 24px;
    }

    .notifications-header .header-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .notifications-header .header-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .notifications-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .notifications-header .header-content h3 {
        font-size: 22px;
    }

    .notifications-header .header-content p {
        font-size: 14px;
    }

    .notification-card {
        padding: 20px;
        gap: 12px;
    }

    .notification-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .notification-card .card-content h4 {
        font-size: 16px;
    }

    .notification-card .card-content p {
        font-size: 13px;
    }

    .toggle-switch {
        width: 48px;
        height: 26px;
    }

    .toggle-slider::before {
        height: 20px;
        width: 20px;
    }

    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(22px);
    }

    .notifications-footer {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}

/* Animation on load */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-card {
    animation: slideInUp 0.4s ease-out backwards;
}

.notification-card:nth-child(1) { animation-delay: 0.1s; }
.notification-card:nth-child(2) { animation-delay: 0.2s; }
.notification-card:nth-child(3) { animation-delay: 0.3s; }
.notification-card:nth-child(4) { animation-delay: 0.4s; }
