﻿.notif-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(59,130,246,0.35);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 0 0 2px rgba(59,130,246,0.08);
    padding: 12px;
    margin-bottom: 10px;
    font-family: system-ui;
}

.notif-main {
    display: flex;
    gap: 12px;
}

.notif-icon {

    border-radius: 12px;
    display: flex;
    align-items: start;
    justify-content: center;
}




.notif-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-system {
    display: flex;
    gap: 6px;
    font-size: 12px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.container-header .left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.container-header .right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.system-name {
    color: #3b82f6;
}

.time {
    color: #9ca3af;
}

.notif-title-card {
    font-weight: 600;
    margin-top: 2px;
}


.notif-body {
    margin-top: 6px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    max-height: 44px;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    transition: max-height 0.25s ease;
}

    .notif-body.expanded {
        max-height: 500px;
    }


.notif-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.close-btn {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/*.chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    cursor: pointer;
    transition: transform 0.2s;
}*/

.container-chevron, .chevron {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

    .container-chevron::before, .chevron::before {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid #6b7280;
        border-bottom: 2px solid #6b7280;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .container-chevron.rotated::before, .chevron.rotated::before {
        transform: rotate(-180deg);
    }

.rotated {
    transform: rotate(-135deg);
}


.notif-container {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(59,130,246,0.35);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 0 0 2px rgba(59,130,246,0.08);
    overflow: hidden;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
}

.container-summary {
    padding: 12px;
    font-weight: 600;
}

.container-body {
    display: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.container-footer {
    display: none;
    text-align: center;
    padding: 10px;
    color: #3b82f6;
    cursor: pointer;
}

/* ===== Forced Modal (UserNotification) — Enterprise Grade ===== */
.sn-forced-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, 0.7);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: snForceFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.sn-forced-modal-closing {
    animation: snForceFadeOut 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sn-forced-modal-closing .sn-forced-modal {
    animation: snForceModalExit 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes snForceFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes snForceFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes snForceSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes snForceModalExit {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95) translateY(20px);
    }
}

@keyframes snForceCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes snForcePulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes snForceRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sn-forced-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 640px;
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.1),
        0 48px 96px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    animation: snForceSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.sn-forced-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sn-forced-modal-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sn-forced-modal-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 10%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sn-forced-modal-header-left {
    flex-shrink: 0;
    z-index: 1;
}

.sn-forced-modal-icon-ring {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-forced-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba(217, 119, 6, 0.4),
        0 0 0 3px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.sn-forced-modal-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    margin-left: -27px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.3);
    animation: snForcePulse 2s ease-out infinite;
}

.sn-forced-modal-header-center {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.sn-forced-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.sn-forced-modal-subtitle {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

.sn-forced-modal-header-right {
    flex-shrink: 0;
    z-index: 1;
}

.sn-forced-modal-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.sn-forced-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(90deg);
}

.sn-forced-modal-close:active {
    transform: rotate(90deg) scale(0.9);
}

.sn-forced-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    max-height: 52vh;
    background: #f8fafc;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sn-forced-modal-body::-webkit-scrollbar {
    width: 6px;
}

.sn-forced-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.sn-forced-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sn-forced-card {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    opacity: 0;
    animation: snForceCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sn-forced-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sn-forced-card:last-child {
    margin-bottom: 0;
}

.sn-forced-card-left {
    flex-shrink: 0;
}

.sn-forced-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}

.sn-forced-card-content {
    flex: 1;
    min-width: 0;
}

.sn-forced-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.sn-forced-card-title {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.35;
}

.sn-forced-card-time {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

.sn-forced-card-body {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sn-forced-card-footer {
    margin-top: 10px;
}

.sn-forced-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
}

.sn-forced-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.sn-forced-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sn-forced-modal-footer-info {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
}

.sn-forced-modal-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    border: none;
    font-family: inherit;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow:
        0 1px 2px rgba(37, 99, 235, 0.2),
        0 4px 12px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.sn-forced-modal-ok::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.sn-forced-modal-ok:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow:
        0 1px 2px rgba(37, 99, 235, 0.2),
        0 6px 16px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.sn-forced-modal-ok:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 1px 2px rgba(37, 99, 235, 0.2),
        0 2px 6px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

