        /* Base styles */
body {
    background-color: #17212b;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

        .navbar {
            background: linear-gradient(to right, #232f3d, #1a2735);
            padding: 1rem 2rem;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .nav-links a i {
            margin-right: 0.3rem;
        }

        .navbar a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            margin: 0 1.2rem;
            padding: 0.5rem 0;
            position: relative;
            transition: all 0.3s ease;
        }

        .navbar a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: #64b5f6;
            transition: width 0.3s ease;
        }

        .navbar a:hover::after {
            width: 100%;
        }

        /* Add mobile styles for navbar */
        @media (max-width: 480px) {
            .navbar {
                padding: 0.75rem 1rem;
            }

            .nav-links {
                gap: 0.5rem;
            }

            .navbar a {
                font-size: 0.9rem;
                margin: 0 0.8rem;
                padding: 0.4rem 0;
            }
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .channel-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 1rem;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .channel-header {
            text-align: center;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 1.5rem;
            width: 100%;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .channel-title {
            font-size: 2rem;
            font-weight: 700;
            color: #64b5f6;
            margin: 0;
            letter-spacing: -0.5px;
        }

        .channel-description {
            color: #8b96a2;
            font-size: 1rem;
            margin-top: 0.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .post {
            background: #1e2836;
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
            width: 100%;
            max-width: 800px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            min-height: 200px;
            margin-left: auto;
            margin-right: auto;
        }

        .post:last-child {
            margin-bottom: 0;
        }

        .post:hover {
            transform: translateY(-2px);
        }

        .post-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            flex-shrink: 0;
        }

        .post-meta {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            flex: 1;
            min-width: 0;
        }

        .timestamp {
            color: #8b96a2;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .timestamp i {
            color: #64b5f6;
        }

        .message {
            color: #ffffff;
            font-size: 1rem;
            line-height: 1.6;
            margin: 0.75rem 0;
            word-wrap: break-word;
            text-align: left;
            padding: 0;
            width: 100%;
            flex: 1;
        }

        .message strong {
            color: inherit;
            font-weight: 700;
        }

        .message em {
            color: inherit;
            font-style: italic;
        }

        /* Add formatted link styles to match home.php */
        .formatted-link {
            color: #b3e5fc; /* Light baby blue color */
            text-decoration: none;
            padding: 2px 4px;
            border-radius: 4px;
            background: rgba(179, 229, 252, 0.1);
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .formatted-link:hover {
            background: rgba(179, 229, 252, 0.2);
            text-decoration: underline;
            color: #e3f2fd; /* Lighter shade on hover */
        }

        .formatted-link strong {
            color: inherit;
        }

        .invalid-url {
            color: #e57373;
            text-decoration: line-through;
            padding: 2px 4px;
            border-radius: 4px;
            background: rgba(229, 115, 115, 0.1);
        }

        .media-container {
            margin-top: 1rem;
            border-radius: 8px;
            overflow: hidden;
            width: 100%;
            flex-shrink: 0;
        }

        .media-container img,
        .media-container video {
            width: 100%;
            height: auto;
            max-height: 500px;
            object-fit: contain;
            border-radius: 8px;
            display: block;
        }

        .no-posts {
            text-align: center;
            color: #8b96a2;
            padding: 3rem;
            font-size: 1.1rem;
        }

        /* Analytics Styles */
        .analytics-btn {
            background: transparent;
            color: #64b5f6;
            border: 1px solid #64b5f6;
            padding: 0.4rem 0.8rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            margin-left: 1rem;
        }

        .analytics-btn:hover {
            background: #64b5f6;
            color: #17212b;
        }

        .analytics-modal {
            max-width: 800px !important;
        }

        .analytics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .analytics-card {
            background: rgba(255, 255, 255, 0.05);
            padding: 1.5rem;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: transform 0.3s ease;
        }

        .analytics-card:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.08);
        }

        .analytics-icon {
            background: rgba(100, 181, 246, 0.2);
            color: #64b5f6;
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .analytics-info h4 {
            color: #8b96a2;
            margin: 0;
            font-size: 0.9rem;
        }

        .analytics-number {
            color: #fff;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .analytics-chart {
            background: rgba(255, 255, 255, 0.05);
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 2rem;
        }

        .analytics-details {
            background: rgba(255, 255, 255, 0.05);
            padding: 1.5rem;
            border-radius: 10px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }

        .stat-item {
            padding: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        .stat-label {
            color: #8b96a2;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            color: #fff;
            font-size: 1.1rem;
            font-weight: 500;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 600px;
            border-radius: 12px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .modal-header h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #64b5f6;
            margin: 0;
        }

        .modal-close {
            color: #aaaaaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .modal-close:hover,
        .modal-close:focus {
            color: #000;
            text-decoration: none;
            cursor: pointer;
        }

        .analytics-body {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .views {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #8b96a2;
            font-size: 0.9rem;
        }

        .views i {
            color: #64b5f6;
        }

        .reactions-section {
            position: relative; /* Added to contain the picker */
            margin-top: 1rem;
            width: 100%;
            flex-shrink: 0;
        }

        .reaction-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
            position: relative; /* Added for proper positioning context */
            z-index: 1; /* Ensure buttons stay above picker */
        }

        .reaction-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 0.4rem 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.9rem;
            color: #fff;
        }

        .reaction-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        .reaction-btn.reacted {
            background: rgba(100, 181, 246, 0.2);
            border-color: #64b5f6;
        }

        .reaction-emoji {
            font-size: 1.1rem;
            line-height: 1;
        }

        .reaction-count {
            color: #8b96a2;
            font-size: 0.85rem;
            min-width: 20px;
            text-align: center;
        }

        .add-reaction-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #8b96a2;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 0;
            font-size: 1.1rem;
        }

        .add-reaction-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        .reaction-picker {
            display: none;
            position: relative; /* Changed from absolute to relative */
            background: #2c3e50;
            border-radius: 12px;
            padding: 0.75rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            grid-template-columns: repeat(5, 1fr);
            gap: 0.5rem;
            min-width: 200px;
            margin-top: 0.75rem; /* Added margin for spacing */
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .reactions-section {
            margin-top: 1rem;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .reaction-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }

        /* Add these new styles for the reaction manager modal */
        #reactionManagerModal .modal-content {
            background: #1e2836;
            color: #1e2836;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #reactionManagerModal .modal-header h3 {
            color: #1e2836;
        }

        #reactionManagerModal .modal-close {
            color: #1e2836;
        }

        #reactionManagerModal .reaction-controls {
            background: rgba(255, 255, 255, 0.05);
            padding: 1.5rem;
            border-radius: 8px;
            margin-top: 1rem;
        }

        #reactionManagerModal .reaction-controls button {
            background: #64b5f6;
            color: #17212b;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-left: 0.5rem;
        }

        #reactionManagerModal .reaction-controls button:hover {
            background: #90caf9;
        }

        .pin-indicator {
            color: #64b5f6;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .edit-indicator {
            color: #8b96a2;
            font-size: 0.8rem;
            margin-left: 0.5rem;
        }

        .post-meta {
            display: flex;
            flex-direction: column;
        }

        .post[data-pinned="true"] {
            border: 1px solid rgba(100, 181, 246, 0.3);
            background: linear-gradient(145deg, rgba(30, 40, 54, 0.95), rgba(35, 47, 61, 0.95));
        }
        
        

@keyframes backgroundShift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-30px) translateX(20px) scale(1.05);
    }
}

.reaction-picker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    /* Remove white background from emojis */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reaction-picker-btn span,
.reaction-emoji {
    /* Force transparent background */
    background: transparent !important;
    mix-blend-mode: normal;
    -webkit-background-clip: text;
    filter: none;
    /* Handle emoji rendering */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    isolation: isolate;
}

/* Remove any browser-specific emoji styling */
.reaction-picker-btn::-webkit-emoji,
.reaction-emoji::-webkit-emoji {
    background: transparent !important;
    -webkit-background-clip: text;
}