:root {
    --primary-color: #0d6efd;
    --text-color: #212529;
    --border-color: #dee2e6;
    --bg-secondary: #f8f9fa;
}

[data-bs-theme="dark"] {
    --primary-color: #0dcaf0;
    --text-color: #f8f9fa;
    --border-color: #495057;
    --bg-secondary: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background-color: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #000 !important;
}

.theme-switcher-group {
    display: flex;
    gap: 0.25rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    padding: 0.25rem;
}

.theme-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    background-color: transparent;
    color: #333;
    cursor: pointer;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.theme-btn.active {
    background-color: rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Tweet Table Layout */
.tweet-row {
    animation: fadeIn 0.4s ease-out;
}

.tweet-avatar-cell {
    width: 60px;
    padding-top: 0.5rem !important;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    display: block;
}

.tweet-content-cell {
    padding-top: 0.5rem !important;
    vertical-align: top;
}

.tweet-indicator-cell {
    width: 40px;
    text-align: center;
    padding-top: 0.75rem !important;
    vertical-align: top;
}

.stat-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    color: var(--bs-gray-600);
}

/* Animation for fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .theme-switcher-group {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .tweet-avatar-cell {
        width: 50px;
        padding: 0.25rem !important;
    }
    
    .tweet-avatar {
        width: 40px;
        height: 40px;
    }
    
    .tweet-indicator-cell {
        width: 35px;
        padding: 0.5rem !important;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
}
