/* *** Push notification *** */

#push-block {
    position: fixed;
    top: 20px;
    right: 10px;
    width: 22%;
    z-index: 100000;
}

.push-notification {
    position: fixed;
    top: 0;
    right: 20px;
    background: rgba(50, 50, 50, 0.9);
    border: 1px solid rgba(40, 40, 40, 0.9);
    padding: 0;
    margin: 6px 0;
    border-radius: 4px;
    overflow: hidden;
    width: 320px;
}

/* *** Sidebar *** */

.notification-tabs {
    display: flex;
    background: rgb(160, 160, 160);
    border-radius: 4px;
    margin: 10px 20px;
    overflow: hidden;
}

.notification-tab {
    flex: 1;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
}

.notification-tabs .active {
    background: rgb(210, 210, 210);
    color: rgb(30, 30, 30);
}

.notification-blocks {
    overflow-y: auto;
    height: 100%;
    border-top: 1px solid rgb(160, 160, 160);
    margin: 10px 0 0 0;
    padding: 10px;
}

.notification-blocks h1 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    color: rgba(200, 200, 200, 1);
}

.notification-blocks a {
    color: #fff;
    margin: 0;
    padding-top: 2px;
    font-size: 13px;
}

.notification-blocks a:hover {
    color: #fff;
}

.notification-block {
    background: rgba(50, 50, 50, 0.9);
    border: 1px solid rgba(40, 40, 40, 0.9);
    padding: 0;
    margin: 6px 0;
    border-radius: 4px;
    overflow: hidden;
}

.notification-empty {
    text-align: center;
    margin-top: 40px;
}

.notification-block-head {
    font-weight: normal;
    background: rgba(40, 40, 40, 0.9);
    color: #fff;
    padding: 2px 6px;
    font-size: 13px;
}

.notification-block-head .icon {
    font-size: 10px;
    color: #fff;
    border-radius: 2px;
    padding: 2px;
}

.notification-block-head .time {
    float: right;
    font-size: 11px;
    padding-top: 0;
    color: rgba(240, 240, 240, 0.8);
}

.notification-block-head .cancel {
    display: none;
    float: right;
    font-size: 18px;
    padding-top: 2px;
    color: rgba(240, 240, 240, 0.8);
}

.notification-block-head .cancel:hover {
    color: rgba(240, 240, 240, 1);
    cursor: pointer;
}

.notification-block:hover .cancel {
    display: block;
}

.notification-block:hover .time {
    display: none;
}

.notification-block-head .cancel .material-icons {
    font-size: inherit;
}

.notification-block-body {
    padding: 2px 6px;
    font-size: 13px;
    color: #fff;
}

.notification-block .avatar-mini {
    width: 16px;
    height: 16px;
    margin-right: 0;
}

.notification-block .creator {
    margin: 6px 0;
    padding: 0 6px 6px 6px;
    font-weight: bold;
    border-bottom: 1px solid rgba(90, 90, 90, 1);
}

.notification-block-action {
    display: flex;
    border-top: 1px solid rgba(40, 40, 40, 0.9);
    font-size: 13px;
    overflow: hidden;
}

.notification-block-action a {
    flex: 1;
    text-align: center;
    background: rgba(100, 100, 100, 1);
    cursor: pointer;
    padding: 2px 0;
    border-right: 1px solid rgba(40, 40, 40, 0.9);
}

.notification-block-action a:hover{
    color: #fff;
    background: rgba(80, 80, 80, 1);
}

.notification-block-action a:visited, .notification-block-action a:focus {
    color: #fff;
}

.notification-block-action a:last-child {
    border-right: 0;
}

.notification-clear-all {
    display: inline-block;
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
}

.notification-clear-all:hover {
    background: rgb(210, 210, 210);
    color: rgb(30, 30, 30);
    cursor: pointer;
    opacity: 1;
}

#notification-blocks-event-open a {
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    background: rgb(160, 160, 160);
    color: #fff;
}

#notification-blocks-event-open a:hover {
    background: rgb(210, 210, 210);
    color: rgb(30, 30, 30);
}

/**************/

/* Оформление панели */
#side-checkbox {
    display: none;
}
.side-panel {
    position: fixed;
    z-index: 1032;
    top: 0;
    right: -380px;
    transition: all 0.5s;
    width: 340px;
    height: 100vh;
    box-shadow: 10px 0 20px rgba(0,0,0,0.4);
    color: #FFF;
    padding: 40px 0;
    background: rgb(100, 100, 100);
    overflow: hidden;
    opacity: 0.95;
}

