/*Write your custom css in this file.*/

/* App alert — fixed at top-center, never auto-dismissed */
.app-alert.animate {
    bottom: auto !important;
    top: 15px !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    min-width: 320px;
    max-width: 600px;
    z-index: 99999 !important;
    opacity: 1 !important;
}

/* Permanent Notification Sidebar */
#notification-sidebar {
    position: fixed;
    top: 65px;
    right: 0;
    width: 300px;
    height: calc(100vh - 65px);
    background: #fff;
    border-left: 1px solid #e0e0e0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0,0,0,0.07);
}

#notification-sidebar .notif-sidebar-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#notification-sidebar .notif-sidebar-header strong {
    font-size: 14px;
}

#notification-sidebar .notif-sidebar-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#notif-sidebar-list {
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

#notification-sidebar .notif-sidebar-footer {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    flex-shrink: 0;
    background: #f8f9fa;
}

#notification-sidebar .list-group-item {
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    font-size: 12px;
}

#notification-sidebar .unread-notification {
    background-color: #f0f4ff;
}

/* Shift main content to make room for notification sidebar */
body.has-notif-sidebar .page-container {
    margin-right: 300px;
}

body.has-notif-sidebar .public-page-container {
    margin-right: 300px;
}

/* Chat back button */
.rise-chat-wrapper .chat-back-btn {
    position: absolute;
    left: 10px;
    cursor: pointer;
    padding: 10px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.rise-chat-wrapper .chat-back-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #000;
}

/* Chat icon and panel above notification sidebar */
body.has-notif-sidebar .init-chat-icon {
    right: 320px;
}

body.has-notif-sidebar .rise-chat-wrapper {
    z-index: 1000;
    right: 320px;
}

body.has-notif-sidebar .rise-chat-wrapper.full-screen {
    right: 300px !important;
}

/* Hide sidebar on mobile */
@media (max-width: 991px) {
    #notification-sidebar {
        display: none !important;
    }
    body.has-notif-sidebar .page-container,
    body.has-notif-sidebar .public-page-container {
        margin-right: 0;
    }
}