:root {
    /* Primary palette - dark and pink theme */
    --primary-color: #FF2E93;
    --accent-color: #FF2E93;
    
    /* Background colors - dark theme */
    --bg-color: #121726;
    --card-bg: #1E2235;
    --hover-color: #2A2D42;
    
    /* Text colors - for dark theme */
    --text-color: #FFFFFF;
    --secondary-text: #B8B9C3;
    
    /* Functional colors */
    --border-color: #30334A;
    --success-color: #10B981;
    --repost-color: #10B981;
    --like-color: #FF2E93;
    --comment-color: #FF2E93;
    --share-color: #FF64BD;
    
    /* Gradients */
    --gradient-start: #7928CA;
    --gradient-end: #FF2E93;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: -0.011em;
    transition: all var(--transition-medium) ease;
    overflow-x: hidden;
}

/* Removed light-mode class since we're always in light mode now */

a {
    text-decoration: none;
    color: inherit;
}

button, .btn {
    cursor: pointer;
    font-family: inherit;
}

/* Layout - Completely rebuilt for reliability */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

/* Default flexible layout */
.main-content {
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.trends-container {
    width: 350px;
    min-width: 350px;
    flex-shrink: 0;
    display: block;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* When sidebar is toggled off */
.container.sidebar-hidden .sidebar {
    margin-left: -280px;
    width: 0;
    min-width: 0;
}

.container.sidebar-hidden .main-content {
    border-left: none;
    max-width: 100%;
    flex-grow: 1;
}

/* Force wider timeline when sidebar is hidden */
.container.sidebar-hidden {
    padding-left: 0;
}

/* Responsive layout */
@media (max-width: 1200px) {
    /* Only hide trends on tablet */
    .trends-container {
        display: none !important;
        width: 0;
        min-width: 0;
    }
}

/* Make sure trends are visible on desktop - no exceptions! */
@media (min-width: 1201px) {
    .trends-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: sticky !important;
        height: 100vh !important;
        overflow-y: auto !important;
        width: 350px !important;
        min-width: 350px !important;
        background-color: var(--card-bg);
        z-index: 100;
    }
}

/* Common sidebar styles for all devices */
.sidebar {
    z-index: 1000;
    height: 100vh;
    width: 280px;
    background-color: var(--card-bg);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Sidebar positioning - different for mobile/desktop */
@media (min-width: 769px) {
    /* Desktop sidebar */
    .sidebar {
        position: relative;
    }
    
    /* Default state is visible in desktop */
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* When not active, hide off-screen */
    .sidebar:not(.active) {
        transform: translateX(-280px);
    }
    
    /* Make sure the main content adjusts when sidebar is hidden */
    .container {
        transition: grid-template-columns 0.3s ease;
    }
    
    /* When sidebar is active, keep 3 column layout */
    .container .sidebar.active ~ .main-content {
        border-left: 1px solid var(--border-color);
    }
    
    /* When sidebar is hidden, expand main content */
    .container .sidebar:not(.active) ~ .main-content {
        border-left: none;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    /* Mobile sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        transform: translateX(-280px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .container.sidebar-hidden .sidebar,
    .container.sidebar-visible .sidebar {
        margin-left: 0; /* Override desktop behavior */
    }
    
    .main-content {
        width: 100% !important;
    }
    
    /* Hide trends on mobile only */
    .trends-container {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        margin-bottom: 60px;
        z-index: 10 !important;
        padding-top: 10px;
        display: block !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }}
    .posts-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    /* Hide overlay by default on mobile */
    .overlay {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
    }
    .overlay.active {
        display: block !important;
    }
    /* Prevent body from being hidden */
    body {
        overflow-y: auto !important;
    }
    /* Only prevent scrolling when menu is actually open */
    body.menu-open {
        overflow: hidden !important;
    }
}
    .overlay.active {
        display: block !important;
    }
}

