/* ==========================
   Toast
========================== */

#sabbath-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999999;
}

.sabbath-toast {
    padding: 12px 16px;
    background: #222;
    color: #fff;
    border-radius: 6px;
}


/* ==========================
   Modal
========================== */

#sabbath-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999998;
}

.sabbath-modal {
    background: #222;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 500px;
    box-sizing: border-box;
}

.sabbath-modal h3 {
    margin: 0 0 12px;
}

.sabbath-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.sabbath-modal button {
    cursor: pointer;
}


/* ==========================
   Dropdown
========================== */

.sabbath-dropdown {
    position: absolute;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    background: #222;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    z-index: 999997;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.sabbath-dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease;
}

.sabbath-dropdown-item:hover {
    background: rgba(255,255,255,.08);
}

/* ==========================
   Tabs
========================== */

.sabbath-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sabbath-tabs-nav {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.sabbath-tab {
    padding: 10px 16px;
    background: #222;
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: background .15s ease;
}

.sabbath-tab:hover {
    background: #333;
}

.sabbath-tab.active {
    background: #444;
}

.sabbath-tabs-content {
    width: 100%;
}

.sabbath-tab-panel {
    display: none;
}

.sabbath-tab-panel.active {
    display: block;
}

/* ==========================
   List
========================== */

.sabbath-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sabbath-list-item {
    padding: 12px 16px;
    background: #222;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease;
}

.sabbath-list-item:hover {
    background: #333;
}

.sabbath-list-item.unread {
    border-left: 3px solid #fff;
}

.sabbath-list-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.sabbath-list-text {
    margin-bottom: 6px;
}

.sabbath-list-meta {
    font-size: 12px;
    opacity: .7;
}

/* ==========================
   Notifications
========================== */

.sabbath-notifications {
    position: fixed;
    top: 70px;
    right: 20px;

    width: 420px;
    max-height: 500px;

    padding: 16px;

    background: #222;
    color: #fff;

    border-radius: 10px;

    overflow-y: auto;

    z-index: 999999;

    box-sizing: border-box;

    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.sabbath-notifications .sabbath-tabs {
    margin-bottom: 20px;
}

.sabbath-notifications-close {
    position: absolute;
    top: 10px;
    right: 10px;

    background: transparent;
    border: none;

    color: white;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}
/* ==========================
   Test Button
========================== */

.sabbath-test-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999999;

    padding: 10px 16px;

    background: #222;
    color: #fff;

    border-radius: 6px;
    cursor: pointer;
    user-select: none;

    font: 14px/1 sans-serif;
}

.sabbath-test-button:hover {
    background: #333;
}

.sabbath-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 16px;

    border-bottom: 1px solid rgba(255,255,255,.08);

    cursor: pointer;

    transition: background .2s ease;
}


.sabbath-notification-item:hover {
    background: rgba(255,255,255,.05);
}


.sabbath-notification-item.unread {
    background: rgba(255,255,255,.04);
}


/* тип уведомления */

.sabbath-notification-icon {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    opacity: .8;
}


/* аватар */

.sabbath-notification-avatar {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    overflow: hidden;

    background: rgba(255,255,255,.15);
}


.sabbath-notification-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.sabbath-notification-avatar.empty {
    opacity: .5;
}


/* основная часть */

.sabbath-notification-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    min-width: 0;
}


/* верхняя строка */

.sabbath-notification-header {
    display: flex;

    align-items: baseline;

    gap: 8px;
}


/* пользователь */

.sabbath-notification-user {
    font-weight: bold;

    margin-bottom: 4px;
}


/* заголовок */

.sabbath-notification-title {
    font-size: 13px;

    opacity: .7;

    margin-bottom: 4px;
}


/* текст */

.sabbath-notification-text {
    opacity: .85;

    line-height: 1.4;
}


/* дата */

.sabbath-notification-date {
    margin-top: 8px;

    font-size: 12px;

    opacity: .5;
}