.sentiment-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 80vh;
}

.sentiment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 2.5rem;
    font-family: 'Eightgon', sans-serif;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-muted);
}

.actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.search-box input {
    padding: 10px 16px 10px 36px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 250px;
}

/* Dashboard Layout */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-main {
    font-size: 3rem;
    font-weight: 700;
    font-family: monospace;
    margin-bottom: 10px;
}

.val-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.val-label.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.val-label.neutral {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.val-label.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.green-text {
    color: #10b981;
}

.red-text {
    color: #ef4444;
}

.small-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Chart Section */
.chart-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
}

.chart-wrapper {
    height: 350px;
    width: 100%;
}

/* Bottom Row */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.half-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Heated List */
.heated-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.heated-item {
    padding: 15px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
}

.heated-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bad-score {
    color: #ef4444;
    font-weight: bold;
}

.heated-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.heated-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.heated-author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Top Contributors */
.contributors-table {
    width: 100%;
    border-collapse: collapse;
}

.contributors-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.contributors-table td {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contributor-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.text-right {
    text-align: right;
}

.empty-state {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Loading */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {

    .stats-row,
    .bottom-row {
        grid-template-columns: 1fr;
    }
}