/* Extra fixes for trends visibility */
.container > .trends-container {
    display: block;
    min-width: 350px;
    background-color: var(--bg-color);
}

/* Additional sidebar styling - these apply to all breakpoints */
.sidebar {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border-right: 1px solid var(--border-color);
}

.logo {
    font-size: 30px;
    margin-bottom: var(--space-xl);
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.logo i {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 34px;
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.25));
    margin-right: 10px;
}

.logo-text {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.25));
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px var(--space-md);
    margin-bottom: var(--space-sm);
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.nav-item span {
    display: inline-block;
    color: var(--text-color);
    transition: color var(--transition-fast) ease;
}

.nav-item:hover {
    background-color: var(--hover-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.nav-item.active {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 4px 12px rgba(255, 46, 147, 0.3);
    color: white;
    transform: translateX(0);
}

.nav-item.active span {
    color: white;
    font-weight: 700;
}

.nav-item i {
    margin-right: var(--space-md);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
}

.post-btn {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 16px 0;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    margin-top: var(--space-xl);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gradient-end), var(--gradient-start));
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.post-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.post-btn:hover::before {
    opacity: 1;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 40px;
    transition: background-color 0.2s;
}

.user-profile:hover {
    background-color: var(--hover-color);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
}

.user-handle {
    color: var(--secondary-text);
    font-size: 14px;
}

/* Main content */
.main-content {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(67, 97, 238, 0.03) 0%, rgba(247, 37, 133, 0.02) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.header {
    padding: 18px var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(30, 34, 53, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.header-tabs {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    max-width: 300px;
}

.tab-item {
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    text-align: center;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px 4px 0 0;
}

.tab-item:hover:not(.active) {
    color: var(--primary-color);
    opacity: 0.8;
}

.hamburger-menu {
    display: none;
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    .header .logo {
        font-size: 24px;
        margin-right: 15px;
        margin-bottom: 0;
    }
}

/* Compose tweet section */
.compose-post {
    display: flex;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: 20px;
    margin: var(--space-md);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.compose-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.compose-input-container {
    flex: 1;
}

.compose-input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 18px;
    min-height: 80px;
    resize: none;
    outline: none;
    padding: var(--space-md) 0;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.compose-input:focus {
    background-color: rgba(67, 97, 238, 0.03);
    padding: var(--space-md);
}

.compose-input::placeholder {
    color: var(--secondary-text);
}

.compose-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compose-tools {
    display: flex;
    align-items: center;
}

.tool-icon {
    color: var(--primary-color);
    font-size: 22px;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.tool-icon:hover {
    transform: scale(1.1);
}

.compose-submit {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.compose-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gradient-end), var(--gradient-start));
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.compose-submit:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.compose-submit:hover::before {
    opacity: 1;
}

/* Tweet styles */
.post {
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-medium);
    background-color: var(--card-bg);
    margin-bottom: var(--space-md);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.post:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    transition: height var(--transition-medium) ease;
}

.post:hover::after {
    height: 100%;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.post-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-right: var(--space-md);
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(247, 37, 133, 0.2);
    transition: transform var(--transition-fast);
}

.post:hover .post-avatar {
    transform: scale(1.05);
}

.post-user-info {
    flex: 1;
}

.post-name {
    font-weight: 600;
    font-size: 16px;
}

.post-handle, .post-time {
    color: var(--secondary-text);
    margin-left: 6px;
    font-size: 14px;
}

.post-content {
    margin-left: 62px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(30, 34, 53, 0.3);
    border-radius: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.glass-overlay span {
    color: #fff;
    background-color: rgba(92, 99, 255, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.post:hover .glass-overlay {
    opacity: 0;
}

.post-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.post-image {
    width: 100%;
    border-radius: 16px;
    margin-top: 10px;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.post:hover .post-image {
    transform: scale(1.02);
}

.post-actions {
    display: flex;
    margin-left: 62px;
    justify-content: space-between;
    max-width: 425px;
}

.post-action {
    display: flex;
    align-items: center;
    color: var(--secondary-text);
    font-size: 14px;
    transition: color 0.2s;
}

.post-action i {
    margin-right: 8px;
    font-size: 18px;
    transition: all var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.post-action:hover {
    color: var(--primary-color);
}

.post-action:hover i {
    transform: scale(1.2);
}

.post-action:nth-child(1):hover {
    color: var(--comment-color);
}

.post-action:nth-child(1):hover i {
    background-color: rgba(67, 97, 238, 0.1);
}

.post-action:nth-child(2):hover {
    color: var(--retweet-color);
}

.post-action:nth-child(2):hover i {
    background-color: rgba(16, 185, 129, 0.1);
}

.post-action:nth-child(3):hover {
    color: var(--like-color);
}

.post-action:nth-child(3):hover i {
    background-color: rgba(247, 37, 133, 0.1);
}

.post-action:nth-child(4):hover {
    color: var(--share-color); 
}

.post-action:nth-child(4):hover i {
    background-color: rgba(124, 58, 237, 0.1);
}

/* Trends and "Who to follow" sections */
.trends-container {
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--card-bg);
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 45px;
    border-radius: 30px;
    border: none;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.2s;
}

.search-input:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--secondary-text);
}

.trends-card, .follow-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 15px;
    font-weight: bold;
    font-size: 20px;
    border-bottom: 1px solid var(--border-color);
}

.trend-item, .follow-item {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.trend-item:hover, .follow-item:hover {
    background-color: var(--hover-color);
}

.trend-item:last-child, .follow-item:last-child {
    border-bottom: none;
}

.trend-category {
    font-size: 13px;
    color: var(--secondary-text);
}

.trend-name {
    font-weight: bold;
    margin: 5px 0;
}

.trend-count {
    font-size: 13px;
    color: var(--secondary-text);
}

.follow-item {
    display: flex;
    align-items: center;
}

.follow-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.follow-info {
    flex: 1;
}

.follow-name {
    font-weight: 600;
    font-size: 15px;
}

.follow-handle {
    color: var(--secondary-text);
    font-size: 14px;
}

.follow-btn {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(92, 99, 255, 0.3);
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(92, 99, 255, 0.4);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(92, 99, 255, 0.4);
    z-index: 9999 !important;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(92, 99, 255, 0.5);
}

.mobile-menu-toggle i {
    font-size: 24px;
    transition: transform 0.3s;
}

.toggle-label {
    display: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

@media (min-width: 769px) {
    .toggle-label {
        display: block;
    }
}

.mobile-menu-toggle i.fa-times {
    transform: rotate(90deg);
}

/* Mobile menu toggle now visible on all screen sizes with animation */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        right: 40px;
        bottom: 40px;
        width: 80px;
        height: 80px;
        animation: pulse 2s infinite;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(92, 99, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(92, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(92, 99, 255, 0);
    }
}

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}

.bottom-nav-item i {
    font-size: 22px;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active i {
    transform: scale(1.2);
}

.bottom-nav-item:hover i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    .mobile-menu-toggle {
        bottom: 70px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tweets-container {
    animation: fadeIn 0.6s ease;
}

.tweet {
    animation: slideUp 0.5s ease;
    animation-fill-mode: both;
}

/* Stagger tweet animations */
.tweet:nth-child(1) { animation-delay: 0.1s; }
.tweet:nth-child(2) { animation-delay: 0.2s; }
.tweet:nth-child(3) { animation-delay: 0.3s; }
.tweet:nth-child(4) { animation-delay: 0.4s; }

.tweet-btn:focus, .compose-submit:focus {
    animation: pulse 1s ease infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    opacity: 0.7;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

/* Focus styles for better accessibility */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

/* CSS animations for loading effect */
.fade-in {
    animation: fadeIn 0a.8s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}