/* ============================================================
   BABY TRACKER V1.1.0 - MAIN STYLESHEET
   Cleaned, deduplicated, and organized
   ============================================================ */

/* ============================================================
   1. RESET & BASE STYLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif; 
    min-height: 100vh;
}

/* ============================================================
   2. GLASS-MORPHISM & CARDS
   ============================================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   3. SECTION TITLES
   ============================================================ */

.section-title {
    margin: 0 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid;
}

.section-title h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.section-title p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* ============================================================
   4. FEATURE CARDS (Feeding, Diaper, Sleep, Health)
   ============================================================ */

/* Base card styles */
.feed-card, .diaper-card, .sleep-card, .health-card {
    border-radius: 30px;
    padding: 25px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

/* Feeding Card - Purple Gradient */
.feed-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.feed-card .timer-display {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Diaper Card - Pink/Red Gradient */
.diaper-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 20px 40px rgba(245, 87, 108, 0.25);
}

/* Sleep Card - Blue/Cyan Gradient */
.sleep-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.25);
}

/* Health Card - Teal/Dark Blue Gradient */
.health-card {
    background: linear-gradient(135deg, #3b8d99 0%, #2b5876 100%);
    box-shadow: 0 20px 40px rgba(43, 88, 118, 0.25);
}

/* Form controls inside feature cards */
.feed-card .form-control,
.feed-card .form-select,
.diaper-card .form-control,
.diaper-card .form-select,
.sleep-card .form-control,
.sleep-card .form-select,
.health-card .form-control,
.health-card .form-select {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 15px !important;
    padding: 12px !important;
}

.feed-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.feed-card .form-control option {
    background: #764ba2;
    color: white;
}

/* ============================================================
   5. STATS GRID & STAT CARDS
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.stat-label-custom {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 12px;
}

.stat-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.stat-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
}

/* ============================================================
   6. DIAPER MINI STATS & RECENT DIAPERS
   ============================================================ */

.diaper-mini-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.diaper-mini-item {
    text-align: center;
}

.diaper-mini-count {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.diaper-mini-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
}

.recent-diapers-list {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.diaper-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.diaper-log-item:last-child {
    border-bottom: none;
}

.diaper-badge-wet {
    background: #e1f0fa;
    color: #2980b9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.diaper-badge-dirty {
    background: #fef0e7;
    color: #d35400;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.diaper-badge-both {
    background: #f3e8fc;
    color: #8e44ad;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================
   7. COLOR OPTIONS & CONSISTENCY BADGES
   ============================================================ */

.color-options {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.color-option.brown { background-color: #8B4513; }
.color-option.yellow { background-color: #FFD700; }
.color-option.green { background-color: #32CD32; }
.color-option.black { background-color: #2C3E50; }
.color-option.red { background-color: #E74C3C; }

.consistency-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.consistency-badge {
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.consistency-badge:hover,
.consistency-badge.active {
    background: white;
    color: #f5576c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   8. SLEEP TIMER & QUALITY OPTIONS
   ============================================================ */

.sleep-timer-display {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.quality-option {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quality-option.selected {
    background: white;
    color: #00f2fe;
}

.quality-option input {
    display: none;
}

/* Offline timer card animation */
#offlineSleepTimerCard {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   9. NAVBAR
   ============================================================ */

.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
}

/* ============================================================
   10. BUTTON STYLES
   ============================================================ */

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 15px;
    padding: 12px;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: #333;
    border-radius: 15px;
    padding: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   11. FILE INPUT & PHOTO PREVIEW
   ============================================================ */

.btn-file-input {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 15px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.btn-file-input:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.photo-preview {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-top: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 5px;
}

/* ============================================================
   12. SYNC PROGRESS CONTAINER & OFFLINE BADGE
   ============================================================ */

#syncProgressContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#syncProgressContainer .progress-bar-animated {
    transition: width 0.3s ease;
}

#offlinePendingBadge {
    cursor: pointer;
    transition: all 0.2s ease;
}

#offlinePendingBadge:hover {
    transform: scale(1.05);
    background: #ffc107 !important;
    color: #000 !important;
}

@keyframes syncPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.syncing-active {
    animation: syncPulse 1.5s ease-in-out infinite;
}

/* ============================================================
   13. ADMIN CONFIG CARD
   ============================================================ */

.config-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.config-card .config-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border-radius: 20px 20px 0 0;
    padding: 15px 20px;
    color: white;
}

.config-card .config-header h5 {
    margin: 0;
    font-weight: 600;
}

.config-card .setting-group {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.config-card .setting-group:last-child {
    border-bottom: none;
}

.config-card .setting-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.config-card .setting-desc {
    font-size: 0.75rem;
    color: #6c757d;
}

.config-card .form-control-custom {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 10px 15px;
}

.config-card .form-control-custom:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.config-card .form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    margin-top: 0;
}

.config-card .form-switch .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.config-card .btn-save {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.config-card .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* ============================================================
   14. DANGER ZONE
   ============================================================ */

.danger-zone {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.danger-zone h6 {
    color: #dc2626;
    font-weight: 600;
}

/* ============================================================
   15. LOG VIEWER STYLES
   ============================================================ */

.log-line {
    font-family: 'Courier New', 'Fira Code', monospace;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-bottom: 1px solid #e2e8f0;
    white-space: pre-wrap;
    word-break: break-all;
    background: #f8fafc;
}

.log-line:hover {
    background: #f1f5f9;
}

.log-level-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 10px;
}

.log-level-danger { background: #dc2626; color: white; }
.log-level-warning { background: #f59e0b; color: #1e1e2f; }
.log-level-info { background: #3b82f6; color: white; }
.log-level-secondary { background: #64748b; color: white; }

/* File List in Log Viewer */
.file-list {
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    color: #334155;
    text-decoration: none;
    display: block;
}

.file-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.file-item.active {
    background: #4f46e5;
    color: white;
}

.file-size {
    font-size: 0.7rem;
    color: #64748b;
    margin-left: 10px;
}

/* ============================================================
   16. STATUS BADGES
   ============================================================ */

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-enabled {
    background: #d4edda;
    color: #155724;
}

.status-disabled {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================================
   17. NOTIFICATION DROPDOWN & BADGES
   ============================================================ */

.notification-item.unread {
    background: #f8fafc;
}

.notification-item.sticky {
    background: #fffbeb;
}

.priority-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.priority-badge.critical { background: #dc2626; color: white; }
.priority-badge.high { background: #f59e0b; color: white; }
.priority-badge.medium { background: #e2e8f0; color: #475569; }
.priority-badge.low { background: #e2e8f0; color: #64748b; }

/* Toast Notification Enhancements */
.toast-notification {
    backdrop-filter: blur(10px);
}

.toast-notification .toast-close {
    transition: transform 0.2s ease;
}

.toast-notification .toast-close:hover {
    transform: scale(1.1);
}

/* ============================================================
   18. RESPONSIVE DESIGN (Mobile First)
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .config-card .setting-group .row > div:first-child {
        margin-bottom: 10px;
    }
    
    .log-line {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    #syncProgressContainer .container {
        padding: 8px 12px;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .feed-card .timer-display {
        font-size: 2.2rem;
    }
    
    .feed-card, .diaper-card, .sleep-card, .health-card {
        padding: 20px;
    }
}

/* Sticky Notifications Container */
#stickyNotificationsContainer {
    position: sticky;
    top: 70px;
    z-index: 9998;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* Sticky Notification Item */
.sticky-notification {
    transition: all 0.3s ease;
}

.sticky-notification:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Priority Badges */
.priority-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.priority-badge.critical { background: #dc2626; color: white; }
.priority-badge.high { background: #f59e0b; color: white; }
.priority-badge.medium { background: #e2e8f0; color: #475569; }
.priority-badge.low { background: #e2e8f0; color: #64748b; }


/* ============================================================
   STICKY NOTIFICATIONS - POSITION FIXES
   ============================================================ */

/* Main container for sticky notifications - positioned below navbar */
#stickyNotificationsContainer {
    position: relative;
    top: 0;
    z-index: 9990;
    margin: 0 auto;
    max-width: 1200px;
    padding: 10px 15px 0 15px;
    clear: both;
}

/* Ensure navbar has proper z-index and stays on top */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10000 !important;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
}

/* Sticky notification individual items */
.sticky-notification {
    position: relative;
    margin-bottom: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sticky-notification:last-child {
    margin-bottom: 0;
}

/* ============================================================
   DROPDOWN MENU POSITIONING - FIX OVERLAP
   ============================================================ */

/* Ensure dropdown menus appear above sticky notifications */
.dropdown-menu {
    z-index: 10050 !important;
}

/* Notification bell dropdown - ensure it doesn't go off screen */
.notification-dropdown {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    min-width: 350px;
    max-width: 90vw;
}

/* RTL support for dropdowns */
[dir="rtl"] .notification-dropdown {
    right: auto !important;
    left: 0 !important;
}

/* Profile dropdown - RTL support */
[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

/* Language dropdown - RTL support */
[dir="rtl"] .dropdown-menu {
    right: auto !important;
    left: 0 !important;
}

/* ============================================================
   BELL DROPDOWN - PREVENT OFF-SCREEN ON RTL
   ============================================================ */

/* Parent container for bell dropdown */
.navbar .dropdown {
    position: relative;
}

/* Bell dropdown menu positioning */
.navbar .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    min-width: 350px;
    max-width: 90vw;
    max-height: 500px;
    overflow-y: auto;
}

/* RTL - Bell dropdown should align to left */
[dir="rtl"] .navbar .dropdown-menu {
    right: auto !important;
    left: 0 !important;
}

/* For very small screens, make dropdown full width */
@media (max-width: 576px) {
    .navbar .dropdown-menu {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
        max-width: calc(100% - 20px);
    }

    [dir="rtl"] .navbar .dropdown-menu {
        right: 10px !important;
        left: 10px !important;
    }
}

/* ============================================================
   PROFILE DROPDOWN - RTL FIXES
   ============================================================ */

/* Profile dropdown - ensure it doesn't go off screen */
.profile-dropdown {
    min-width: 200px;
}

/* RTL profile dropdown */
[dir="rtl"] .profile-dropdown {
    right: auto !important;
    left: 0 !important;
}

/* ============================================================
   LANGUAGE DROPDOWN - RTL FIXES
   ============================================================ */

/* Language dropdown */
.language-dropdown {
    min-width: 120px;
}

/* RTL language dropdown */
[dir="rtl"] .language-dropdown {
    right: auto !important;
    left: 0 !important;
}

/* ============================================================
   RESPONSIVE NAVBAR ADJUSTMENTS
   ============================================================ */

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    #stickyNotificationsContainer {
        margin-top: 0;
        padding-top: 5px;
    }

    .navbar .dropdown-menu {
        position: fixed;
        top: 56px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: calc(100% - 20px);
    }

    [dir="rtl"] .navbar .dropdown-menu {
        right: 10px !important;
        left: 10px !important;
    }

    .notification-dropdown,
    .navbar .dropdown-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ============================================================
   UTILITY CLASSES FOR RTL
   ============================================================ */

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .notification-item {
    text-align: right;
}

[dir="rtl"] .notification-item .float-end {
    float: left !important;
}

/* ============================================================
   STICKY NOTIFICATION ANIMATIONS
   ============================================================ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.sticky-notification {
    animation: slideDown 0.3s ease;
}

.sticky-notification.removing {
    animation: slideUp 0.3s ease;
}

/* ============================================================
   RTL Support for Session Timer
   ============================================================ */

[dir="rtl"] .session-timer-badge {
    right: auto;
    left: 20px;
}

[dir="rtl"] .session-timer-badge i {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .session-toast {
    right: auto;
    left: 20px;
    animation: timerSlideInLeft 0.3s ease;
}

@keyframes timerSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .session-timer-badge {
        right: auto;
        left: 12px;
    }
    
    [dir="rtl"] .session-toast {
        right: auto;
        left: 12px;
    }
}