.side-panel:before {
    content: "";
    position: absolute;
    z-index: -1;
    background: inherit;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
    filter: blur(10px);
    margin: -20px;
}
.side-title {
    font-size: 20px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #BFE2FF;
}
/* Оформление кнопки на странице */
.side-button-1-wr {
    text-align: center; /* Контейнер для кнопки, чтобы было удобнее ее разместить */
}
.side-button-1 .side-b {
    margin: 10px;
    text-decoration: none;
    position: relative;
    font-size: 20px;
    line-height: 20px;
    padding: 12px 30px;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', Тahoma, sans-serif;
    background: #337AB7;
    cursor: pointer;
    border: 2px solid #BFE2FF;
}
.side-button-1 .side-b:hover,
.side-button-1 .side-b:active,
.side-button-1 .side-b:focus {
    color: #FFF;
}
.side-button-1 .side-b:after,
.side-button-1 .side-b:before {
    position: absolute;
    height: 4px;
    left: 50%;
    bottom: -6px;
    content: "";
    transition: all 280ms ease-in-out;
    width: 0;
}
.side-button-1 .side-open:after,
.side-button-1 .side-open:before {
    background: green;
}
.side-button-1 .side-close:after,
.side-button-1 .side-close:before {
    background: red;
}
.side-button-1 .side-b:before {
    top: -6px;
}
.side-button-1 .side-b:hover:after,
.side-button-1 .side-b:hover:before {
    width: 100%;
    left: 0;
}
/* Переключатели кнопки 1 */
.side-button-1 .side-close {
    display: none;
}
#side-checkbox:checked + .side-panel + .side-button-1-wr .side-button-1 .side-open {
    display: none;
}
#side-checkbox:checked + .side-panel + .side-button-1-wr .side-button-1 .side-close {
    display: block;
}
#side-checkbox:checked + .side-panel {
    right: 0;
}
/* Оформление кнопки на панеле */
.side-button-2 {
    font-size: 30px;
    border-radius: 20px;
    position: absolute;
    z-index: 1;
    top: 8px;
    right: 8px;
    cursor: pointer;
    transform: rotate(45deg);
    color: #fff;
    transition: all 280ms ease-in-out;
}
.side-button-2:hover {
    transform: rotate(45deg) scale(1.1);
    color: #FFF;
}

/* ========== Современный редизайн панели напоминаний/уведомлений ========== */
.side-panel--modern {
    background: #fff !important;
    color: #1a1a1a;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    opacity: 1;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    width: 360px;
    right: -360px;
}
#side-checkbox:checked + .side-panel--modern {
    right: 0;
}
.side-panel--modern:before {
    display: none;
}
.side-panel--modern .side-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(92, 107, 192, 0.12);
    flex-shrink: 0;
}
.side-panel--modern .side-panel__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}
.side-panel--modern .side-button-2 {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5c6bc0;
    font-size: 0;
    transition: background 0.2s, color 0.2s;
}
.side-panel--modern .side-button-2 .material-icons {
    font-size: 24px;
}
.side-panel--modern .side-button-2:hover {
    transform: none;
    background: rgba(92, 107, 192, 0.1);
    color: #3f51b5;
}
/* Блок «Дни рождения» над табами — карточки с чётким разделением */
.side-panel--modern .side-panel__birthdays {
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(92, 107, 192, 0.12);
    margin-bottom: 0;
}
.side-panel--modern .side-panel__birthdays-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c6bc0;
    margin: 0 0 10px;
    padding: 0;
}
.side-panel--modern .side-panel__birthday-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    margin: 0 0 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    background: #fafbff;
    border: 1px solid rgba(92, 107, 192, 0.15);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.side-panel--modern .side-panel__birthday-item:last-child {
    margin-bottom: 0;
}
.side-panel--modern .side-panel__birthday-item:hover {
    background: #f0f4ff;
    border-color: rgba(92, 107, 192, 0.3);
    box-shadow: 0 2px 8px rgba(92, 107, 192, 0.08);
    color: #1a1a1a;
}
.side-panel--modern .side-panel__birthday-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}
.side-panel--modern .side-panel__birthday-meta {
    font-size: 12px;
    color: #5c6bc0;
    opacity: 0.9;
}

