/* Enhanced Newsfeed Styles - Modern & Minimalist Design */

/* ===== LAYOUT STYLES ===== */
body {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Header Improvements */
.header-static {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark-mode .header-static {
    background: #2d3748 !important;
    border-bottom: 1px solid #4a5568;
}

/* Main Content Area */
main {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1180px;
}

/* Sidebar Improvements - No sticky positioning */

/* Content Area */
.content-area {
    background: transparent;
    padding: 0;
}

/* ===== NEWSFEED CONTAINER ===== */
.newsfeed-container {
    max-width: 680px;
    margin: 0 auto;
}
/* ===== STORY SECTION ===== */
.stories-container {
    background: #667eea;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stories-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.create-story-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.create-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.create-story-btn {
    width: 48px;
    height: 48px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.create-story-btn:hover {
    transform: scale(1.1);
    color: white;
    background: #5a67d8;
}

.create-story-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

/* ===== WELCOME CARD ===== */
.welcome_card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.welcome_card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.greet_icon {
    width: 56px;
    height: 56px;
    background: #ffd89b;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
    font-size: 1.5rem;
}

.greet_content h5 {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.greet_content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

/* Post Container */
#postholder {
    margin-top: 24px;
}

/* ===== POST CREATION CARD ===== */
.post-creation-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    z-index: 1040;
}

.post-creation-card.post-active {
    z-index: 1045;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.post-highlighter {
    background: #000;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1031;
    opacity: 0.6;
    transition: opacity 0.3s;
    display: none;
}

.post-creation-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.post-input-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.post-input-container:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    border: 1px solid #0d6efd;
}

.post-textarea {
    border: none;
    background: transparent;
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    min-height: 60px;
    padding: 0;
    margin: 0;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.post-textarea::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.posting-detail {
    background: linear-gradient(145deg, rgba(36, 107, 253, 0.04), rgba(91, 209, 165, 0.05));
    border: 1px solid #dde3f4;
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 24px 48px rgba(22, 35, 58, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.posting-detail:hover {
    box-shadow: 0 28px 52px rgba(22, 35, 58, 0.12);
    transform: translateY(-2px);
}

.posting-detail > div {
    margin-bottom: 24px;
}

.posting-detail > div:last-child {
    margin-bottom: 0;
}

.posting-detail h6 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1f2a44;
}

.posting-detail .btn-close {
    background: rgba(36, 107, 253, 0.08);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.2s ease;
}

.posting-detail .btn-close:hover {
    background: rgba(36, 107, 253, 0.18);
    transform: rotate(90deg);
}

.emoji-button {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.emoji-button:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Advanced Emoji Picker */
.emoji-picker {
    animation: fadeInUp 0.2s ease;
    z-index: 1050;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.emoji-btn {
    transition: all 0.2s ease;
    border: none;
    background: none;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 4px;
}

.emoji-btn:hover {
    transform: scale(1.2);
    background: rgba(13, 110, 253, 0.1);
}

/* Emoji Modal Styles */
.emoji-search {
    position: relative;
}

.emoji-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.emoji-category {
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.emoji-category.active {
    background: #0d6efd;
    color: white;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 1.5rem;
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.emoji-item:hover {
    background: rgba(13, 110, 253, 0.1);
    transform: scale(1.1);
}

/* Advanced Feeling Selection */
.feeling-section {
    border: 1px solid #dbe1f0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 42px rgba(22, 35, 58, 0.08);
}

.feeling-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e1e5e9;
}

.feeling-category {
    background: rgba(255, 255, 255, 0.85);
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feeling-category:hover {
    background: rgba(36, 107, 253, 0.08);
}

.feeling-category.active {
    background: rgba(36, 107, 253, 0.12);
    color: #0d6efd;
    font-weight: 600;
}

.feeling-icon {
    font-size: 1.5rem;
}

.feeling-sub-options {
    border-top: 1px solid #e1e5e9;
}

.feeling-options-grid {
    display: grid;
    gap: 1px;
    background: #e1e5e9;
    max-height: 300px;
    overflow-y: auto;
}

.feeling-option {
    background: rgba(255, 255, 255, 0.92);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feeling-option:hover {
    background: rgba(36, 107, 253, 0.08);
}

.feeling-option-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feeling-emoji {
    font-size: 1.2rem;
}

.feeling-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.selected-feeling-badge {
    background: #e3f2fd !important;
    border: 1px solid #bbdefb;
    color: #0d6efd;
    font-weight: 500;
}

.custom-feeling-input {
    background: #f8f9fa;
    border-radius: 8px;
}

/* Advanced Poll Creation */
.poll-section {
    border: 1px solid #dbe1f0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 42px rgba(22, 35, 58, 0.08);
}

.poll-header {
    background: linear-gradient(90deg, rgba(36, 107, 253, 0.12), rgba(36, 107, 253, 0));
    border-bottom: 1px solid #d0d8ea;
}

.poll-content {
    background: rgba(255, 255, 255, 0.97);
}

.poll-option-item {
    transition: all 0.2s ease;
}

.poll-option-item:hover {
    background: rgba(36, 107, 253, 0.06);
}

.poll-settings {
    border-top: 1px solid #dbe1f0;
    padding-top: 16px;
}

/* Responsive Design for Advanced Features */
@media (max-width: 768px) {
    .feeling-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feeling-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .emoji-categories {
        gap: 4px;
    }
    
    .emoji-category {
        font-size: 1rem;
        padding: 6px 8px;
    }
}

@media (max-width: 576px) {
    .feeling-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feeling-options-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Dark Mode Support for Advanced Features */
.dark-mode .feeling-section,
.dark-mode .poll-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .posting-detail {
    background: rgba(29, 40, 56, 0.92);
    border-color: #3b4763;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.45);
}

.dark-mode .posting-detail:hover {
    box-shadow: 0 28px 54px rgba(15, 23, 42, 0.55);
}

.dark-mode .posting-detail h6 {
    color: #e2e8f0;
}

.dark-mode .posting-detail .btn-close {
    background: rgba(99, 179, 237, 0.25);
}

.dark-mode .posting-detail .btn-close:hover {
    background: rgba(99, 179, 237, 0.4);
}

.dark-mode .feeling-header,
.dark-mode .poll-header,
.dark-mode .color-post-header,
.dark-mode .tag-people-header,
.dark-mode .location-header {
    background: linear-gradient(90deg, rgba(99, 179, 237, 0.16), rgba(99, 179, 237, 0));
    border-color: #3b4763;
}

.dark-mode .feeling-category {
    background: #2d3748;
    color: #e2e8f0;
}

.dark-mode .feeling-category:hover {
    background: #4a5568;
}

.dark-mode .feeling-category.active {
    background: #2c5282;
    color: #63b3ed;
}

.dark-mode .feeling-option {
    background: #2d3748;
    color: #e2e8f0;
}

.dark-mode .feeling-option:hover {
    background: #4a5568;
}

.dark-mode .selected-feeling-badge {
    background: #2c5282 !important;
    border-color: #3182ce;
    color: #63b3ed;
}

.dark-mode .poll-header {
    background: #4a5568;
    border-color: #4a5568;
}

.dark-mode .poll-content {
    background: #2d3748;
    color: #e2e8f0;
}

.dark-mode .poll-option-item:hover {
    background: #4a5568;
}

.dark-mode .poll-settings {
    border-color: #4a5568;
}

.dark-mode .emoji-item:hover {
    background: rgba(99, 179, 237, 0.2);
}

/* Advanced Location Check-in */
.location-section {
    border: 1px solid #dbe1f0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 42px rgba(22, 35, 58, 0.08);
}

.location-search .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.location-search .form-control {
    border: none;
    padding: 12px 16px;
}

.location-search .input-group-text {
    background: #fff;
    border: none;
    color: #6c757d;
}

.location-search .btn {
    border: none;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.2s ease;
}

.location-search .btn:hover {
    background: #e9ecef;
    color: #0d6efd;
}

/* Location Search Results */
.location-results {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    max-height: 300px;
    overflow-y: auto;
}

.location-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.location-results-list {
    max-height: 250px;
    overflow-y: auto;
}

.location-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-result-item:hover {
    background: #f8f9fa;
}

.location-result-item:last-child {
    border-bottom: none;
}

.location-result-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-result-icon {
    font-size: 1.2rem;
    color: #0d6efd;
    flex-shrink: 0;
}

.location-result-details {
    flex-grow: 1;
    min-width: 0;
}

.location-result-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}

.location-result-address {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.location-result-type {
    font-size: 0.75rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-result-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Selected Location Preview */
.selected-location-preview {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 16px;
}

.selected-location-header {
    margin-bottom: 12px;
}

.selected-location-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-location-icon {
    font-size: 1.2rem;
    color: #0d6efd;
    flex-shrink: 0;
}

.selected-location-details {
    flex-grow: 1;
}

.selected-location-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}

.selected-location-address {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.selected-location-type {
    font-size: 0.75rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Location Input */
.custom-location-input {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 16px;
}

/* No Results Message */
.no-location-results {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Location Badge */
.selected-location-badge {
    background: #e3f2fd !important;
    border: 1px solid #bbdefb;
    color: #0d6efd;
    font-weight: 500;
    max-width: 100%;
}

.location-badge-content {
    flex-grow: 1;
    min-width: 0;
}

.location-badge-name {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 2px;
}

.location-badge-address {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Responsive Design for Location */
@media (max-width: 768px) {
    .location-result-content {
        gap: 8px;
    }
    
    .location-result-name {
        font-size: 0.9rem;
    }
    
    .location-result-address {
        font-size: 0.8rem;
    }
    
    .location-result-type {
        font-size: 0.7rem;
    }
    
    .location-badge-content {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .location-search .btn span {
        display: none;
    }
    
    .location-result-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .location-result-rating {
        align-self: flex-end;
    }
}

/* Dark Mode Support for Location */
.dark-mode .location-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .location-header {
    background: #4a5568;
    border-color: #4a5568;
}

.dark-mode .location-content {
    background: #2d3748;
    color: #e2e8f0;
}

.dark-mode .location-search .form-control {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .location-search .input-group-text {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .location-search .btn {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .location-search .btn:hover {
    background: #2d3748;
    color: #63b3ed;
}

.dark-mode .location-results {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .location-results-header {
    background: #4a5568;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .location-result-item {
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .location-result-item:hover {
    background: #4a5568;
}

.dark-mode .location-result-name {
    color: #e2e8f0;
}

.dark-mode .location-result-address {
    color: #a0aec0;
}

.dark-mode .location-result-type {
    color: #718096;
}

.dark-mode .location-result-rating {
    color: #a0aec0;
}

.dark-mode .selected-location-preview {
    background: #4a5568;
    border-color: #4a5568;
}

.dark-mode .selected-location-name {
    color: #e2e8f0;
}

.dark-mode .selected-location-address {
    color: #a0aec0;
}

.dark-mode .selected-location-type {
    color: #718096;
}

.dark-mode .custom-location-input {
    background: #4a5568;
    border-color: #4a5568;
}

.dark-mode .no-location-results {
    background: #4a5568;
    border-color: #4a5568;
}

.dark-mode .selected-location-badge {
    background: #2c5282 !important;
    border-color: #3182ce;
    color: #63b3ed;
}

.dark-mode .location-badge-name {
    color: #63b3ed;
}

.dark-mode .location-badge-address {
    color: #a0aec0;
}

/* Action Buttons Styling */
.post-actions-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.action-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.action-button:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    color: #212529;
    text-decoration: none;
}

.action-button i {
    font-size: 1.1rem;
}

/* Specific action button colors */
.action-button.photo-action i { color: #28a745; }
.action-button.video-action i { color: #17a2b8; }
.action-button.event-action i { color: #dc3545; }
.action-button.feeling-action i { color: #ffc107; }
.action-button.location-action i { color: #6c757d; }
.action-button.poll-action i { color: #6f42c1; }
.action-button.color-post-action i { color: #e91e63; }
.action-button.gif-action i { color: #00bcd4; }
.action-button.audio-action i { color: #9c27b0; }
.action-button.voice-note-action i { color: #f44336; }
.action-button.file-upload-action i { color: #795548; }
.action-button.tag-people-action i { color: #2196f3; }

/* Footer Actions */
.post-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.privacy-selector {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.privacy-selector:hover {
    background: #e9ecef;
    color: #212529;
}

.post-submit-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.live-video-btn {
    background: #dc3545;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.live-video-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    color: white;
}

.post-btn {
    background: #0d6efd;
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    color: white;
}

/* Feeling List Styling */
.feeling-list {
    position: relative;
    margin-bottom: 16px;
}

#feelingList {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.feeling-list .list-group-item {
    cursor: pointer;
    background: #ffffff;
    border: none;
    padding: 12px 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feeling-list .list-group-item:hover {
    background: #f8f9fa;
}

.feeling-list .list-group-item i {
    font-size: 1.1rem;
    width: 20px;
}

/* Preview Area */
.preview-area {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 2px dashed #dee2e6;
}

/* Poll Container */
.poll-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

/* ===== POST CARDS ===== */
.post_card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 24px;
    /* overflow: hidden; */
}

.post_card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.post_card .card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px 16px;
}

.post_card .card-body {
    padding: 0 24px 20px;
}

.post_card .card-footer {
    background: transparent;
    border-top: 1px solid #e9ecef;
    padding: 16px 24px 20px;
}

/* ===== AVATAR STYLING ===== */
.avatar {
    position: relative;
}


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

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #28a745;
}

.avatar-sm .avatar-img {
    width: 36px;
    height: 36px;
    border-width: 2px;
}

.avatar-xs .avatar-img {
    width: 28px;
    height: 28px;
    border-width: 2px;
}

/* ===== MEDIA CONTAINER ===== */
.media-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 16px 0;
}

.media-container img,
.media-container video {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.media-container:hover img,
.media-container:hover video {
    transform: scale(1.02);
}

.media-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 8px;
}

.media-container:hover .media-overlay {
    opacity: 1;
}

/* ===== MEDIA GRID ===== */
.media-grid {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    overflow: hidden;
}

.media-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.media-grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.media-grid-3 .col-md-6:first-child {
    grid-row: 1 / 3;
}

.media-grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.media-item {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.media-item img {
    transition: transform 0.3s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.media-item:hover img {
    transform: scale(1.05);
}

.media-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover::after {
    opacity: 1;
}

/* Audio Preview Styles */
.audio-preview {
    transition: all 0.3s ease;
    cursor: pointer;
}

.audio-preview:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: scale(1.05);
}

.audio-preview .bi-music-note-beamed {
    transition: all 0.3s ease;
}

.audio-preview:hover .bi-music-note-beamed {
    transform: scale(1.2);
    color: #9c27b0 !important;
}

/* Dark mode support for audio preview */
.dark-mode .audio-preview {
    background: #4a5568 !important;
    border-color: #718096 !important;
}

.dark-mode .audio-preview:hover {
    background: #718096 !important;
    border-color: #a0aec0 !important;
}

/* ===== POST ACTIONS ===== */
.post-actions {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.post-actions button {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.post-actions button:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    transform: translateY(-1px);
}

.post-actions button i {
    font-size: 1.1rem;
}

/* Action item styling */
.action-item {
    flex: 1;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-item:hover {
    transform: translateY(-1px);
}

/* ===== REACTION SYSTEM ===== */
.reaction-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reaction-badge:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.reaction-badge i {
    font-size: 1.2rem;
}

/* Specific reaction styles */
.reaction-like i { color: #1877F2; }
.reaction-love i { color: #E42645; }
.reaction-haha i { color: #FFDA6A; }
.reaction-wow i { color: #FFDA6A; }
.reaction-sad i { color: #FFDA6A; }
.reaction-angry i { color: #E42645; }

/* ===== COMMENTS SECTION ===== */
.comments-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    transition: all 0.3s ease;
    max-height: 500px;
    overflow-y: auto;
}

.comment-input {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    resize: none;
    min-height: 44px;
    font-size: 0.95rem;
}

.comment-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

.comment-body, .reply-body {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.comment-body:hover, .reply-body:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.comment-actions a, .reply-actions a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.comment-actions a:hover, .reply-actions a:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

/* ===== POLL STYLING ===== */
.poll-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
}

.poll-option {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poll-option:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.poll-option .progress {
    background: #e9ecef;
    border-radius: 8px;
    height: 8px;
    margin-top: 8px;
}

.poll-option .progress-bar {
    background: #0d6efd;
    border-radius: 8px;
    transition: width 0.6s ease;
}

/* ===== SHARED POST ===== */
.shared-post-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    margin: 16px 0;
    transition: all 0.3s ease;
}

.shared-post-container:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* ===== LOADING ANIMATIONS ===== */
.loading_animation {
    animation: pulse 1.5s infinite;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 50%;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
    margin-bottom: 8px;
}

.skeleton-image {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

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

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to { 
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== UTILITY CLASSES ===== */
.cursor-pointer {
    cursor: pointer;
}

.flip-horizontal {
    transform: scaleX(-1);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SCROLLBAR STYLING ===== */
.comments-section::-webkit-scrollbar {
    width: 6px;
}

.comments-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.comments-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.comments-section::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

/* ===== ANIMATION CLASSES ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .newsfeed-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .stories-container {
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .welcome_card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .greet_icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .post_card .card-header {
        padding: 16px 20px 12px;
    }
    
    .post_card .card-body {
        padding: 0 20px 16px;
    }
    
    .post_card .card-footer {
        padding: 12px 20px 16px;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .post-actions button {
        flex: 1 0 calc(50% - 4px);
        padding: 10px 12px;
        font-size: 0.875rem;
    }
    
    .post-actions button span {
        display: none;
    }
    
    .post-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .action-button {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
    
    .action-button span {
        display: none;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-submit-actions {
        justify-content: center;
    }
    
    .media-grid-3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .media-grid-3 .col-md-6:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .comments-section {
        padding: 16px;
    }
    
    .comment-input {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .post_card {
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    .avatar-img {
        width: 40px;
        height: 40px;
    }
    
    .media-container {
        border-radius: 12px;
    }
    
    .post-actions button {
        flex: 1 0 100%;
        margin-bottom: 4px;
    }
    
    .reaction-badge {
        width: 32px;
        height: 32px;
    }
    
    .reaction-badge i {
        font-size: 1rem;
    }
}

/* ===== DARK MODE SUPPORT ===== */
.dark-mode {
    background: #1a202c;
}

.dark-mode .post_card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .post_card .card-header,
.dark-mode .post_card .card-footer {
    border-color: #4a5568;
}

.dark-mode .avatar-img {
    border-color: #4a5568;
}

.dark-mode .media-container {
    background: #4a5568;
}

.dark-mode .comments-section {
    background: #4a5568;
}

.dark-mode .comment-input {
    background: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .comment-body,
.dark-mode .reply-body {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .comment-body:hover,
.dark-mode .reply-body:hover {
    background: #718096;
}

.dark-mode .poll-container {
    background: #4a5568;
}

.dark-mode .poll-option {
    background: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .poll-option:hover {
    background: #718096;
}

.dark-mode .shared-post-container {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .shared-post-container:hover {
    background: #718096;
}

.dark-mode .skeleton-avatar,
.dark-mode .skeleton-text,
.dark-mode .skeleton-image {
    background: linear-gradient(90deg, #4a5568 25%, #718096 50%, #4a5568 75%);
}

.dark-mode .welcome_card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .greet_content h5 {
    color: #f7fafc;
}

.dark-mode .greet_content p {
    color: #a0aec0;
}

.dark-mode .create-story-card {
    background: rgba(45, 55, 72, 0.95);
}

.dark-mode .create-story-text {
    color: #e2e8f0;
}

.dark-mode .post-creation-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .post-input-container {
    background: #4a5568;
}

.dark-mode .post-input-container:focus-within {
    background: #2d3748;
    border-color: #3182ce;
}

.dark-mode .post-textarea::placeholder {
    color: #a0aec0;
}

.dark-mode .action-button {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .action-button:hover {
    background: #718096;
    color: #f7fafc;
}

.dark-mode .privacy-selector {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .privacy-selector:hover {
    background: #718096;
    color: #f7fafc;
}

.dark-mode .loading-overlay {
    background: rgba(45, 55, 72, 0.9);
}

/* ===== ENHANCED INTERACTIONS ===== */
.post_card {
    animation: fadeIn 0.6s ease-out;
}

.comment, .reply {
    animation: slideDown 0.4s ease-out;
}

.action-item {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-btn {
    background: #0d6efd;
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 24px auto;
    display: block;
}

.load-more-btn:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
    color: white;
}

/* ===== MODAL ANIMATIONS ===== */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* ===== TAB STYLING ===== */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.1);
    border-bottom: 3px solid #0d6efd;
}

.nav-tabs .nav-link:hover:not(.active) {
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

/* ===== REACTION MENU ===== */
.reaction-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 8px;
    display: flex;
    gap: 4px;
    z-index: 1000;
    border: 1px solid #e9ecef;
}

.reaction-menu .reaction-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.reaction-menu .reaction-option:hover {
    transform: scale(1.2);
}

/* ===== ENHANCED ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STATES ===== */
.post-actions button:focus,
.comment-input:focus,
.poll-option:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .post-actions,
    .comments-section,
    .reaction-menu {
        display: none !important;
    }
    
    .post_card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* ===== COLORED POST STYLES ===== */
.color-post-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dbe1f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(22, 35, 58, 0.08);
}

.color-option-group {
    margin-bottom: 20px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    min-height: 60px;
}

.color-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option.selected {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.color-option .color-name {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
    color: inherit;
}

.font-size-options {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.font-size-btn {
    padding: 8px 16px;
    border: 1px solid #e1e5e9;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.font-size-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.font-size-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.color-post-preview {
    margin-top: 20px;
}

.preview-content {
    padding: 20px;
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #e1e5e9;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.preview-content.normal {
    font-size: 16px;
}

.preview-content.large {
    font-size: 20px;
}

.preview-content.extra-large {
    font-size: 24px;
}

/* Colored Post Input Styling */
.post-textarea.colored-post {
    border: none;
    background: transparent;
    resize: none;
    min-height: 120px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.post-textarea.colored-post:focus {
    outline: none;
    box-shadow: none;
}

/* Dark mode support for colored posts */
.dark-mode .color-post-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .color-option {
    background: #4a5568;
}

.dark-mode .font-size-btn {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .font-size-btn:hover {
    background: #718096;
}

.dark-mode .font-size-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.dark-mode .preview-content {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

/* ===== GIF SECTION STYLES ===== */
.gif-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gif-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.gif-content {
    max-height: 400px;
    overflow-y: auto;
}

.gif-search .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.gif-search .form-control {
    border: 1px solid #e1e5e9;
    border-right: none;
}

.gif-search .input-group-text {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-right: none;
}

.gif-search .btn {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.gif-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.gif-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gif-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gif-item:hover .gif-item-overlay {
    opacity: 1;
}

.gif-item-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

.selected-gif-preview {
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9fa;
}

.selected-gif-content img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.gif-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.gif-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Dark mode support for GIF section */
.dark-mode .gif-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .gif-header {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .gif-content {
    background: #2d3748;
}

.dark-mode .gif-search .form-control {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .gif-search .input-group-text {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .gif-item {
    background: #4a5568;
}

.dark-mode .selected-gif-preview {
    background: #4a5568;
    border-color: #718096;
}

/* ===== VOICE NOTE SECTION STYLES ===== */
.voice-note-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.voice-note-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.voice-note-content {
    max-height: 400px;
    overflow-y: auto;
}

.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.recording-indicator {
    display: inline-block;
    animation: pulse 2s infinite;
}

.recording-indicator.recording {
    animation: recording-pulse 1s infinite;
}

@keyframes recording-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.timer-display {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #dc3545;
}

.recording-buttons .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.recording-buttons .btn:hover {
    transform: scale(1.1);
}

.recording-buttons .btn i {
    font-size: 1.5rem;
}

/* Recording Visualization */
.recording-visualization {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.audio-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.wave-bar {
    width: 4px;
    background: #dc3545;
    border-radius: 2px;
    animation: wave-animation 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 40px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 60px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 40px; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 20px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 40px; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 60px; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; height: 30px; }

@keyframes wave-animation {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.recorded-audio-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.audio-player-container audio {
    width: 100%;
    border-radius: 8px;
}

.audio-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.recording-tips {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #2196f3;
}

/* Dark mode support for voice note section */
.dark-mode .voice-note-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .voice-note-header {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .voice-note-content {
    background: #2d3748;
}

.dark-mode .recording-visualization {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .wave-bar {
    background: #f56565;
}

.dark-mode .recorded-audio-preview {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .recording-tips {
    background: #2c5282;
    border-left-color: #63b3ed;
}

/* ===== FILE UPLOAD SECTION STYLES ===== */
.file-upload-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.file-upload-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.file-upload-content {
    max-height: 500px;
    overflow-y: auto;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #795548;
    background: #f5f5f5;
}

.upload-zone.dragover {
    border-color: #795548;
    background: #e8f5e8;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #795548;
    margin-bottom: 1rem;
}

.upload-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* File Type Filters */
.filter-buttons .filter-btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.filter-buttons .filter-btn:hover {
    transform: translateY(-1px);
}

.filter-buttons .filter-btn.active {
    background: #795548;
    border-color: #795548;
    color: #fff;
}

/* File List */
.files-container {
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #795548;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 1.2rem;
}

.file-icon.document { background: #d4edda; color: #155724; }
.file-icon.image { background: #d1ecf1; color: #0c5460; }
.file-icon.video { background: #fff3cd; color: #856404; }
.file-icon.audio { background: #e2e3e5; color: #383d41; }
.file-icon.archive { background: #f8d7da; color: #721c24; }
.file-icon.other { background: #f8f9fa; color: #6c757d; }

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-info {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    gap: 12px;
}

.file-size {
    font-weight: 500;
}

.file-type {
    text-transform: uppercase;
    font-size: 0.7rem;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-actions .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.upload-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.file-upload-tips {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #2196f3;
}

/* Progress Bar */
.upload-progress {
    margin-top: 8px;
}

.progress {
    height: 6px;
    border-radius: 3px;
}

.progress-bar {
    background: #795548;
}

/* Dark mode support for file upload section */
.dark-mode .file-upload-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .file-upload-header {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .file-upload-content {
    background: #2d3748;
}

.dark-mode .upload-zone {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .upload-zone:hover {
    background: #718096;
    border-color: #a0aec0;
}

.dark-mode .upload-zone.dragover {
    background: #2d5a2d;
    border-color: #a0aec0;
}

.dark-mode .upload-title {
    color: #e2e8f0;
}

.dark-mode .file-item {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .file-item:hover {
    border-color: #a0aec0;
}

.dark-mode .file-name {
    color: #e2e8f0;
}

.dark-mode .file-info {
    color: #a0aec0;
}

.dark-mode .file-upload-tips {
    background: #2c5282;
    border-left-color: #63b3ed;
}

/* ===== TAG PEOPLE SECTION STYLES ===== */
.tag-people-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dbe1f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(22, 35, 58, 0.08);
}

.tag-people-header {
    background: linear-gradient(90deg, rgba(36, 107, 253, 0.12), rgba(36, 107, 253, 0));
    border-bottom: 1px solid #d0d8ea;
}

.tag-people-content {
    max-height: 400px;
    overflow-y: auto;
}

.search-people .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.search-people .form-control {
    border: 1px solid #e1e5e9;
    border-left: none;
}

.search-people .input-group-text {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-right: none;
}

/* Tagged People List */
.tagged-people-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagged-person {
    display: flex;
    align-items: center;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tagged-person:hover {
    background: #bbdefb;
    transform: translateY(-1px);
}

.tagged-person-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.tagged-person-name {
    font-weight: 500;
    color: #1976d2;
    margin-right: 8px;
}

.remove-tag {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.remove-tag:hover {
    color: #d32f2f;
    transform: scale(1.1);
}

/* People List Items */
.people-list {
    max-height: 300px;
    overflow-y: auto;
}

.person-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.person-item:hover {
    border-color: #2196f3;
    background: #f8f9fa;
    transform: translateY(-1px);
}

.person-item.selected {
    border-color: #2196f3;
    background: #e3f2fd;
}

.person-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.person-details {
    flex: 1;
    min-width: 0;
}

.person-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-info {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    gap: 12px;
}

.person-username {
    font-weight: 500;
}

.person-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

.status-indicator.offline {
    background: #6c757d;
}

.person-actions {
    display: flex;
    gap: 8px;
}

.person-actions .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.tag-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Loading States */
.people-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.people-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Dark mode support for tag people section */
.dark-mode .tag-people-section {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .tag-people-header {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .tag-people-content {
    background: #2d3748;
}

.dark-mode .search-people .form-control {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .search-people .input-group-text {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .tagged-person {
    background: #2c5282;
    border-color: #63b3ed;
}

.dark-mode .tagged-person:hover {
    background: #3182ce;
}

.dark-mode .tagged-person-name {
    color: #90cdf4;
}

.dark-mode .person-item {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .person-item:hover {
    background: #718096;
    border-color: #a0aec0;
}

.dark-mode .person-item.selected {
    background: #2c5282;
    border-color: #63b3ed;
}

.dark-mode .person-name {
    color: #e2e8f0;
}

.dark-mode .person-info {
    color: #a0aec0;
}

/* ===== POST OPTIONS SECTION STYLES ===== */
.post-options-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.post-options-header h6 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 16px;
}

.post-option-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.post-option-item:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 1.2rem;
}

.option-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.option-description {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Switch Toggle Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Schedule DateTime Wrapper */
.schedule-datetime-wrapper {
    border-top: 1px solid #e1e5e9;
    padding-top: 12px;
    margin-top: 12px;
}

.schedule-datetime-wrapper .form-control {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.schedule-datetime-wrapper .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Dark mode support for post options section */
.dark-mode .post-options-section {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .post-options-header h6 {
    color: #e2e8f0;
}

.dark-mode .post-option-item {
    background: #2d3748;
    border-color: #718096;
}

.dark-mode .post-option-item:hover {
    border-color: #a0aec0;
}

.dark-mode .option-icon {
    background: #4a5568;
}

.dark-mode .option-title {
    color: #e2e8f0;
}

.dark-mode .option-description {
    color: #a0aec0;
}

.dark-mode .schedule-datetime-wrapper {
    border-color: #718096;
}

.dark-mode .schedule-datetime-wrapper .form-control {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .schedule-datetime-wrapper .form-control:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 0.2rem rgba(99, 179, 237, 0.25);
}

/* ===== AI FEATURES STYLES ===== */
.action-button.ai-post-action i {
    color: #6f42c1;
}

.action-button.ai-image-action i {
    color: #fd7e14;
}

/* AI Post Section Styles */
.ai-post-section,
.ai-image-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
}

.ai-post-header,
.ai-image-header {
    background: #e9ecef !important;
    border-bottom: 1px solid #dee2e6;
}

.ai-post-content,
.ai-image-content {
    background: #fff;
}

.ai-prompt textarea,
.ai-image-prompt textarea {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
}

.ai-prompt textarea:focus,
.ai-image-prompt textarea:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* AI Style Buttons */
.ai-style-btn,
.ai-image-style-btn,
.ai-size-btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.ai-style-btn.active,
.ai-image-style-btn.active,
.ai-size-btn.active {
    background: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

.ai-style-btn:hover,
.ai-image-style-btn:hover,
.ai-size-btn:hover {
    border-color: #6f42c1;
    color: #6f42c1;
}

/* Generated Content Styles */
.generated-content {
    border: 2px dashed #e1e5e9;
    background: #f8f9fa !important;
    font-style: italic;
    line-height: 1.6;
}

.generated-image-container {
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
}

.generated-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* AI Loading Animation */
.ai-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6f42c1;
    border-radius: 50%;
    animation: ai-spin 1s linear infinite;
}

@keyframes ai-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AI Tips */
.ai-tips,
.ai-image-tips {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    border-radius: 4px;
}

/* Dark mode support for AI features */
.dark-mode .ai-post-section,
.dark-mode .ai-image-section {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .ai-post-header,
.dark-mode .ai-image-header {
    background: #2d3748 !important;
    border-color: #718096;
}

.dark-mode .ai-post-content,
.dark-mode .ai-image-content {
    background: #2d3748;
}

.dark-mode .ai-prompt textarea,
.dark-mode .ai-image-prompt textarea {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .ai-prompt textarea:focus,
.dark-mode .ai-image-prompt textarea:focus {
    border-color: #9f7aea;
    box-shadow: 0 0 0 0.2rem rgba(159, 122, 234, 0.25);
}

.dark-mode .generated-content {
    background: #4a5568 !important;
    border-color: #718096;
    color: #e2e8f0;
}

.dark-mode .generated-image-container {
    background: #4a5568;
    border-color: #718096;
}

.dark-mode .ai-tips,
.dark-mode .ai-image-tips {
    background: #2d3748;
    border-color: #63b3ed;
    color: #e2e8f0;
}

/* ===== ENHANCED POST FORM STYLES ===== */
.reset-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.reset-btn:hover {
    background: #5a6268;
    transform: scale(1.05);
}

.reset-btn:active {
    transform: scale(0.95);
}

/* Character Counter Styles */
#charCounter {
    font-size: 0.8rem;
    margin-top: 4px;
}

#charCounter .text-danger {
    font-weight: 600;
}

#charCounter .text-warning {
    font-weight: 500;
}

/* Enhanced Post Button States */
.post-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.post-btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Validation Error Styles */
.validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.validation-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Dark mode support for enhanced post form */
.dark-mode .reset-btn {
    background: #718096;
}

.dark-mode .reset-btn:hover {
    background: #a0aec0;
}

.dark-mode .validation-error {
    border-color: #f56565 !important;
    box-shadow: 0 0 0 0.2rem rgba(245, 101, 101, 0.25) !important;
}

.dark-mode .validation-success {
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 0.2rem rgba(72, 187, 120, 0.25) !important;
}

/* Right Sidebar Widgets Styles */
.right-sidebar-widgets {
    position: sticky;
    top: 20px;
}

/* Widget Card Styles */
.trending-hashtags-widget,
.people-widget,
.pages-widget,
.groups-widget,
.events-widget {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.trending-hashtags-widget:hover,
.people-widget:hover,
.pages-widget:hover,
.groups-widget:hover,
.events-widget:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

/* Light Color Headers */
.bg-gradient-primary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid #e0f2fe;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #dcfce7;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid #e0f2fe;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fef3c7;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom: 1px solid #fee2e2;
}

/* Refresh Button */
.refresh-btn {
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
    color: #475569;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Trending Hashtags Styles */
.trending-hashtags-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.trending-hashtags-list::-webkit-scrollbar {
    width: 4px;
}

.trending-hashtags-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.trending-hashtags-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.hashtag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hashtag-item:last-child {
    border-bottom: none;
}

.hashtag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.hashtag-item:hover::before {
    left: 100%;
}

.hashtag-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.hashtag-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.hashtag-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: #0ea5e9;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hashtag-item:hover .hashtag-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-color: #0ea5e9;
    color: white;
    transform: scale(1.1);
}

.hashtag-details {
    flex: 1;
}

.hashtag-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1e293b;
    transition: color 0.3s ease;
}

.hashtag-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hashtag-item:hover .hashtag-name {
    color: #0ea5e9;
}

.hashtag-item:hover .hashtag-count {
    color: #0ea5e9;
}

/* People Widget Styles */
.people-list {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.people-list::-webkit-scrollbar {
    width: 4px;
}

.people-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.people-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.person-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.person-item:last-child {
    border-bottom: none;
}

.person-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.05), transparent);
    transition: left 0.5s ease;
}

.person-item:hover::before {
    left: 100%;
}

.person-item:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.person-item:hover .person-avatar {
    border-color: #dcfce7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.person-details {
    flex: 1;
    min-width: 0;
}

.person-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
    transition: color 0.3s ease;
}

.person-info {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.3s ease;
}

.person-item:hover .person-name {
    color: #059669;
}

.person-item:hover .person-info {
    color: #059669;
}

.person-actions {
    display: flex;
    gap: 8px;
}

.person-btn {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.person-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.person-btn:hover::before {
    left: 100%;
}

.person-btn.add {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.person-btn.add:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.person-btn.remove {
    background: #dc3545;
    color: white;
}

.person-btn.remove:hover {
    background: #c82333;
}

/* Pages Widget Styles */
.pages-list {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.pages-list::-webkit-scrollbar {
    width: 4px;
}

.pages-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.pages-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.page-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-item:last-child {
    border-bottom: none;
}

.page-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.page-item:hover::before {
    left: 100%;
}

.page-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.page-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-item:hover .page-avatar {
    border-color: #e0f2fe;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.page-details {
    flex: 1;
    min-width: 0;
}

.page-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
    transition: color 0.3s ease;
}

.page-info {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-item:hover .page-name {
    color: #0ea5e9;
}

.page-item:hover .page-info {
    color: #0ea5e9;
}

.page-actions {
    display: flex;
    gap: 8px;
}

.page-btn {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.page-btn:hover::before {
    left: 100%;
}

.page-btn.like {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.page-btn.like:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.page-btn.unlike {
    background: #6c757d;
    color: white;
}

.page-btn.unlike:hover {
    background: #545b62;
}

/* Groups Widget Styles */
.groups-list {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.groups-list::-webkit-scrollbar {
    width: 4px;
}

.groups-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.groups-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.group-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.group-item:last-child {
    border-bottom: none;
}

.group-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.05), transparent);
    transition: left 0.5s ease;
}

.group-item:hover::before {
    left: 100%;
}

.group-item:hover {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.group-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-item:hover .group-avatar {
    border-color: #fef3c7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.group-details {
    flex: 1;
    min-width: 0;
}

.group-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
    transition: color 0.3s ease;
}

.group-info {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.3s ease;
}

.group-item:hover .group-name {
    color: #d97706;
}

.group-item:hover .group-info {
    color: #d97706;
}

.group-actions {
    display: flex;
    gap: 8px;
}

.group-btn {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.group-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.group-btn:hover::before {
    left: 100%;
}

.group-btn.join {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.group-btn.join:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.group-btn.leave {
    background: #6c757d;
    color: white;
}

.group-btn.leave:hover {
    background: #545b62;
}

/* Events Widget Styles */
.events-list {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.events-list::-webkit-scrollbar {
    width: 4px;
}

.events-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.events-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.05), transparent);
    transition: left 0.5s ease;
}

.event-item:hover::before {
    left: 100%;
}

.event-item:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.event-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-item:hover .event-avatar {
    border-color: #fee2e2;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1e293b;
    transition: color 0.3s ease;
}

.event-info {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.3s ease;
}

.event-item:hover .event-name {
    color: #dc2626;
}

.event-item:hover .event-info {
    color: #dc2626;
}

.event-actions {
    display: flex;
    gap: 8px;
}

.event-btn {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.event-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.event-btn:hover::before {
    left: 100%;
}

.event-btn.interest {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.event-btn.interest:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.event-btn.going {
    background: #28a745;
    color: white;
}

.event-btn.going:hover {
    background: #218838;
}

/* Loading Skeletons */
.hashtag-skeleton,
.person-skeleton,
.page-skeleton,
.group-skeleton,
.event-skeleton {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.hashtag-skeleton:last-child,
.person-skeleton:last-child,
.page-skeleton:last-child,
.group-skeleton:last-child,
.event-skeleton:last-child {
    border-bottom: none;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    border-radius: 50%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    flex: 1;
    margin-left: 12px;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    border-radius: 6px;
    margin-bottom: 6px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h6 {
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Dark Mode Styles */
.dark-mode .trending-hashtags-widget,
.dark-mode .people-widget,
.dark-mode .pages-widget,
.dark-mode .groups-widget,
.dark-mode .events-widget {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-mode .hashtag-item,
.dark-mode .person-item,
.dark-mode .page-item,
.dark-mode .group-item,
.dark-mode .event-item {
    border-bottom-color: #334155;
}

.dark-mode .hashtag-item:hover,
.dark-mode .person-item:hover,
.dark-mode .page-item:hover,
.dark-mode .group-item:hover,
.dark-mode .event-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #475569;
}

.dark-mode .skeleton-avatar,
.dark-mode .skeleton-line {
    background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
}

.dark-mode .empty-state {
    color: #a0aec0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .right-sidebar-widgets {
        position: static;
        margin-top: 20px;
    }
    
    .trending-hashtags-widget,
    .people-widget,
    .pages-widget,
    .groups-widget,
    .events-widget {
        margin-bottom: 16px;
    }
    
    .person-actions,
    .page-actions,
    .group-actions,
    .event-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .person-btn,
    .page-btn,
    .group-btn,
    .event-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .hashtag-item,
    .person-item,
    .page-item,
    .group-item,
    .event-item {
        padding: 10px 12px;
    }
    
    .person-avatar,
    .page-avatar,
    .group-avatar,
    .event-avatar {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .person-name,
    .page-name,
    .group-name,
    .event-name {
        font-size: 13px;
    }
    
    .person-info,
    .page-info,
    .group-info,
    .event-info {
        font-size: 11px;
    }
}

.post_card .dropdown{
    margin-right: -27px;
}

.post_card .dropdown-menu{
    z-index: 99999;
    margin-right: 5px !important;
}

.fixed-bottom{
    z-index: 1200;
}

.post-actions{
    position: relative;
    z-index: 500;
}

.action-item .dropdown-menu{
    transform: translate(-115px, 54.4444px) !important;
}
@media (max-width: 826px) {
    .action-item .dropdown-menu{
        transform: translate(10px, 54.4444px) !important;
    }
}

.reaction-angry     { background-position: 0   0 !important; }
.reaction-flower    { background-position: 0  -48px !important; }
.reaction-laugh     { background-position: 0  -96px !important; }
.reaction-like      { background-position: 0 160px !important; }
.reaction-love      { background-position: 0 120px !important; }
.reaction-sad       { background-position: 0 -200px !important }
.reaction-wow       { background-position: 0 -240px !important; }

.reactions-icons-summary .reaction-icon{
    margin-right: -35px;
}

.reactions-icons-summary{
    position: relative;
}

.reaction-count-summary{
    position: absolute;
    font-size: 12px;
    background: #eff2f6;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    text-align: center;
    right: 1%;
}

.post_card .colored-post div.rounded-3{
    padding: 5rem !important;
    text-align: center;
}
.feeling-header,
.poll-header,
.color-post-header,
.tag-people-header,
.location-header {
    background: linear-gradient(90deg, rgba(36, 107, 253, 0.12), rgba(36, 107, 253, 0));
    border-bottom: 1px solid #d0d8ea;
    padding: 16px 20px !important;
}

.posting-detail .card-hint {
    font-size: 0.85rem;
    color: #6c7a92;
}

.feeling-sub-options,
.poll-content,
.color-post-content,
.tag-people-content,
.location-content {
    background: rgba(255, 255, 255, 0.96);
    padding: 24px;
    border-radius: 0 0 16px 16px;
}

.poll-content .form-label,
.color-post-section .form-label,
.tag-people-section .form-label,
.location-section .form-label {
    font-weight: 600;
    color: #1f2a44;
    font-size: 0.87rem;
}
