/* Notificações da plataforma — topbar */

body.app-auth .app-topbar-end {
    gap: 12px;
    overflow: visible;
}

.platform-notifications {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.platform-notifications__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: visible;
}

.platform-notifications__trigger.has-unread {
    border-color: #fdba74;
}

.platform-notifications__trigger:hover,
.platform-notifications.is-open .platform-notifications__trigger {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(3, 104, 255, 0.1);
}

.platform-notifications__trigger.has-unread:hover,
.platform-notifications.is-open .platform-notifications__trigger.has-unread {
    border-color: #fb923c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.platform-notifications__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.45);
    z-index: 5;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.platform-notifications__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    z-index: 1200;
    overflow: hidden;
}

.platform-notifications__dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f6;
    background: #f8fafc;
}

.platform-notifications__dropdown-head strong {
    font-size: 14px;
    color: #0f172a;
}

.platform-notifications__mark-all {
    margin: 0;
}

.platform-notifications__mark-all button {
    border: none;
    background: none;
    padding: 0;
    color: #0368ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.platform-notifications__list {
    max-height: 360px;
    overflow-y: auto;
}

.platform-notifications__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f6;
}

.platform-notifications__item.is-unread {
    background: #f0f7ff;
}

.platform-notifications__item-body {
    flex: 1;
    min-width: 0;
}

.platform-notifications__item-body strong,
.platform-notifications__item-link strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.platform-notifications__item-body span,
.platform-notifications__item-link span {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    margin-bottom: 6px;
}

.platform-notifications__item-link {
    text-decoration: none;
    color: inherit;
}

.platform-notifications__item-body time {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.platform-notifications__read-form {
    margin: 0;
    flex-shrink: 0;
}

.platform-notifications__read-form button {
    width: 28px;
    height: 28px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    color: #0368ff;
    font-size: 12px;
    cursor: pointer;
}

.platform-notifications__empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.platform-notifications__dropdown-foot {
    padding: 12px 16px;
    border-top: 1px solid #f1f3f6;
    text-align: center;
    background: #f8fafc;
}

.platform-notifications__dropdown-foot a {
    font-size: 13px;
    font-weight: 700;
    color: #0368ff;
    text-decoration: none;
}

/* Página completa */
.platform-notifications-page__actions {
    margin-bottom: 16px;
}

.platform-notifications-page__btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #0368ff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.platform-notifications-page__list {
    display: grid;
    gap: 12px;
}

.platform-notifications-page__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.platform-notifications-page__item.is-unread {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.platform-notifications-page__item-main strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 6px;
}

.platform-notifications-page__item-main p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.platform-notifications-page__item-main time {
    font-size: 12px;
    color: #94a3b8;
}

.platform-notifications-page__item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.platform-notifications-page__link {
    font-size: 13px;
    font-weight: 600;
    color: #0368ff;
    text-decoration: none;
}

.platform-notifications-page__read {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    background: #e7f1ff;
    color: #0368ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.platform-notifications-page__read.is-done {
    background: #f1f5f9;
    color: #64748b;
    cursor: default;
}

.platform-notifications-page__empty {
    padding: 48px 24px;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #fff;
    color: #64748b;
}

.platform-notifications-page__pagination {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .platform-notifications-page__item {
        flex-direction: column;
    }

    .platform-notifications-page__item-actions {
        align-items: flex-start;
        flex-direction: row;
    }
}
