:root {
    --bg-color: #000000;
    --card-bg: #000000;
    --border-color: #2f3336;
    --text-primary: #e7e9ea;
    --text-secondary: #71767b;
    --accent-color: #1d9bf0;
    --accent-hover: #1a8cd8;
    --danger-color: #f4212e;
    --success-color: #00ba7c;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family), serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px !important;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 0 !important;
    min-height: 100vh;
}

/* Navbar / Static Sidebar look */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: background-color 0.2s;
    border-radius: 9999px;
    padding: 8px 16px !important;
}

.nav-link:hover {
    background-color: rgba(231, 233, 234, 0.1);
}

/* Tweet Card */
.tweet-card {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tweet-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    background-color: #333;
    flex-shrink: 0;
}

.tweet-meta {
    display: flex;
    flex-direction: column;
}

.tweet-author {
    font-weight: 700;
    color: var(--text-primary);
}

.tweet-username,
.tweet-handle {
    color: var(--accent-color);
}

.tweet-time {
    color: var(--text-secondary);
    font-size: 0.95em;
    text-decoration: none !important;
}

.tweet-time:hover {
    text-decoration: underline !important;
}

.target-tweet {
    background-color: rgba(29, 155, 240, 0.1) !important;
    border-left: 4px solid var(--accent-color);
}

.tweet-content {
    margin-left: 60px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 20px;
    white-space: pre-wrap;
    word-break: break-word;
}

.tweet-content b {
    color: var(--accent-color);
}

.tweet-text {
    font-size: 15px;
    line-height: 20px;
    white-space: pre-wrap;
    word-break: break-word;
}

.reply-parent {
    color: var(--text-secondary);
    font-size: 15px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 4px;
    border-left: 2px solid var(--border-color);
}

.reply-parent .tweet-username {
    font-weight: 700;
}

.thread-line {
    width: 2px;
    height: 12px;
    background-color: var(--border-color);
    margin-left: 20px;
    margin-bottom: 4px;
}

.tweet-deleted {
    border-left: 4px solid var(--danger-color);
}

.tweet-badge-deleted {
    color: var(--danger-color);
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}

.tweet-media {
    margin-left: 60px;
    margin-top: 8px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tweet-media img {
    width: 100%;
    display: block;
}

.tweet-actions {
    margin-left: 60px;
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 12px;
    color: var(--text-secondary);
}

.tweet-actions:has(> :only-child) {
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none !important;
    color: inherit !important;
}

.action-btn:hover {
    color: var(--accent-color);
}

.action-btn.delete:hover {
    color: var(--danger-color);
}

.action-btn svg {
    width: 18.75px;
    height: 18.75px;
}

/* Pagination */
.pagination .page-link {
    background-color: transparent;
    border: none;
    color: var(--accent-color);
    border-radius: 9999px;
    margin: 0 4px;
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-secondary);
}

/* Stats Footer-sticky */
.stats-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
}

.top-star {
    color: #ffd700;
    margin-right: 4px;
}

.diff-added {
    color: var(--success-color);
    background-color: rgba(0, 186, 124, 0.1);
}

.diff-removed {
    color: #ffd700;
    text-decoration: line-through;
    background-color: rgba(255, 215, 0, 0.1);
}

.section-header {
    padding: 12px 16px;
    font-weight: 800;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}