:root {
    --bs-primary: #f24464;
    --bs-primary-rgb: 242, 68, 100;
    --bs-primary-text-emphasis: #a73148;
    --bs-primary-bg-subtle: #fde3e8;
    --bs-primary-border-subtle: #f7b4c1;
    --bs-link-color: #f24464;
    --bs-link-hover-color: #d93b55;
    --hi-header-height: 72px;
}

body {
    padding-top: var(--hi-header-height);
}

.hi-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.btn-primary {
    --bs-btn-bg: #f24464;
    --bs-btn-border-color: #f24464;
    --bs-btn-hover-bg: #d93b55;
    --bs-btn-hover-border-color: #d93b55;
    --bs-btn-focus-shadow-rgb: 242, 68, 100;
    --bs-btn-active-bg: #c8334d;
    --bs-btn-active-border-color: #c8334d;
    --bs-btn-disabled-bg: #f24464;
    --bs-btn-disabled-border-color: #f24464;
}

.btn-outline-primary {
    --bs-btn-color: #f24464;
    --bs-btn-border-color: #f24464;
    --bs-btn-hover-bg: #f24464;
    --bs-btn-hover-border-color: #f24464;
    --bs-btn-focus-shadow-rgb: 242, 68, 100;
    --bs-btn-active-bg: #f24464;
    --bs-btn-active-border-color: #f24464;
    --bs-btn-disabled-color: #f24464;
    --bs-btn-disabled-border-color: #f24464;
}

.text-primary {
    color: #f24464 !important;
}

.bg-primary {
    background-color: #f24464 !important;
}

.border-primary {
    border-color: #f24464 !important;
}

.link-primary {
    color: #f24464 !important;
}

.link-primary:hover,
.link-primary:focus {
    color: #d93b55 !important;
}

.hi-logo {
    height: 32px;
    width: auto;
}

@media (max-width: 576px) {
    .hi-logo {
        height: 26px;
    }
}

.login-card {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-switcher-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e3e3e3;
}

.hiper-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.hiper-logo-sm {
    max-width: 140px;
    height: auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/*.analysis-page .container {
    max-width: 100%;
}*/

.container {
    max-width: 1320px;
}

.container-max {
    max-width: 1320px;
}

.card-header h5 {
    font-size: 1.1rem;
}

.card-metric {
    transition: transform 0.3s;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-metric:hover {
    transform: translateY(-5px);
}

.card-metric .card-body .d-flex > div {
    flex: 1 1 auto;
    min-width: 0;
}

.card-metric .card-body .d-flex > span {
    flex-shrink: 0;
}

.card-metric .display-6 {
    font-size: clamp(1.35rem, 2.2vw, 2.3rem);
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.card-metric h6,
.card-metric .text-muted {
    word-break: break-word;
}

.card-followers {
    border-left: 4px solid #28a745;
}

.followers-change {
    font-size: 0.85rem;
}

.positive-change {
    color: #28a745;
}

.negative-change {
    color: #dc3545;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.8);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.filter-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-dark {
    background-color: #212529 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

.bg-hiperstorm-black {
    background: linear-gradient(135deg, #000000 0%, #000000 45%, #4a1a00 100%);
}

.bg-hiperstorm {
    background: linear-gradient(171deg, #f2c12e 0%, #f27141 45%, #f24464 100%);
}

.sort-icon {
    font-size: 0.75rem;
    transition: opacity 0.2s ease-in-out;
    opacity: 0.7;
}

.analysis-posts .sort-icon {
    display: none !important;
}

#posts-table tbody tr.post-row:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:before,
table.dataTable thead th.sorting_desc:after {
    display: none !important;
}

thead th {
    position: relative;
    vertical-align: middle;
    padding-right: 1rem;
}

.dataTables_length label {
    padding: 8px;
}

.dataTables_info {
    padding: 8px;
}

.dataTables_filter label {
    padding: 8px;
}

.dataTables_paginate {
    padding: 8px;
}

.datatable-wrapper .row {
    margin: 0 !important;
}

.chart-container {
    position: relative;
    min-height: 300px;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 12px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-60%);
    background: linear-gradient(90deg, rgba(233, 236, 239, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(233, 236, 239, 0) 100%);
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

.skeleton-card {
    height: 120px;
}

.skeleton-chart {
    height: 280px;
}

.skeleton-line {
    height: 14px;
    border-radius: 999px;
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-60%);
    background: linear-gradient(90deg, rgba(233, 236, 239, 0) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(233, 236, 239, 0) 100%);
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

.skeleton-stack > * + * {
    margin-top: 12px;
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(60%);
    }
}

.chart-message {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

#followerChart {
    max-height: 250px;
    width: 100% !important;
    margin: 0 auto;
}

#followerGrowthChart {
    max-height: 250px;
    width: 100% !important;
    margin: 0 auto;
}

.active > .page-link,
.page-link.active {
    z-index: 3;
    color: #ffffff;
    background-color: #f24464;
    border-color: #f24464;
}

.text-preline {
    white-space: pre-line;
}

.highlight-soft {
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0.5rem;
}

.post-detalhe .bg-light.rounded {
    border-left: 4px solid #ffc107;
}

.post-detalhe .card-metric h6 {
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-detalhe .card-metric .fs-2 {
    line-height: 1.1;
}

.post-detalhe .card-metric small {
    font-size: 0.75rem;
}

.post-detalhe video {
    aspect-ratio: 9 / 16;
    background: #000;
}

.post-detalhe .media-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-detalhe .media-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.export-report {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #222;
}

.export-report h1,
.export-report h2,
.export-report h3 {
    margin-bottom: 6px;
}

.export-report .section {
    margin-bottom: 28px;
}

.export-report .score {
    font-size: 42px;
    font-weight: bold;
}

.export-report .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: #eee;
    font-size: 11px;
}

.export-report .positive {
    color: #198754;
}

.export-report .warning {
    color: #fd7e14;
}

.export-report .neutral {
    color: #0d6efd;
}

.export-report hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 24px 0;
}

.export-report ul {
    padding-left: 18px;
}

.export-report .footer {
    font-size: 10px;
    color: #777;
    margin-top: 40px;
}

.analysis-posts .table-detalhes-publicacao {
    overflow-x: auto;
    max-width: 100%;
    margin: 0 auto;
}

.analysis-posts #posts-table {
    min-width: 960px;
}

@media (min-width: 576px) {
    .analysis-posts .table-detalhes-publicacao {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .analysis-posts .table-detalhes-publicacao {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .analysis-posts .table-detalhes-publicacao {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .analysis-posts .table-detalhes-publicacao {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .analysis-posts .table-detalhes-publicacao {
        max-width: 1320px;
    }
}
