/* Custom Scrollbar for better look in dark mode */
::-webkit-scrollbar { 
    width: 6px; 
}
::-webkit-scrollbar-thumb { 
    background-color: #38444d; 
    border-radius: 3px; 
}
::-webkit-scrollbar-track { 
    background-color: #1e1e1e; 
}

body { 
    font-family: 'Inter', Tahoma, sans-serif; 
    background-color: #000; 
    color: #d9d9d9; 
}

/* Main Grid Layout for 3 columns */
.main-grid {
    display: grid;
    grid-template-columns: 275px 1fr 350px; /* Left Sidebar, Center Feed, Right Trends */
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
}

/* Column Dividers */
.border-x-gray { 
    border-color: #2f3336; 
}

/* Custom Avatar/Icon Placeholder */
.avatar {
    width: 48px;
    height: 48px;
    line-height: 48px;
    background-color: #1d9bf0;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Message/Post transition */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.post { 
    animation: fadeIn 0.3s ease-out; 
}

/* Hide the default nickname modal for the dark theme */
#nickname-modal > div { 
    background-color: #15202b; 
    color: #d9d9d9; 
}
#nickname-modal input { 
    background-color: #000; 
    border-color: #2f3336; 
    color: #d9d9d9; 
}

/* Loader for status message */
.loader {
    border: 2px solid #2f3336;
    border-top: 2px solid #1d9bf0;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 5px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}