.opinor-notificacoes {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    z-index: 10051;
}

.opinor-notificacoes.fixed-top-right {
    position: fixed;
    top: 12px;
    right: 110px;
}

.opinor-top-tools {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 10px;
}

.opinor-top-tools .opinor-notificacoes {
    position: relative;
    top: auto;
    right: auto;
}

body.layout-embedded .opinor-notificacoes {
    display: none !important;
}

.opinor-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(232, 150, 12, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #3E2A1A;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(62, 42, 26, 0.08);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.opinor-notif-btn:hover {
    background: #fff;
    border-color: #E8960C;
    transform: scale(1.04);
}

.opinor-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.opinor-notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 100px));
    background: #fff;
    border: 1px solid rgba(232, 150, 12, 0.35);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    flex-direction: column;
    overflow: hidden;
}

.opinor-notificacoes.open .opinor-notif-panel {
    display: flex;
}

.opinor-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1ece2;
    background: #faf8f5;
}

.opinor-notif-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #3E2A1A;
}

.opinor-notif-refresh {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.opinor-notif-refresh:hover {
    background: #fff;
    color: #3E2A1A;
}

.opinor-notif-list {
    overflow-y: auto;
    padding: 8px;
}

.opinor-notif-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.opinor-notif-item:hover {
    background: #faf8f5;
}

.opinor-notif-item + .opinor-notif-item {
    margin-top: 4px;
}

.opinor-notif-item-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.opinor-notif-item-body {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    padding-left: 22px;
}

.opinor-notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.opinor-notif-dot.info { background: #3b82f6; }
.opinor-notif-dot.success { background: #22c55e; }
.opinor-notif-dot.warning { background: #f59e0b; }
.opinor-notif-dot.error { background: #ef4444; }

.opinor-notif-empty,
.opinor-notif-loading,
.opinor-notif-error {
    padding: 24px 16px;
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
}

.opinor-notif-error {
    color: #e74c3c;
}

@media (max-width: 480px) {
    .opinor-notificacoes.fixed-top-right {
        top: 8px;
        right: 88px;
    }
    .opinor-top-tools {
        top: 8px;
        right: 8px;
    }
}
