/* ================================================================
   Oday Trade AI - تنسيقات التنبيهات
   ================================================================ */

/* أيقونة التنبيه في الهيدر */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell i {
    font-size: 1.2rem;
    color: #cbd5e1;
    transition: color 0.3s;
}

.notification-bell:hover i {
    color: #2563eb;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* قائمة التنبيهات المنسدلة */
.notifications-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.notifications-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-header .mark-all-read {
    font-size: 0.7rem;
    color: #2563eb;
    cursor: pointer;
}

.dropdown-header .mark-all-read:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item-dropdown {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item-dropdown:hover {
    background: rgba(37,99,235,0.1);
}

.notification-item-dropdown.unread {
    background: rgba(37,99,235,0.05);
}

.notification-icon-dropdown {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon-dropdown.info { background: #3b82f620; color: #3b82f6; }
.notification-icon-dropdown.success { background: #22c55e20; color: #22c55e; }
.notification-icon-dropdown.warning { background: #f59e0b20; color: #f59e0b; }
.notification-icon-dropdown.danger { background: #ef444420; color: #ef4444; }
.notification-icon-dropdown.signal { background: #8b5cf620; color: #8b5cf6; }
.notification-icon-dropdown.market { background: #2563eb20; color: #2563eb; }

.notification-content-dropdown {
    flex: 1;
}

.notification-title-dropdown {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.notification-message-dropdown {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.notification-time-dropdown {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 5px;
}

.dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dropdown-footer a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.8rem;
}

.empty-notifications {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.empty-notifications i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* صفحة التنبيهات الرئيسية */
.notifications-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #2563eb;
    color: white;
}

.notifications-list-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.notification-card.unread {
    background: #2563eb10;
    border-left-color: #2563eb;
}

.notification-card:hover {
    transform: translateX(-5px);
}

.notification-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.notification-time {
    font-size: 0.7rem;
    color: #64748b;
}

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

.notification-actions a {
    color: #64748b;
    font-size: 0.7rem;
    text-decoration: none;
}

.notification-actions a:hover {
    color: #2563eb;
}

/* الفلاتر */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    background: #1e293b;
    border: none;
    border-radius: 30px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2563eb;
    color: white;
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .notifications-dropdown {
        width: 320px;
        right: -100px;
    }
    
    .notification-card {
        flex-direction: column;
    }
    
    .notification-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}