/* --- Estilos Gerais do Widget (Compartilhado) --- */
.sispe-ios-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

/* Modo Inbox (Na página) */
.sispe-mode-inbox {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    max-width: 100%;
    width: 100%;
}

/* Modo Dropdown (No Header) */
.sispe-mode-dropdown {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    width: 350px; /* Largura fixa para o dropdown */
}

/* Header */
.sispe-header {
    background: #f9f9f9;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
.sispe-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1c1c1e; }

/* Botão Limpar */
button.sispe-btn-text {
    background: transparent !important; border: none !important; padding: 0 !important;
    color: #007aff !important; font-size: 13px; cursor: pointer; font-weight: 500;
}
button.sispe-btn-text:hover { opacity: 0.7; }

/* Lista */
.sispe-list { max-height: 400px; overflow-y: auto; background: #fff; }
.sispe-list::-webkit-scrollbar { width: 5px; }
.sispe-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Itens */
.sispe-item {
    display: flex; padding: 12px 15px; border-bottom: 1px solid #f0f0f0;
    position: relative; transition: background 0.2s; cursor: pointer; align-items: flex-start;
}
.sispe-item:hover { background-color: #f5f5f7; }

/* Elementos do Item */
.sispe-dot { width: 8px; height: 8px; background: #007aff; border-radius: 50%; margin: 6px 10px 0 0; flex-shrink: 0; }
.sispe-content-link { text-decoration: none !important; flex-grow: 1; margin-right: 10px; display: block; }
.sispe-meta-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.sispe-author { font-weight: 600; color: #333; font-size: 14px; }
.sispe-time { color: #999; font-size: 11px; }
.sispe-context { font-size: 12px; color: #777; margin-bottom: 3px; }
.sispe-preview { font-size: 13px; color: #444; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Botão Fechar Item */
button.sispe-dismiss-btn {
    background: transparent !important; border: none !important; color: #ccc !important;
    font-size: 18px !important; cursor: pointer; padding: 0 !important; line-height: 1;
}
button.sispe-dismiss-btn:hover { color: #ff3b30 !important; }

/* Empty State */
.sispe-empty-state { padding: 30px 15px; text-align: center; color: #999; font-size: 14px; }
.sispe-empty-state .dashicons { font-size: 30px; width: 30px; height: 30px; display: block; margin: 0 auto 5px; }


/* --- SINO E DROPDOWN (Novo) --- */

.sispe-bell-wrapper {
    position: relative;
    display: inline-block;
}

.sispe-bell-icon {
    position: relative;
    cursor: pointer;
    padding: 5px;
    color: #555; /* Cor do ícone */
}
.sispe-bell-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Badge Contador */
.sispe-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    min-width: 14px;
    text-align: center;
}

/* Container do Dropdown */
.sispe-bell-dropdown {
    display: none; /* Oculto por padrão */
    position: absolute;
    top: 100%;
    right: -10px; /* Alinha à direita do sino */
    z-index: 9999;
    padding-top: 10px; /* Espaço para a "setinha" se quisesse */
}

/* Mostrar dropdown quando ativo */
.sispe-bell-wrapper.active .sispe-bell-dropdown {
    display: block;
    animation: sispeFadeIn 0.2s ease-out;
}

@keyframes sispeFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivo para mobile: Ajustar dropdown */
@media (max-width: 480px) {
    .sispe-mode-dropdown { width: 300px; }
    .sispe-bell-dropdown { right: -50px; } /* Ajuste fino dependendo do header */
}