/* Light Theme (Default) */
body.light-theme {
    background-color: #f4f4f4;
    color: #333;
}

body.light-theme .container,
body.light-theme .profile-container,
body.light-theme .chat-container,
body.light-theme .post {
    background-color: white;
    color: #333;
    border-color: #e1e8ed;
}

body.light-theme .post-header strong {
    color: #1da1f2;
}

body.light-theme button {
    background-color: #28a745;
    color: white;
}


body.light-theme .logo > h1 {
  color: #fa5700;
  text-shadow: none;
}









/* Dark Theme */
body.dark-theme {
    background-color: #0B0B12;
    color: #e0e0e0;
}

body.dark-theme .container,
body.dark-theme .profile-container,
body.dark-theme .chat-container,
body.dark-theme .post {
    background-color: #0B0B12;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme .post-header strong {
    color: #4dabf7;
}

body.dark-theme button {
    background-color: #4CAF50;
    color: white;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme .pagination-link {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

body.dark-theme .pagination-link.active {
    background-color: #4CAF50;
}

#theme-toggle {
  
    top: 1px;
    right: 10px;
    z-index: 1000;
    padding: 3px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}


/* Dark Theme Message Box Specific Styles */
body.dark-theme #message-box {
    background-color: #2c2c2c;
    border-color: #444;
}

body.dark-theme #message-box p.sent {
    background-color: #3a5a40;
    color: #e0e0e0;
}

body.dark-theme #message-box p.received {
    background-color: #424242;
    color: #e0e0e0;
}

body.dark-theme #contact {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme #message-input {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme #send-btn {
    background-color: #4CAF50;
    color: white;
}


