*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f7fb;
    color:#222;
}

/* Container */

#notificationContainer{
    max-width:850px;
    margin:40px auto;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    animation:fadeIn .4s ease;
}

/* Header */

.notification-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    background:#fff;
    z-index:100;
}

.notification-header h2{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:24px;
    color:#222;
}

.notification-header h2 i{
    color:#0d6efd;
}

/* Buttons */

.back-btn,
.menu-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:#f3f3f3;
    transition:.3s;
    font-size:17px;
}

.back-btn:hover,
.menu-btn:hover{
    background:#0d6efd;
    color:#fff;
}

/* Dropdown */

.menu-container{
    position:relative;
}

.menu-dropdown{
    position:absolute;
    top:55px;
    right:0;
    width:240px;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
    display:none;
    z-index:999;
}

.menu-dropdown button{
    width:100%;
    border:none;
    background:#fff;
    padding:15px;
    cursor:pointer;
    text-align:left;
    transition:.3s;
    font-size:15px;
}

.menu-dropdown button:hover{
    background:#f2f6ff;
}

.menu-dropdown button i{
    width:25px;
    color:#0d6efd;
}

/* Tabs */

#notificationTabs{
    display:flex;
    gap:10px;
    padding:20px;
    overflow:auto;
}

.tab-btn{
    border:none;
    padding:10px 22px;
    border-radius:30px;
    cursor:pointer;
    background:#eef2f8;
    transition:.3s;
    white-space:nowrap;
    font-size:14px;
}

.tab-btn:hover{
    background:#dbe8ff;
}

.tab-btn.active{
    background:#0d6efd;
    color:#fff;
}

/* Search */

.search-box{
    margin:0 20px 20px;
    background:#f5f5f5;
    border-radius:30px;
    display:flex;
    align-items:center;
    padding:0 18px;
}

.search-box i{
    color:#777;
}

.search-box input{
    width:100%;
    border:none;
    background:none;
    padding:14px;
    outline:none;
    font-size:15px;
}

/* Notification List */

#notificationList{
    padding:20px;
}

/* Empty State */

#emptyState{
    display:none;
    text-align:center;
    padding:70px 20px;
    color:#777;
}

#emptyState i{
    color:#0d6efd;
    margin-bottom:20px;
}

#emptyState h3{
    margin-bottom:10px;
    color:#333;
}

/* Toast */

#toast{
    position:fixed;
    left:50%;
    bottom:30px;
    transform:translateX(-50%);
    background:#222;
    color:#fff;
    padding:14px 24px;
    border-radius:8px;
    display:none;
    z-index:9999;
}

/* Animations */

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* Responsive */

@media(max-width:768px){

    #notificationContainer{
        margin:0;
        border-radius:0;
        min-height:100vh;
    }

    .notification-header h2{
        font-size:20px;
    }

    .tab-btn{
        font-size:13px;
        padding:10px 18px;
    }

}

@media(max-width:480px){

    .notification-header{
        padding:15px;
    }

    .notification-header h2{
        font-size:18px;
    }

    .search-box{
        margin:0 15px 15px;
    }

    #notificationTabs{
        padding:15px;
    }

}

.group-title{
    margin:30px 0 15px;
    color:#555;
    font-size:18px;
}

.notification-card{
    display:flex;
    align-items:center;
    gap:18px;
    background:#fff;
    border-radius:12px;
    padding:18px;
    margin-bottom:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
    cursor:pointer;
    transition:.3s;
    opacity:0;
    transform:translateY(20px);
    animation:slideUp .5s forwards;
}

.notification-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,.12);
}


.notification-card.unread{
    border-left:4px solid #0d6efd;
    background:#f8fbff;
}

.notification-avatar{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#0d6efd;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex-shrink:0;
}

.notification-content{
    flex:1;
}

.notification-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
}

.notification-content h4{
    font-size:17px;
}

.notification-content p{
    color:#666;
    margin-bottom:10px;
    line-height:1.5;
}

.notification-time{
    color:#999;
    font-size:13px;
}

.blue-dot{
    width:10px;
    height:10px;
    background:#0d6efd;
    border-radius:50%;
}

.arrow{
    color:#999;
    font-size:22px;
}

@keyframes slideUp{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.notification-card{
    position:relative;
    overflow:hidden;
}

.notification-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:4px;

    height:100%;

    background:#0d6efd;

    transform:scaleY(0);

    transition:.3s;

}

.notification-card:hover::before{

    transform:scaleY(1);

}

.notification-card.unread{

    animation:highlightUnread 1s ease;

}

@keyframes highlightUnread{

    0%{
        background:#dcecff;
    }

    100%{
        background:#f8fbff;
    }

}

.arrow{

    transition:.3s;

}

.notification-card:hover .arrow{

    transform:translateX(5px);

    color:#0d6efd;

}

/* ===========================
   Swipe Actions
=========================== */

.notification-wrapper{
    position:relative;
    overflow:hidden;
    margin-bottom:15px;
    border-radius:12px;
}

.notification-actions{
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    display:flex;
    align-items:center;
    height:100%;
}

.notification-actions button{

    width:75px;
    border:none;
    color:#fff;
    cursor:pointer;
    font-size:18px;
    transition:.3s;

}

.mark-read-btn{
    background:#28a745;
}

.delete-btn{
    background:#dc3545;
}

.notification-card{

    position:relative;
    z-index:2;
    margin-bottom:0;
    transition:transform .35s ease;

}

.notification-wrapper.show-actions .notification-card{

    transform:translateX(-150px);

}
/* Notification Counter */

.notification-title{

    display:flex;

    align-items:center;

    gap:10px;

}

#notificationCount{

    min-width:28px;

    height:28px;

    border-radius:30px;

    background:#0d6efd;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:13px;

    font-weight:bold;

    padding:0 10px;

}

/* Loading */

#loadingNotifications{

    text-align:center;

    padding:50px;

    color:#888;

    font-size:16px;

}

#loadingNotifications i{

    color:#0d6efd;

    margin-right:10px;

    font-size:22px;

}

.notification-footer{
    margin-top:12px;
}

.open-btn{
    border:none;
    background:#0d6efd;
    color:#fff;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
    font-size:13px;
    transition:.3s;
}

.open-btn:hover{
    background:#0b5ed7;
}