html, body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: static !important;
    background-color: #f0f2f5 !important;
    font-family: 'Inter', sans-serif;
    touch-action: auto !important;
    overscroll-behavior: auto !important;
}

.feed-container { max-width: 1100px; margin: 0 auto; padding-bottom: 80px; }
.update-pill {
    position: fixed;
    left: 50%;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.update-pill.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack img { width: 24px; height: 24px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.avatar-stack img:first-child { margin-left: 0; }
.update-text { font-size: 0.8rem; font-weight: 700; color: #0d6efd; }

.news-card {
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, opacity;
}
.news-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); }
.news-card.card-resolved { background-color: #f4fbf6; border-color: #d1e7dd; }
.status-dot { width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; display: inline-block; }
.st-aberto { background-color: #dc3545; box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15); }
.st-analise { background-color: #ffc107; box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.15); }
.st-resolvido { background-color: #198754; box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.15); }

#modalLightbox .modal-content { background: transparent; border: none; }
#modalLightbox .modal-body { padding: 0; }
.carousel-fullscreen img,
.carousel-fullscreen video { display: block; width: 100%; max-height: 85vh; margin: 0 auto; object-fit: contain; }
.carousel-control-prev,
.carousel-control-next { width: 10%; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
    padding: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    background-size: 50%;
}

.news-header { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f8f9fa; }
.news-author-group { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; transition: opacity 0.2s; }
.news-avatar { width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }
.news-meta h6 { margin: 0; font-size: 0.95rem; font-weight: 700; color: #1e293b; }
.news-meta small { font-size: 0.75rem; font-weight: 500; color: #94a3b8; }
.news-body { padding: 20px; }
.news-category-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 320px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    background: #f8f9fa;
    cursor: zoom-in;
}
.news-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
}
.news-image-container:hover .zoom-hint { opacity: 1; }
.news-footer { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f3f5; background: #fff; }
.comments-section { padding: 15px 20px; border-top: 1px solid #eee; background-color: #f8f9fa; }
.comments-list { max-height: 300px; margin-bottom: 15px; overflow-y: auto; }
.btn-like i { transition: transform 0.2s; }
.btn-like:active i { transform: scale(1.5); }
.bi-heart-fill.text-danger { animation: heart-burst 0.4s ease-out; }
@keyframes heart-burst {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.sticky-sidebar { position: sticky; }
.widget-card { margin-bottom: 20px; padding: 20px; border: 1px solid rgba(0, 0, 0, 0.04); border-radius: 16px; background: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01); }
.widget-title { margin-bottom: 15px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #334155; }
.kpi-row { display: flex; gap: 10px; margin-bottom: 20px; }
.kpi-mini { flex: 1; padding: 15px 5px; text-align: center; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.kpi-val { display: block; font-size: 1.4rem; line-height: 1; font-weight: 800; color: #0f172a; }
.kpi-lbl { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; color: #64748b; }
#miniMapHeat { width: 100%; height: 220px; border-radius: 12px; }

.fab-container { position: fixed; right: 30px; bottom: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; align-items: center; }
.fab-item {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: inherit;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}
.fab-item:hover { transform: scale(1.1); }
.fab-map { border: 1px solid #e9ecef; color: #0d6efd; background: #fff; }
.fab-report { color: #fff; background: #dc3545; animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.reply-form { margin-left: 20px; transition: all 0.3s; }
.border-start.border-2 { border-color: #e9ecef !important; }
.emoji-picker-container { z-index: 10000; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.sk-card { margin-bottom: 20px; padding: 20px; border: 1px solid #eee; border-radius: 16px; background: #fff; }
.sk-header { display: flex; align-items: center; margin-bottom: 20px; }
.sk-avatar { width: 42px; height: 42px; margin-right: 15px; border-radius: 50%; }
.sk-line { height: 12px; margin-bottom: 8px; border-radius: 4px; }
.sk-line.short { width: 40%; }
.sk-img { width: 100%; height: 250px; margin-bottom: 15px; border-radius: 12px; }

@media (max-width: 768px) {
    .feed-container { padding-bottom: 100px; }
    .fab-container { display: none !important; }
}