/* Dark Theme Link Styles */
body.dark-theme a {
    color: #90EE90; /* Light green */
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-theme a:hover {
    color: #7CFC00; /* Brighter green on hover */
    text-decoration: underline;
}

/* Ensure specific link types are also styled */
body.dark-theme .forum-link a,
body.dark-theme .saved-posts a {
    color: #90EE90;
}

body.dark-theme .saved-posts a:hover,
body.dark-theme .forum-link a:hover {
    color: #7CFC00;
    text-decoration: underline;
}









/* Dark Theme Reply Specific Styling */
body.dark-theme .reply {
    background-color: #2c2c2c !important; /* Dark gray background */
}

body.dark-theme .reply-content {
    color: #ffffff !important; /* White text for replies */
}

body.dark-theme .reply strong a {
    color: #90EE90 !important; /* Light green for usernames */
}







/* Dark Mode File Upload Button Styling */
body.dark-theme .file-upload-label {
    background-color: #28a745 !important; /* Green background */
    color: white !important; /* White text */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.dark-theme .file-upload-label:hover {
    background-color: #218838 !important; /* Slightly darker green on hover */
}






/* Dark Theme Bio Section Styles */
body.dark-theme .bio-section {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border: 1px solid #444;
}

body.dark-theme .spoiler {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-theme .spoiler-toggle {
    color: #4CAF50;
}

body.dark-theme .small-btn {
    background-color: #4CAF50;
    color: white;
}

body.dark-theme .spoiler-content textarea {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}





/* Add this to your theme.css file */
body.dark-theme .action-button.reply-button {
    background-color: #e3f2fd; /* Keep the same light blue background */
    color: #000000 !important; /* Force black text in dark mode */
}

/* If you want to adjust the hover state as well */
body.dark-theme .action-button.reply-button:hover {
    background-color: #bbdefb; /* Slightly darker blue on hover */
    color: #000000 !important; /* Keep text black on hover */
}




 .bottom-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #04051C;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        padding: 5px 0;
        z-index: 1000;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #333;
        padding: 4px 0;
        width: 33.33%;
        text-align: center;
        font-size: 10px;
    }

    .menu-button.active {
        color: #28a745;
    }

    .menu-button i {
        font-size: 15px;
        margin-bottom: 5px;
    }

    /* Add padding to the body to prevent content from being hidden behind the menu */
    body {
        padding-bottom: 70px;
    }

    /* Dark mode specific styles that will be applied when dark-theme class is present */
    body.dark-theme .bottom-menu {
        background-color: #222;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    body.dark-theme .menu-button {
        color: #eee;
    }

    body.dark-theme .menu-button.active {
        color: #2ecc71;
    }
    
    
    
    
    .savebut{color:black;}
    
    
  body.dark-theme .user-info{color:black;}
    
    
    
    
    
    
    
    
  /* Add these styles to your theme.css file */

/* Dark Theme Members Page Specific Styles */
body.dark-theme .members-title {
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.dark-theme .member-card {
    background-color: #1e1e1e;
    border-color: #444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-theme .member-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Change blue card headers to green in dark mode */
body.dark-theme .member-card-header {
    background-color: #28a745; /* Green header matching theme toggle button */
}

body.dark-theme .member-avatar {
    border-color: #1e1e1e;
}

body.dark-theme .default-avatar {
    background-color: #555;
    color: #fff;
}

body.dark-theme .member-name a {
    color: #e0e0e0;
}

body.dark-theme .member-name a:hover {
    color: #4CAF50; /* Green hover color */
}

body.dark-theme .member-info {
    color: #aaa;
}

body.dark-theme .member-card-footer {
    border-top-color: #444;
}

/* Change blue buttons to green in dark mode */
body.dark-theme .view-profile-btn {
    background-color: #28a745; /* Green button */
    color: white;
}

body.dark-theme .view-profile-btn:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Dark theme pagination styling */
body.dark-theme .pagination a {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme .pagination a:hover {
    background-color: #3c3c3c;
}

body.dark-theme .pagination .current-page {
    background-color: #28a745; /* Green active page */
    border-color: #28a745;
    color: white;
}

body.dark-theme .pagination .ellipsis {
    color: #aaa;
}

/* Bio section styling for dark mode */
body.dark-theme .member-bio {
    border-top-color: #444;
}

body.dark-theme .bio-text {
    color: #bbb;
}

/* Dark theme fallback avatar */
body.dark-theme .fallback-avatar img {
    background-color: #444;
}  
    
    
    
body.dark-theme .found-user{background-color:#333333;} 
body.dark-theme .action-button{color:black;}  







/* Ensure transparency only in dark mode for these specific buttons */
body.dark-theme a[title="live group chat"] {
    background-color: #00FF004D !important; /* Transparent green in dark mode */
}

body.dark-theme a[title="Your settings"] {
    background-color: #8080804D !important; /* Transparent grey in dark mode */
}














/* Force correct chat bubble styling and block inherited junk */
.chat-message {
    display: flex !important;
    align-items: flex-start !important;
    margin: 10px 0 !important;
    max-width: 100% !important;
    background: none !important; /* Kill any background here */
}

.chat-message.sent {
    flex-direction: row-reverse !important;
}

/* Avatar fix */
.chat-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 10px !important;
    border: 2px solid #555 !important;
    background-color: transparent !important;
}

/* Generic bubble reset */
.chat-bubble {
    padding: 10px 14px !important;
    border-radius: 15px !important;
    max-width: 80% !important;
    word-wrap: break-word !important;
    font-size: 14px !important;
    background: none !important; /* remove inherited backgrounds */
    box-shadow: none !important;
}

/* Light theme bubbles */
body.light-theme .chat-message.sent .chat-bubble {
    background-color: #d4f7d4 !important; /* green sent */
    color: #222 !important;
}
body.light-theme .chat-message.received .chat-bubble {
    background-color: #f1f1f1 !important; /* gray received */
    color: #222 !important;
}

/* Dark theme bubbles */
body.dark-theme .chat-message.sent .chat-bubble {
    background-color: #2e7d32 !important; /* dark green */
    color: #fff !important;
}
body.dark-theme .chat-message.received .chat-bubble {
    background-color: #424242 !important; /* darker gray */
    color: #e0e0e0 !important;
}

/* Meta & text color */
.chat-meta {
    font-size: 12px !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
}

.chat-text {
    font-size: 14px !important;
}

/* Light Theme: Fix inputs, textareas, selects */
body.light-theme input,
body.light-theme textarea,
body.light-theme select {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
}

/* Light Theme: Fix user info */
body.light-theme .user-info {
    color: black !important;
}

/* Light Theme: Message input fixes */
body.light-theme #message-box {
    background-color: white !important;
    border-color: #ccc !important;
}
body.light-theme #message-input {
    background-color: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
}

/* Light Theme: File upload label */
body.light-theme .file-upload-label {
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
}
body.light-theme .file-upload-label:hover {
    background-color: #218838 !important;
}

/* Final Light Theme Fixes */

/* Specific element fixes */
body.light-theme .group-view > div > div:nth-child(4),
body.light-theme .group-view > div > div:nth-child(3) > button,
body.light-theme form > div > label:nth-child(1),
body.light-theme form > div > label:nth-child(3),
body.light-theme h3:nth-child(4),
body.light-theme h3:nth-child(7) {
    background-color: white !important;
    color: black !important;
    border-color: #ccc !important;
}

/* Reset all h3 titles to black in light mode */
body.light-theme h3 {
    color: black !important;
}

/* Light Theme: Title and Description in group.php */
body.light-theme .group-view > div > div.group-name,
body.light-theme .group-view > div > p:nth-child(2) {
    color: black !important;
}



/* Image gallery container */
.light-mode .slider-container,
.light-mode .forum-gallery {
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
}

.dark-mode .slider-container,
.dark-mode .forum-gallery {
    background-color: #1a1a1a;
    border-top: 1px solid #444;
}

/* Individual slide or image card */
.light-mode .slide,
.light-mode .forum-image-card {
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #333;
}

.dark-mode .slide,
.dark-mode .forum-image-card {
    background-color: #2a2a2a;
    border: 1px solid #555;
    color: #eee;
}

/* Shared image styles */
.slide img,
.forum-image-card img {
    max-height: 200px;
    border-radius: 8px;
    transition: transform 0.3s;
}

/* Hover zoom */
.slide img:hover,
.forum-image-card img:hover {
    transform: scale(1.1);
}










/* Gallery container - ensure horizontal scrolling */
.image-gallery-container {
    max-width: 100vw; /* Full viewport width */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Disable vertical scrolling */
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--gallery-bg);
    display: block;
    white-space: nowrap; /* Prevent items from wrapping */
}

/* Scroll container for the gallery items */
.image-gallery-scroll {
    display: inline-flex; /* Arrange items in a row */
    gap: 20px; /* Space between items */
}

/* Each individual card */
.image-card {
    flex: 0 0 auto; /* Prevent wrapping */
    text-align: center;
    color: var(--text-color);
    background-color: var(--button-bg);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    min-width: 280px; /* Set a minimum width for each card */
    width: 280px; /* Set a fixed width for consistency */
}

/* Avatar styling */
.image-card img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
}

/* Media (image or video) styling */
.image-card img.user-img {
    width: 250px; /* Set a fixed width for images */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.image-card video.user-img {
    width: 100%; /* Ensure the video takes up the full width of the card */
    height: auto; /* Maintain aspect ratio */
    max-height: 250px; /* Set a maximum height for the video to avoid overflow */
    border-radius: 10px; /* Same border radius as images */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: same shadow as images */
    object-fit: contain; /* Makes sure the video fits within the card without being cropped or distorted */
    display: block; /* Make video behave like a block-level element */
}



/* Title styling */
.image-card p {
    margin: 10px 0 0;
    font-size: 14px;
    background-color: var(--button-bg);
    border-radius: 10px;
    padding: 5px;
    color: var(--text-color);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .image-gallery-container {
        padding: 10px; /* Reduce padding for mobile */
    }

    .image-card {
        min-width: 200px; /* Smaller card width for mobile */
        width: 200px; /* Ensure consistent card width */
    }

    .image-card img.user-img {
        width: 180px; /* Smaller images for mobile */
    }

    .image-gallery-scroll {
        gap: 10px; /* Smaller gap between items on mobile */
    }
}




.gallery-filters {
    text-align: center;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery-filters input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 200px;
    font-size: 14px;
}

.gallery-filters button {
    padding: 6px 12px;
    border: 1px solid #999;
    background-color: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gallery-filters button:hover {
    background-color: #e0e0e0;
}

/* Dark theme */
body.dark-theme .gallery-filters input[type="text"] {
    background-color: #2c2c2c;
    border-color: #555;
    color: #eee;
}

body.dark-theme .gallery-filters button {
    background-color: #444;
    color: #eee;
    border-color: #666;
}

body.dark-theme .gallery-filters button:hover {
    background-color: #555;
}





.question-alert {
  position: relative;
  overflow: hidden;
  height: 30px;
  background-color: var(--bg-light);
  border: 1px solid #ffcc00;
  border-radius: 4px;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

body.dark-theme .question-alert {
  background-color: var(--bg-dark);
  border-color: #665500;
}

.marquee {
  display: flex;
  flex-wrap: nowrap;
  animation: scroll-marquee 30s linear infinite;
  will-change: transform;
}




.marquee:hover {
  animation-play-state: paused;
}

.question-item {
  flex: 0 0 auto;
  margin-right: 50px;
}

.question-item a {
  color: var(--text-color);
  text-decoration: none;
}

.question-item a:hover {
  text-decoration: underline;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}



















/* Light Theme (default) */
:root {
    --text-color: #000;
    --link-color: #000;
    --button-bg: #f4f4f4; /* Light card background */
    --gallery-bg: #fff;
    --border-color: #ccc;
}

/* Dark Theme override */
body.dark-theme {
    --text-color: #fff;
    --link-color: #fff;
    --button-bg: rgba(36, 35, 35); /* ✅ LIGHTER gray card in dark mode */
    --gallery-bg: #111;
    --border-color: #444;
}

