.story-upload-progress {
    margin: 15px 0;
    width: 100%;
  }
  .progress-bar-container {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
  }
  .progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color, #00ffcc);
    transition: width 0.3s ease;
  }
  .progress-text {
    margin-top: 5px;
    text-align: center;
    font-size: 12px;
    color: var(--text-primary, #fff);
  }






.poll-container {
    background-color: var(--bg-secondary, #1e1e2d);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poll-header {
    display: flex;
    align-items: center;
    color: var(--text-muted, #888);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.poll-header svg {
    margin-right: 6px;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option {
    position: relative;
    padding: 12px 15px;
    background-color: var(--bg-tertiary, #191927);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.poll-option:hover {
    background-color: var(--bg-hover, #20202f);
}

.poll-option.selected {
    border-left: 3px solid var(--primary-color, #00ffcc);
}

.poll-option-text {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    margin-bottom: 6px;
    color: var(--theme-color);
}

.poll-option-label {
    font-weight: 500;
}

.poll-option-percentage {
    font-weight: 600;
}

.poll-option-progress-container {
    height: 6px;
    background-color: var(--bg-primary, #171722);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
}

.poll-option-progress {
    height: 100%;
    background-color: #e0e0e0;
    transition: width 0.5s ease, background-color 0.3s ease;
}

.poll-option.selected .poll-option-progress {
    background-color: var(--primary-color, #00ffcc);
}

.poll-option-votes {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

/* Poll Creation Styles */
.poll-creation-container {
    background-color: var(--bg-secondary, #1e1e2d);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poll-creation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.poll-creation-header h4 {
    margin: 0;
    color: var(--text-primary, #fff);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #888);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.poll-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.poll-option-input-container {
    display: flex;
    align-items: center;
}

.poll-option-input {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color, #333);
    background-color: var(--bg-input, #1a1a27);
    color: var(--text-primary, #fff);
}

.remove-option-btn {
    background: none;
    border: none;
    color: var(--danger-color, #ff3366);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 8px;
}

.add-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px dashed var(--border-color, #333);
    color: var(--theme-color);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
}

.add-option-btn svg {
    margin-right: 6px;
}

.add-option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Post action button for poll */
.post-action-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--theme-color);
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.post-action-btn:hover {
    background-color: rgba(0, 255, 204, 0.1);
}

.post-action-btn svg {
    margin-right: 6px;
}

.post-actions {
    display: flex;
    margin-top: 10px;
}


/* Emoji Picker Styles - Matching Theme Design */
.emoji-picker-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-picker-btn:hover {
    transform: scale(1.1);
    background-color: rgba(var(--rgb-theme-color), 0.1);
}

.emoji-picker-btn svg {
    stroke: var(--theme-color);
    transition: transform 0.3s ease;
}

.emoji-picker-btn:hover svg {
    transform: rotate(15deg);
}

.emoji-picker-panel {
    display: none;
    position: absolute;
    width: 320px;
    max-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    z-index: 1000;
    flex-direction: column;
    transition: transform 0.5s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
}

/* Apply theme-specific background */
body:not(.light-theme) .emoji-picker-panel {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(var(--rgb-theme-color), 0.3);
}

body.light-theme .emoji-picker-panel {
    background-color: rgba(245, 245, 245, 0.95);
    border: 1px solid rgba(var(--rgb-theme-color), 0.3);
}

/* Add subtle background pattern for depth */
.emoji-picker-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

body:not(.light-theme) .emoji-picker-panel::before {
    background-image: 
        radial-gradient(rgba(var(--rgb-theme-color), 0.05) 1px, transparent 1px),
        radial-gradient(rgba(var(--rgb-theme-color), 0.03) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 10px 10px;
}

body.light-theme .emoji-picker-panel::before {
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 10px 10px;
}

.emoji-categories {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid rgba(var(--rgb-theme-color), 0.2);
    padding: 10px;
}

.emoji-category {
    background: transparent;
    border: none;
    padding: 6px 8px;
    margin-right: 4px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-category:hover {
    transform: scale(1.1);
    background-color: rgba(var(--rgb-theme-color), 0.1);
}

.emoji-category.active {
    background-color: rgba(var(--rgb-theme-color), 0.2);
    box-shadow: 0 0 10px rgba(var(--rgb-theme-color), 0.4);
}

.emoji-search {
    padding: 10px;
    border-bottom: 1px solid rgba(var(--rgb-theme-color), 0.2);
    position: relative;
}

#emojiSearch {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

body:not(.light-theme) #emojiSearch {
    border: 1px solid rgba(var(--rgb-theme-color), 0.3);
    color: var(--theme-color);
}

body.light-theme #emojiSearch {
    border: 1px solid rgba(var(--rgb-theme-color), 0.3);
    color: #333;
}

#emojiSearch:focus {
    outline: none;
    border-color: rgba(var(--rgb-theme-color), 0.6);
    box-shadow: 0 0 8px rgba(var(--rgb-theme-color), 0.3);
}

#emojiSearch::placeholder {
    color: rgba(var(--rgb-theme-color), 0.5);
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 5px;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 200px;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-color) transparent;
}

.emoji-list::-webkit-scrollbar {
    width: 6px;
}

.emoji-list::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-list::-webkit-scrollbar-thumb {
    background-color: rgba(var(--rgb-theme-color), 0.3);
    border-radius: 10px;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
    position: relative;
}

.emoji-item:hover {
    transform: scale(1.2);
    background-color: rgba(var(--rgb-theme-color), 0.15);
    z-index: 5;
}

.emoji-item:nth-child(3n+1) {
    animation-delay: 0.1s;
}

.emoji-item:nth-child(3n+2) {
    animation-delay: 0.2s;
}

.emoji-item:nth-child(3n) {
    animation-delay: 0.3s;
}

/* Tooltip for emoji name on hover */
.emoji-item::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--theme-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(var(--rgb-theme-color), 0.4);
}

.emoji-item:hover::after {
    opacity: 1;
    visibility: visible;
}

body.light-theme .emoji-item::after {
    background: rgba(255, 255, 255, 0.97);
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* No results message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--theme-color);
    font-style: italic;
    padding: 20px 0;
}

/* Fade-in animation for emoji list */
@keyframes emoji-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-item {
    animation: emoji-fade-in 0.3s ease forwards;
}

/* Panel fade-in animation */
@keyframes panel-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.emoji-picker-panel.visible {
    animation: panel-fade-in 0.3s ease forwards;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .emoji-picker-panel {
        width: 280px;
    }
    
    .emoji-category {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .emoji-item {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* Styles to make the profile picture look clickable */
.profile-picture-clickable {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-picture-clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--theme-color, #00ffcc);
}

.profile-picture-clickable:active {
    transform: scale(1.05);
}

/* Mention popup styles - Matching Theme Design */
.mention-popup {
    position: fixed;
    width: 320px;
    max-height: 260px;
    overflow: hidden;
    border-radius: 12px;
    z-index: 1000;
    flex-direction: column;
    transition: transform 0.5s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
    display: none;
}

/* Apply theme-specific background */
body:not(.light-theme) .mention-popup {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(var(--rgb-theme-color), 0.3);
}

body.light-theme .mention-popup {
    background-color: rgba(245, 245, 245, 0.95);
    border: 1px solid rgba(var(--rgb-theme-color), 0.3);
}

/* Add subtle background pattern for depth */
.mention-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

body:not(.light-theme) .mention-popup::before {
    background-image: 
        radial-gradient(rgba(var(--rgb-theme-color), 0.05) 1px, transparent 1px),
        radial-gradient(rgba(var(--rgb-theme-color), 0.03) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 10px 10px;
}

body.light-theme .mention-popup::before {
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 10px 10px;
}

.mention-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    margin: 6px 8px;
    position: relative;
}

.mention-option:hover,
.mention-option.selected {
    transform: scale(1.02);
    background-color: rgba(var(--rgb-theme-color), 0.1);
}

.mention-option.selected {
    background-color: rgba(var(--rgb-theme-color), 0.15);
    box-shadow: 0 0 10px rgba(var(--rgb-theme-color), 0.3);
}

.mention-option img {
    margin-right: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mention-option:hover img {
    transform: scale(1.1);
}

.mention-display-name {
    font-weight: bold;
}

body:not(.light-theme) .mention-display-name {
    color: var(--theme-color);
}

body.light-theme .mention-display-name {
    color: #333;
}

.mention-username {
    font-size: 14px;
    margin-top: 2px;
}

body:not(.light-theme) .mention-username {
    color: rgba(var(--rgb-theme-color), 0.7);
}

body.light-theme .mention-username {
    color: #666;
}

/* ─── LIGHT THEME ──────────────────────────────────────────── */
/* Override CSS variable-based components */
body.light-theme {
    --bg-secondary: #ffffff;
    --bg-dark: #f0f2f8;
    --text-primary: #1a1a2e;
    --text-muted: #6666aa;
}

body.light-theme .poll-container {
    background: #ffffff;
    border: 1px solid rgba(var(--rgb-theme-color), 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #1a1a2e;
}

body.light-theme .poll-option {
    background: #f5f5ff;
    border-color: rgba(var(--rgb-theme-color), 0.25);
    color: #1a1a2e;
}

body.light-theme .poll-option:hover {
    background: rgba(var(--rgb-theme-color), 0.08);
    border-color: var(--theme-color);
}

body.light-theme .poll-option.voted {
    background: rgba(var(--rgb-theme-color), 0.12);
    border-color: var(--theme-color);
}

body.light-theme .poll-header,
body.light-theme .progress-text {
    color: #6666aa;
}

/* Dropdown options container */
.mention-popup-content {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-color) transparent;
}

.mention-popup-content::-webkit-scrollbar {
    width: 6px;
}

.mention-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.mention-popup-content::-webkit-scrollbar-thumb {
    background-color: rgba(var(--rgb-theme-color), 0.3);
    border-radius: 10px;
}

/* Fade-in animation for mention options */
@keyframes mention-option-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mention-option {
    animation: mention-option-fade-in 0.3s ease forwards;
}

.mention-option:nth-child(1) {
    animation-delay: 0.1s;
}

.mention-option:nth-child(2) {
    animation-delay: 0.2s;
}

.mention-option:nth-child(3) {
    animation-delay: 0.3s;
}

.mention-option:nth-child(4) {
    animation-delay: 0.4s;
}

.mention-option:nth-child(5) {
    animation-delay: 0.5s;
}

/* Panel fade-in animation */
@keyframes mention-panel-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mention-popup.visible {
    animation: mention-panel-fade-in 0.3s ease forwards;
}

/* Make @mentions stand out in posts */
.feed-content .mention {
    color: var(--theme-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.feed-content .mention:hover {
    text-decoration: underline;
    cursor: pointer;
    transform: translateY(-1px);
}

/* Empty state message */
.no-mentions {
    text-align: center;
    padding: 20px;
    color: var(--theme-color);
    font-style: italic;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .mention-popup {
        width: 280px;
    }
    
    .mention-option {
        padding: 10px 12px;
    }
    
    .mention-option img {
        width: 24px;
        height: 24px;
    }
}

/* Additional styles for poll grid items */
.post-grid-item.poll-post .poll-container {
    padding: 10px;
    margin: 0;
    height: 100%;
    font-size: 0.8rem;
}

.post-grid-item.poll-post .poll-header {
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.post-grid-item.poll-post .poll-option {
    padding: 8px 10px;
    font-size: 0.75rem;
}

.post-grid-item.poll-post .poll-option-text {
    margin-bottom: 4px;
}

.post-grid-item.poll-post .poll-option-progress-container {
    height: 4px;
    margin-bottom: 4px;
}

.post-grid-item.poll-post .poll-option-votes {
    font-size: 0.65rem;
}

.poll-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color, #00ffcc);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.poll-badge.voted {
    background: var(--primary-color, #00ffcc);
    color: #000;
}

.post-grid-item.user-voted {
    border-color: var(--primary-color, #00ffcc);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

/* Make poll options more compact in grid view */
.post-grid-item.poll-post .poll-options {
    gap: 6px !important;
}

/* Ensure remove vote button fits nicely */
.post-grid-item.poll-post .remove-option-btn {
    font-size: 0.6rem !important;
    padding: 3px 6px !important;
    margin-top: 5px !important;
}

/*Suspended User Overlay Styles*/
/* Suspended User Post Styles */
.suspended-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: bold;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
}

.suspended-header {
    opacity: 0.7;
}

.suspended-profile-pic {
    border-radius: 50%;
    filter: grayscale(100%) opacity(0.5);
}

.suspended-user-info {
    display: flex;
    align-items: center;
    color: #888;
}

.suspended-username {
    color: #666 !important;
}

.blurred-text {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.suspended-post-warning {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin: 15px 0;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.08), rgba(204, 0, 0, 0.04));
    border: 2px solid rgba(255, 68, 68, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.suspended-icon-wrapper {
    flex-shrink: 0;
}

.suspended-icon-svg {
    color: #ff4444;
    opacity: 0.8;
    animation: suspendedPulse 2s ease-in-out infinite;
}

.suspended-text {
    flex: 1;
}

.suspended-text strong {
    display: block;
    color: #ff4444;
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.suspended-text p {
    color: var(--text-muted, #888);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.suspended-actions {
    opacity: 0.4;
    pointer-events: none;
}

.suspended-actions .disabled {
    cursor: not-allowed;
}

@keyframes suspendedPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.05);
    }
}