.side-panel--modern .notification-tabs {
    display: flex;
    background: rgba(92, 107, 192, 0.08);
    border-radius: 10px;
    margin: 12px 20px 0;
    padding: 4px;
    overflow: hidden;
}
.side-panel--modern .notification-tab {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    color: #5c6bc0;
    transition: background 0.2s, color 0.2s;
}
.side-panel--modern .notification-tab:hover {
    color: #3f51b5;
    background: rgba(92, 107, 192, 0.12);
}
.side-panel--modern .notification-tabs .active {
    background: #fff;
    color: #3f51b5;
    box-shadow: 0 1px 4px rgba(92, 107, 192, 0.15);
}
/* Общий скролл: дни рождения, табы и напоминания в одной прокручиваемой области */
.side-panel--modern .side-panel__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 20px;
}
.side-panel--modern .side-panel__scroll .side-panel__birthdays {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 16px;
}
.side-panel--modern .side-panel__scroll .notification-tabs {
    margin-left: 0;
    margin-right: 0;
}
.side-panel--modern .side-panel__body {
    padding: 0;
}
.side-panel--modern .notification-blocks {
    border-top: none;
    margin: 12px 0 0;
    padding: 0;
}
/* По умолчанию открыта вкладка «Напоминания» */
.side-panel--modern #notification-blocks-event {
    display: flex;
    flex-direction: column;
}
.side-panel--modern #notification-blocks-notification {
    display: none;
}
.side-panel--modern .side-panel__link-wrap {
    margin-bottom: 12px;
}
.side-panel--modern .side-panel__link,
.side-panel--modern #notification-blocks-event-open a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #5c6bc0;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(92, 107, 192, 0.35);
    background: transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.side-panel--modern .side-panel__link:hover,
.side-panel--modern #notification-blocks-event-open a:hover {
    color: #3f51b5;
    background: rgba(92, 107, 192, 0.08);
    border-color: #5c6bc0;
}
.side-panel--modern .side-panel__section-title,
.side-panel--modern .notification-blocks h1,
.side-panel--modern .notification-blocks h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c6bc0;
    margin: 16px 0 8px;
    padding: 0;
}
.side-panel--modern .notification-blocks h3:first-child,
.side-panel--modern .notification-blocks h1:first-child {
    margin-top: 0;
}
.side-panel--modern .notification-block {
    background: #fafbff;
    border: 1px solid rgba(92, 107, 192, 0.15);
    border-radius: 12px;
    padding: 0;
    margin: 0 0 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.side-panel--modern .notification-block:hover {
    border-color: rgba(92, 107, 192, 0.3);
    box-shadow: 0 2px 8px rgba(92, 107, 192, 0.08);
}
.side-panel--modern a .notification-block:hover {
    border-color: #c5cae9;
}
.side-panel--modern .notification-block-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    background: transparent;
    color: #1a1a1a;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}
.side-panel--modern .notification-block-head .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    font-size: 14px !important;
    color: #fff !important;
    padding: 0 !important;
}
.side-panel--modern .notification-block-head .time {
    float: none;
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #5c6bc0;
    opacity: 0.85;
}
.side-panel--modern .notification-block-head .cancel {
    display: none;
    float: none;
    margin-left: auto;
    font-size: 18px;
    padding: 0;
    color: #5c6bc0;
    opacity: 0.7;
    cursor: pointer;
}
.side-panel--modern .notification-block:hover .cancel {
    display: flex;
    align-items: center;
    justify-content: center;
}
.side-panel--modern .notification-block:hover .time {
    display: none;
}
.side-panel--modern .notification-block-head .cancel:hover {
    color: #e53935;
}
.side-panel--modern .notification-block-body {
    padding: 8px 12px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #37474f;
}
.side-panel--modern .notification-block .creator {
    margin: 0;
    padding: 6px 12px 8px;
    font-weight: 600;
    font-size: 12px;
    color: #5c6bc0;
    border-bottom: 1px solid rgba(92, 107, 192, 0.12);
}
.side-panel--modern .notification-empty {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #5c6bc0;
    opacity: 0.85;
}
.side-panel--modern .notification-clear-all {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #5c6bc0;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    opacity: 1;
}
.side-panel--modern .notification-clear-all:hover {
    background: rgba(92, 107, 192, 0.1);
    color: #3f51b5;
}
.side-panel--modern .notification-block-action {
    border-top: 1px solid rgba(92, 107, 192, 0.12);
    font-size: 13px;
}
.side-panel--modern .notification-block-action a {
    background: rgba(92, 107, 192, 0.06);
    color: #5c6bc0;
    padding: 10px;
    border-right: 1px solid rgba(92, 107, 192, 0.12);
}
.side-panel--modern .notification-block-action a:hover {
    background: rgba(92, 107, 192, 0.12);
    color: #3f51b5;
}
.side-panel--modern .notification-block .avatar-mini {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}