/* static/temp/css/notification-details.css */
:root {
    --detail-bg: rgba(15, 23, 42, 0.98);
    --detail-border: rgba(255, 255, 255, 0.2);
    --detail-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    --detail-glass: rgba(255, 255, 255, 0.1);
    --detail-success: #10b981;
    --detail-danger: #ef4444;
    --detail-primary: #2563eb;
}

/* 🎯 پاپ‌آپ جزئیات نوتیفیکیشن - موقعیت ثابت در وسط */
.notification-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.notification-detail-modal.show {
    opacity: 1;
    visibility: visible;
}

.notification-detail-content {
    background: var(--detail-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--detail-border);
    border-radius: 20px;
    box-shadow: var(--detail-shadow);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    margin: 0 auto;
}

.notification-detail-modal.show .notification-detail-content {
    transform: translateY(0) scale(1);
}

/* هدر جزئیات */
.notification-detail-header {
    padding: 25px;
    border-bottom: 1px solid var(--detail-border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.detail-header-main {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--detail-primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-title-section {
    flex: 1;
    min-width: 0;
}

.detail-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-time,
.detail-priority,
.detail-category,
.detail-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-time {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.detail-priority.high {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.detail-priority.medium {
    background: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}
.detail-priority.low {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.detail-category {
    background: rgba(37, 99, 235, 0.3);
    color: #93c5fd;
}

.detail-status.unread {
    background: rgba(37, 99, 235, 0.3);
    color: #93c5fd;
}

.detail-status.read {
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.detail-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.detail-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    transform: rotate(90deg);
}

/* بدنه جزئیات */
.notification-detail-body {
    padding: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.notification-detail-body::-webkit-scrollbar {
    width: 6px;
}

.notification-detail-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.notification-detail-body::-webkit-scrollbar-thumb {
    background: var(--detail-primary);
    border-radius: 3px;
}

.detail-message {
    color: #e2e8f0;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-line;
    word-wrap: break-word;
}

/* فوتر جزئیات */
.notification-detail-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--detail-border);
    background: rgba(255, 255, 255, 0.03);
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.detail-action-btn i {
    font-size: 0.9rem;
}

.mark-read-btn {
    background: rgba(16, 185, 129, 0.2);
    color: var(--detail-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mark-read-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.mark-read-btn.read {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
    border-color: rgba(100, 116, 139, 0.3);
    cursor: not-allowed;
}

.mark-read-btn.read:hover {
    transform: none;
    box-shadow: none;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.2);
    color: var(--detail-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.action-btn {
    background: rgba(37, 99, 235, 0.2);
    color: var(--detail-primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.action-btn:hover {
    background: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* انیمیشن‌ها */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

/* آیکون‌های مختلف برای انواع نوتیفیکیشن */
.detail-icon.system { background: linear-gradient(135deg, #2563eb, #8b5cf6); }
.detail-icon.email { background: linear-gradient(135deg, #10b981, #059669); }
.detail-icon.sms { background: linear-gradient(135deg, #f59e0b, #d97706); }
.detail-icon.push { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.detail-icon.in_app { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.detail-icon.security { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* رسپانسیو */
@media (max-width: 768px) {
    .notification-detail-modal {
        padding: 15px;
    }

    .notification-detail-content {
        max-width: 100%;
        max-height: 85vh;
        margin: 0 10px;
    }

    .notification-detail-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .detail-header-main {
        width: 100%;
    }

    .detail-close-btn {
        align-self: flex-end;
        margin-top: -10px;
        margin-left: -10px;
    }

    .notification-detail-body {
        padding: 20px;
        max-height: 40vh;
    }

    .notification-detail-footer {
        padding: 15px 20px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-action-btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .notification-detail-header {
        padding: 15px;
    }

    .detail-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .detail-title {
        font-size: 1.1rem;
    }

    .detail-meta {
        gap: 6px;
    }

    .detail-time,
    .detail-priority,
    .detail-category,
    .detail-status {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .notification-detail-body {
        padding: 15px;
    }

    .detail-message {
        font-size: 0.9rem;
    }
}

/* پشتیبانی از حالت تاریک/روشن */
@media (prefers-color-scheme: light) {
    .notification-detail-content {
        --detail-bg: rgba(255, 255, 255, 0.98);
        --detail-border: rgba(0, 0, 0, 0.1);
    }

    .detail-title {
        color: #1e293b;
    }

    .detail-message {
        color: #475569;
    }

    .detail-close-btn {
        background: rgba(0, 0, 0, 0.05);
        color: #64748b;
    }

    .detail-close-btn:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }
}

/* بهبود دسترسی */
.notification-detail-modal:focus {
    outline: none;
}

.detail-close-btn:focus {
    outline: 2px solid var(--detail-primary);
    outline-offset: 2px;
}

.detail-action-btn:focus {
    outline: 2px solid var(--detail-primary);
    outline-offset: 1px;
}

:root {
    --detail-bg: rgba(15, 23, 42, 0.98);
    --detail-border: rgba(255, 255, 255, 0.2);
    --detail-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    --detail-glass: rgba(255, 255, 255, 0.1);
    --detail-success: #10b981;
    --detail-danger: #ef4444;
    --detail-primary: #2563eb;
}

/* 🎯 پاپ‌آپ جزئیات نوتیفیکیشن - موقعیت ثابت در وسط */
.notification-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-detail-modal.show {
    display: flex;
    opacity: 1;
}

.notification-detail-content {
    background: var(--detail-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--detail-border);
    border-radius: 20px;
    box-shadow: var(--detail-shadow);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    margin: auto;
}

.notification-detail-modal.show .notification-detail-content {
    transform: translateY(0);
}
/* اضافه کردن به notification-details.css */
.notification-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--notification-border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-footer-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.notification-footer-btn.primary {
    background: rgba(37, 99, 235, 0.2);
    color: var(--notification-primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.notification-footer-btn.primary:hover {
    background: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.notification-footer-btn.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--notification-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification-footer-btn.danger:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.notification-footer-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .notification-footer-actions {
        flex-direction: column;
    }

    .notification-footer-btn {
        min-width: auto;
    }
}