.spa-chat-wrapper {     display: flex;     height: 100vh;     width: 100%; 	margin-top:10px; } 	 /* =========================    CHAT APP LAYOUT ========================= */ #spa-chat-app {     display: flex;     height: 100vh;     font-family: Arial, sans-serif; } /* =========================    SIDEBAR ========================= */ .spa-chat-sidebar {     width: 280px;     background: #1f232a;     color: #fff;     display: flex;     flex-direction: column; } .spa-chat-user {     padding: 15px;     border-bottom: 1px solid #333;     font-size: 14px; } .spa-chat-channel-list {   font-size:12px; font-weight:bold;  flex: 1;     overflow-y: auto;     padding: 10px; } .spa-channel-item {     padding: 10px;     margin-bottom: 5px;     background: #2a2f38;     border-radius: 6px;     cursor: pointer;     display: flex;     justify-content: space-between;     align-items: center; } .spa-channel-item:hover {     background: #3a414d; } .spa-unread-badge {     background: #ff3b30;     color: #fff;     font-size: 12px;     padding: 2px 6px;     border-radius: 10px; } /* =========================    MAIN CHAT AREA ========================= */ .spa-chat-main {     flex: 1;     display: flex;     flex-direction: column;     background: #f4f6f9; } .spa-chat-header {         padding: 15px;     background: #3e6ae1;     border-bottom: 1px solid #ddd;     font-weight: bold;     color: #FFF; } .spa-chat-messages {     flex: 1;     padding: 15px;     overflow-y: auto; } /* =========================    INPUT AREA ========================= */ .spa-chat-input-area {     display: flex;     padding: 10px;     background: #fff;     border-top: 1px solid #ddd; } #spa-chat-message-input {     flex: 1;     resize: none;     padding: 10px;     border: 1px solid #ccc;     border-radius: 6px; } #spa-chat-send-btn {     margin-left: 10px;     padding: 10px 20px;     background: #007bff;     color: #fff;     border: none;     border-radius: 6px;     cursor: pointer; } #spa-chat-send-btn:disabled {     background: #aaa;     cursor: not-allowed; } /* =========================    NOTIFICATIONS POPUP ========================= */ .spa-chat-popup-container {     position: fixed;     bottom: 20px;     right: 20px;      bottom: auto;    width: 320px;     z-index: 999999;     display: flex;     flex-direction: column;     gap: 10px;     max-height: 80vh;     overflow-y: auto; } .spa-chat-popup {     background: #fff;     border-radius: 10px;     padding: 12px;     margin-bottom: 10px;     box-shadow: 0 5px 20px rgba(0,0,0,0.15);     animation: fadeIn 0.2s ease-in; } .spa-chat-popup-header {     display: flex;     justify-content: space-between;     font-size: 13px;     margin-bottom: 5px; } .spa-chat-popup-body {     font-size: 14px;     margin-bottom: 10px; } .spa-chat-popup-actions {     display: flex;     justify-content: flex-end;     gap: 8px; } .spa-chat-popup-actions button {     font-size: 12px;     padding: 5px 8px;     border: none;     cursor: pointer;     border-radius: 4px; } .spa-open-chat {     background: #007bff;     color: #fff; } .spa-dismiss-chat {     background: #ccc; } /* Animation */ @keyframes fadeIn {     from { opacity: 0; transform: translateY(-10px); }     to { opacity: 1; transform: translateY(0); } }.spa-channel-item.active {background: #28a745 !important;color: #fff;}.spa-channel-item[data-can-write="true"] {     background: #3e6ae1;color: #fff; } 	.spa-channel-item[data-channel-key="announcements"] {     background: #ff3b30;color: #fff; } 	.spa-channel-item.current-shift {     background: #28a745 !important;     color: #fff; } 	.spa-assignments-table {     width: 100%;     border-collapse: collapse;     margin-top: 20px; } .spa-assignments-table th, .spa-assignments-table td {     border: 1px solid #ddd;     padding: 10px;     text-align: center; } .spa-assignments-table th {     background: #1f232a;     color: #fff; } .spa-toggle-channel {     padding: 6px 12px;     border: none;     cursor: pointer;     border-radius: 6px;     background: #ccc; } .spa-toggle-channel[data-enabled="1"] {     background: #28a745;     color: #fff; } .spa-chat-guide {     padding: 12px;     border-top: 1px solid #333;     font-size: 12px;     color: #ccc; } .spa-chat-guide h4 {     margin: 0 0 8px 0;     font-size: 13px;     color: #fff; } .guide-item {     display: flex;     align-items: center;     gap: 8px;     margin-bottom: 6px; } .guide-item .dot {     width: 10px;     height: 10px;     border-radius: 50%;     display: inline-block; } /* write enabled */ .guide-item .dot.write { background: #3e6ae1; } /* read only */ .guide-item .dot.read { background: #777; } /* shift */ .guide-item .dot.shift { background: #28a745; } /* locked */ .guide-item .dot.lock { background: #ff3b30; } #spa-chat-clear-btn {
    margin-left: 10px;
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.spa-toast {
    background: #1e293b;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}
.spa-toast.success { background: #065f46; border-color: #059669; }
.spa-toast.warning { background: #92400e; border-color: #d97706; }
.spa-toast.error { background: #991b1b; border-color: #dc2626; }
#spa-chat-clear-btn:hover {
    background: #bb2d3b;
}
/* =========================
   RIGHT SIDEBAR
========================= */
.spa-chat-rightbar {
    width: 260px;
    background: #1f232a;
    color: #fff;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
}

/* ONLINE USERS PANEL */
.spa-online-users {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

/* TITLE */
.spa-rightbar-title {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff !important;
}

/* USER ROW */
.spa-online-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #2a2f38;
    border-radius: 8px;
    transition: 0.2s ease;
}
.spa-user-status offline
.spa-online-user:hover {
    background: #3a414d;
}

/* STATUS DOT */
.spa-user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ONLINE */
.spa-user-status.online {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40,167,69,0.7);
}

/* OFFLINE */
.spa-user-status.offline {
    background: transparent;
    border: 2px solid #999;
}

/* USERNAME */
.spa-online-user-name {
    font-size: 13px;
    color: #fff;
    word-break: break-word;
}

