/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212; /* Softer than pure black */
    color: #E0E0E0; /* Light gray text for readability */
    line-height: 1.6;
    padding: 20px;
}

/* Flex Container */
.clearfix-container {
    display: flex;
}

/* Sidebar Common Styles */
.sidebar {
    background-color: #333; /* Sidebar background */
    padding: 20px;
    color: white; /* Text color in the sidebar */
}

/* Left Sidebar Styles */
.left-sidebar {
    width: 20%; /* Adjust width as per design */
    margin-top: 40px; /* Adjust this value to move it lower */
    padding: 15px;
}
/* Ensuring the sidebar scrolls with the page but also sticks */
.left-sidebar {
    position: sticky;
    top: 30px; /* Adjust this to control when the sidebar should stick while scrolling */
    height: calc(100vh - 40px); /* Optional: Adjust height if the sidebar content is shorter than the viewport */
}

/* Main Content Styles */
.container {
    flex-grow: 1; /* Main content to fill the remaining space */
    max-width: 60%; /* Optional: sets a max-width for the main content */
    padding: 20px;
    margin-top: 30px; /* Adjust this value to move it lower */
}

/* Right Sidebar Styles */
.right-sidebar {
    width: 20%; /* Adjust based on your design */
    position: sticky;
    top: 20px;
    margin-top: 30px; /* Adjust this value to move it lower */
    
}
/* Ensuring the sidebar scrolls with the page but also sticks */
.right-sidebar {
    position: sticky;
    top: 30px; /* Adjust this to control when the sidebar should stick while scrolling */
    height: calc(100vh - 40px); /* Optional: Adjust height if the sidebar content is shorter than the viewport */
}



/* 🔹 Navbar Styling */
/* Navbar Flexbox Layout */
.navbar {
    display: flex;
    justify-content: space-between; /* Ensures left and right content are separated */
    align-items: center;
    background: #121212 ;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    height: 50px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Left section (logo) */
.navbar-left {
    display: flex;
    align-items: center;
}

/* Logo Styling */
.navbar-left img.logo {
    height: 100px;  /* Increased size */
    max-width: 180px; /* Prevents excessive stretching */
    object-fit: contain;
    margin-top: 10px; /*move logo down*/
}

/* Right section (Home + Profile Menu) */
.navbar-right {
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes content to the right */
    margin-right: 25px; 
    gap: 20px;
}
/* 🏷️ Remove body padding/margin to prevent gaps */
body {
    margin: 0;
    padding: 0;
}

/* Home Link */
.nav-link {
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link:hover {
    text-decoration: underline;
}

.navbar-brand img.logo {
    height: 80px;
    object-fit: contain;

}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin-right: 0px;
}

/* Profile Menu Container */
.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Profile Button (Initials) */
.profile-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Profile Button Hover */
.profile-button:hover {
    background-color: #0056b3;
}

/* ▼ Arrow Indicator (Always Visible) */
.profile-menu {
    position: relative;
    display: inline-block;
}

/* Rotate arrow when hovering */
.profile-menu:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    right: 0;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Show Dropdown on Hover */
.profile-menu:hover .dropdown-menu {
    display: block;
    opacity: 1;
}

/* Dropdown Links */
.dropdown-menu a {
    color: white;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu:hover {
    display: block;
    opacity: 1;
}
/* Arrow */
.arrow {
    font-size: 12px;
}
/* Logout Button */
.dropdown-menu .logout {
    color: red;
    font-weight: bold;
}




/* 🚪 Logout Button */
.logout-btn {
    background: #dc3545;
    padding: 8px 14px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    height: 62px; 
}

.logout-btn:hover {
    background: #bb2d3b;
}

/* 📱 Mobile Menu (Hidden by Default) */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}



/* Form Styles */
form {
   
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff5f5;
    color: #000000;
}

form button, form input[type="submit"] {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover, form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Utility Classes */
.error {
    color: #ff6666;
}

.success {
    color: #66cc66;
}

/* Post Creation Box */
.post-creation-box {
    margin: 20px 0;
}

/* Posts Feed */
.posts-feed {
    margin: 20px 0;
}

.posts-feed .post {
    background-color: #1E1E1E ;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    
}

.posts-feed h3 {
    margin-bottom: 10px;
}

.posts-feed p {
    margin-bottom: 10px;
}

.posts-feed img {
    width: 100%; /* Make images responsive */
    max-width: 400px; /* Set a max width to prevent very large images */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensures images fill the space without stretching */
    border-radius: 5px; /* Adds rounded corners (optional) */
}

/* Responsive Design */
@media (max-width: 768px) {
    .clearfix-container {
        flex-direction: column;
    }

    .left-sidebar,
    .right-sidebar,
    .container {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
    }
}
.refresh-button {
    background-color: #004AAD; /* Green background, change as desired */
    color: white; /* White text */
    padding: 10px 15px; /* Padding inside the button */
    font-size: 16px; /* Text size */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Change mouse cursor to pointer */
    margin-bottom: 20px; /* Margin at the bottom */
    display: block; /* Make the button a block element */
}

.refresh-button:hover {
    background-color: #004AAD; /* Slightly darker green on hover */
}
.rounded-image {
    border-radius: 10px 15px 20px 25px;
}
.login-container,
.signup-container {
    width: 100%;
    max-width: 380px;
    margin: 100px auto;
    padding: 30px;
    background: #000000; /* Light background */
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid #000000;
}

/* 📌 Reduce Gap Between Inputs & Buttons */
.login-container input,
.signup-container input,
.login-container button,
.signup-container button {
    width: 100%;
    padding: 14px;
    margin: 5px 0; /* Reduced space between elements */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 📌 Make Buttons Flat, Full-Width, and Bold */
.login-container button,
.signup-container button {
    background: #e0e0e0; /* Light gray like in the image */
    color: black;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 📌 Button Hover Effect */
.login-container button:hover,
.signup-container button:hover {
    background: #d6d6d6; /* Slightly darker gray on hover */
}

/* 📌 Forgot Password & Sign Up Links */
.login-container a,
.signup-container a {
    color: #007BFF;
    font-weight: 500;
    text-decoration: none;
}

/* 📌 Reduce Space Between Links */
.login-container .forgot-password,
.signup-container .forgot-password {
    margin-top: -10px; /* Bring closer to inputs */
}

/* 📱 Mobile Responsiveness */
@media (max-width: 500px) {
    .login-container,
    .signup-container {
        max-width: 90%;
        padding: 25px;
    }
}
/* 🎨 Create Post Button */
.create-post-container {
    text-align: center;
    margin: 30px 0;
    
}

.create-post-container button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #E0E0E0, #E0E0E0);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.create-post-container button:hover {
    background: linear-gradient(135deg, #C0C0C0, #C0C0C0);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
/* 🌟 Centered Post Creation Form */
.post-creation-page {
    width: 100%;
    max-width: 750px;
    margin: 80px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease-in-out;
}

/* 🏷️ Page Title */
.post-creation-page h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ✏️ Input Fields (Flat Modern Design) */
.post-creation-page input[type="text"],
.post-creation-page textarea {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.3s ease-in-out;
}

/* ✨ Input Focus Effect */
.post-creation-page input[type="text"]:focus,
.post-creation-page textarea:focus {
    border-bottom: 2px solid #007BFF;
    background-color: #fff;
    outline: none;
    box-shadow: 0px 3px 6px rgba(0, 123, 255, 0.2);
}
/* Make the post creation container wider */
.post-creation-page {
    max-width: 600px; /* Increase width */
}

/* Increase the height of the body field */
.post-creation-page textarea {
    min-height: 300px; /* Increase height */
    resize: vertical; /* Allow resizing */
}



/* 🚀 Submit Button */
.post-creation-page button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 🚀 Button Hover Effect */
.post-creation-page button:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* ⬅ Back Button */
.back-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 16px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

/* ⬅ Back Button Hover */
.back-button:hover {
    background: #bb2d3b;
}

/* 📱 Mobile Responsive */
@media (max-width: 600px) {
    .post-creation-page {
        width: 90%;
        padding: 20px;
    }

    .post-creation-page button {
        padding: 12px;
    }
}
/* 🎨 Post Creation Box */
.post-creation-page {
    width: 100%;
    max-width: 500px;
    margin: 80px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.delete-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.delete-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* 🔔 New Post Notification Button (Now in Right Sidebar) */
.right-sidebar .new-post-btn {
    display: none;
    width: 90%;
    max-width: 250px;
    margin: 35px auto;
    background-color: #007BFF;
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* 🔹 Hover Effect */
.right-sidebar .new-post-btn:hover {
    background-color: #0056b3;
}

/* 📌 Active Click Effect */
.right-sidebar .new-post-btn:active {
    transform: scale(0.98);
}
/* 🌟 Centered Authentication Box */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f3f2ef; /* Light gray background */
}

/* 🌟 Authentication Box */
.auth-box {
    background: #ffffff; /* White box */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 380px; /* Slightly wider */
    
}

/* 📌 Heading styles */
.auth-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333; /* Dark text */
}

/* 📌 Small text below heading */
.auth-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* 📌 Input Fields */
.input-group {
    margin-bottom: 15px;
    text-align: left;
    
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff; /* Fix: Ensure white input fields */
    color: #333; /* Dark text */
    transition: all 0.3s ease;
}

/* 📌 Input Focus Effect */
.input-group input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}
/* 🔗 Forgot Password Link */
.forgot-password {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
    margin-bottom: 15px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.message-container {
    margin-bottom: 10px;
    text-align: left;
    font-size: 14px;
    transition: opacity 0.5s ease-in-out;
}

.error-message {
    color: red;
    opacity: 1;
}

.success-message {
    color: green;
    opacity: 1;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.auth-container button:hover {
    background-color: #0056b3;
}

.back-link {
    display: block;
    margin-top: 10px;
}

.post-preview {
    font-size: 16px;
    color: #f5f5f5;
    opacity: 1; /* Ensure full visibility */
}

.see-more {
    color: blue;
    cursor: pointer;
    font-weight: bold;
}

.see-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.see-more-link:hover {
    text-decoration: underline;
}
.signup {
    color: #888; /* Light gray */
    font-size: 14px;
    text-decoration: none;
}

.signup:hover {
    color: #666; /* Slightly darker on hover */
}
.login {
    color: #888; /* Light gray */
    font-size: 14px;
    text-decoration: none;
}

.login:hover {
    color: #666; /* Slightly darker on hover */
}
.nav-icon {
    width: 24px; /* Adjust icon size */
    height: 24px;
    filter: invert(1); /* Makes it white on dark backgrounds */
    margin-top: 10px;
}
/* 🌟 Larger Bio Box for Settings Page */
textarea#bio {
    width: 100%;
    min-height: 250px; /* Increase size */
    max-height: 500px; /* Prevent too much stretching */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f8f8; /* Light background for contrast */
    color: #333;
    font-size: 16px;
    resize: vertical; /* Allow resizing */
}
/* 🌟 Post Header Styling */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}




/* 🔗 Username */
.post-username {
    color: #ccc; /* Darker text */
    font-weight: bold;
    font-size: 16px;
    text-decoration: none; /* No underline */
    margin-right: 6px; /* Small space between username and separator */
}

/* 🔗 Username Hover (Optional hover effect for interactivity) */
.post-username:hover {
    color: #004AAD; /* Same as avatar for consistent feel */
}

/* 🧑‍💻 Job Title (inline) */
.post-job-title {
    color: #777; /* Lighter gray for job title */
    font-size: 14px;
    font-style: italic;
}
/* 📦 Container for username and job title to align inline */
.post-user-info {
    display: flex;
    align-items: center;
    gap: 4px; /* Optional: adjusts spacing between username and title */
}
/* 🧹 Post Card Styling */
.post {
    padding: 20px;
    border: 0px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* Footer inside the right sidebar */
.sidebar-footer {
    margin-top: 20px;
    padding: 10px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.sidebar-footer a {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sidebar-footer a:hover {
    color: #0073b1; /* LinkedIn blue color or your brand color */
}

.sidebar-footer .copyright {
    width: 100%;
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    text-align: center;
}
/* Styling for the Personalized by AI text */
.personalized-ai {
    font-size: 12px;
    color: #666; /* Subtle gray color */
    font-weight: 500;
    text-align: right;
    padding-right: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
}



/* To position it properly in the right-sidebar */
.right-sidebar .personalized-ai {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Light line separator */
}

/* Optional hover effect */
.personalized-ai:hover {
    color: #333;
    cursor: default;
}
/* Profile Page Styling */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    color: #e0e0e0;
    text-align: left;
    margin-top: 60px;
}

.profile-container h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.profile-container .job-title {
    font-style: italic;
    color: #ccc;
    margin-bottom: 10px;
}

.profile-container .visit-count {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.user-bio {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.user-bio-box {
    background-color: rgb(19, 20, 30);
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.user-bio-box h3 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 10px;
}


.user-bio .bio-link {
    color: #4dabf7;
    text-decoration: none;
    word-break: break-all;
}

.user-bio .bio-link:hover {
    text-decoration: underline;
}


.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}


.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.job-title {
    font-size: 16px;
    color: #A5A5B5;
    font-style: italic;
    margin-top: -5px;
}

.visit-count {
    font-size: 14px;
    color: #A5A5B5;
}

/* Bio Section */
.bio-section {
    background-color: #181826;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.bio-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

/* Clickable Links */
.bio-section a {
    color: #00AEEF;
    text-decoration: none;
    font-weight: bold;
}

.bio-section a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .profile-container {
        padding: 15px;
    }
    
    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .user-name {
        font-size: 20px;
    }

    .job-title {
        font-size: 14px;
    }
}
.tools {
    display: flex;
    flex-direction: column; /* Keeps Tarrifs Data above AI Tools */
    align-items: flex-start; /* Aligns text to the left */
    text-align: left;
    gap: 5px; /* Adds spacing between links */
    padding-left: 20px; /* Adds spacing from the left edge */
    margin-top:35px;
}

.tools a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #1E90FF; /* Modern purple tone */
    transition: color 0.3s ease-in-out;
}

.tools a:hover {
    color: #c4b5fd; /* Lighter shade on hover */
    text-decoration: underline;
}

.guidelines-box {
    background-color: #292b3b;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.guidelines-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #ffb347;
}

.guidelines-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    color: #e2e2e2;
}

.guidelines-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.guidelines-box {
    border-left: 4px solid #ffb347;
}
.terms-notice {
    margin-top: 15px;
    font-size: 0.75rem; /* Smaller font size */
    color: #444;
    text-align: center;
    line-height: 1.4;
}

.terms-notice a {
    color: #0073e6;
    text-decoration: underline;
}

.terms-notice a:hover {
    color: #005bb5;
}

/* 🔷 Main Form Container */
.create-post-form {
  max-width: 700px;
  width: 90%;
  margin: 50px auto;
  padding: 30px;
  background-color: #1e1f2a;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

/* 🔷 Form Title */
.create-post-form h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 26px;
  color: #f5f5f5;
}

/* 🔷 Inputs and Textareas */
.create-post-form input[type="text"],
.create-post-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #2c2d3a;
  color: #f0f0f0;
  box-sizing: border-box;
  outline: none;
}

.create-post-form textarea {
  min-height: 200px;
  resize: vertical;
}

/* 🔷 File Upload */
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.image-label {
  background-color: #2c2d3a;
  color: #ccc;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  border: 1px solid #444;
  transition: background-color 0.3s;
}

.image-label:hover {
  background-color: #3c3d4a;
}

#file-name {
  font-size: 14px;
  color: #aaa;
}

/* 🔷 Submit Button */
.create-post-form button[type="submit"] {
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}
/* 🔷 Main Form Container */
.create-post-form {
  max-width: 700px;
  width: 90%;
  margin: 50px auto;
  padding: 30px;
  background-color: #1e1f2a;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

/* 🔷 Form Title */
.create-post-form h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 26px;
  color: #f5f5f5;
}

/* 🔷 Inputs and Textareas */
.create-post-form input[type="text"],
.create-post-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #2c2d3a;
  color: #f0f0f0;
  box-sizing: border-box;
  outline: none;
}

.create-post-form textarea {
  min-height: 200px;
  resize: vertical;
}

/* 🔷 File Upload */
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.image-label {
  background-color: #2c2d3a;
  color: #ccc;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  border: 1px solid #444;
  transition: background-color 0.3s;
}

.image-label:hover {
  background-color: #3c3d4a;
}

#file-name {
  font-size: 14px;
  color: #aaa;
}

/* 🔷 Submit Button */
.create-post-form button[type="submit"] {
  width: 100%;
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.create-post-form button[type="submit"]:hover {
  background-color: #0056b3;
}

/* 🔷 Back Button */
.back-button {
  display: inline-block;
  margin-top: 20px;
  text-align: center;
  padding: 10px 20px;
  background-color: #dc3545;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #a12636;
}

/* 🔷 Success & Error */
.success, .error {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.success {
  background-color: #28a745;
  color: #fff;
}

.error {
  background-color: #dc3545;
  color: #fff;
}
.sponsored-tag {
    background-color: #e91e63;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Wrapper */
.notification-bell-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 15px;
}

/* Bell Icon */
#notification-bell {
  font-size: 20px;
  color: white; /* White bell */
  cursor: pointer;
  position: relative;
  margin-top:10px;
}

/* Red Dot */
#notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  display: none;
  z-index: 5;
  margin-top: 10px;
}

/* Dropdown */
#notification-dropdown {
  position: absolute;
  right: 0;
  top: 30px;
  background-color: #222;
  border: 1px solid #444;
  border-radius: 4px;
  width: 250px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 10px;
  display: none;
}
.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}
.notification-list li {
  color: #fff;
  padding: 6px 8px;
  border-bottom: 1px solid #333;
  font-size: 14px;
}


#notification-bell:hover {
  transform: scale(1.05);
  transition: 0.2s ease-in-out;
}
/* ✅ Fix global image scaling that might affect avatar display */
img {
    max-width: 100%;
    height: auto;
}

/* ✅ Post Header Avatars (Posts Feed & Anywhere) */
.avatar-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-block !important;
    vertical-align: middle;
}

/* ✅ Navbar Avatar */
.profile-avatar-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

/* ✅ Fallback Initials Avatar */
.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: #004aad;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* ✅ Profile Picture Preview (Settings Page) */
.profile-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 8px;
}
/* ✅ Keep spacing consistent between avatar and username */
.avatar-circle,
.avatar-image {
    margin-right: 15px;
}
.file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.image-label {
    background-color: #2c2d3a;
    color: #ccc;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    border: 1px solid #444;
    transition: background-color 0.3s;
}

.image-label:hover {
    background-color: #3c3d4a;
}

#file-name {
    font-size: 14px;
    color: #aaa;
}
.post-link {
    color: #4dabf7;
    text-decoration: none;
    word-break: break-word;
}

.post-link:hover {
    text-decoration: underline;
}
.posts-feed .post-image {
    width: 100%;
    max-width: 500px;     /* Optional: controls max width */
    aspect-ratio: 16 / 9; /* Keeps consistent shape */
    object-fit: cover;    /* Crops excess without distortion */
    object-position: center center; /* Keeps the crop centered */
    border-radius: 5px;
    display: block;
    margin-top: 10px;
}
.image-guideline {
    font-size: 13px;
    color: #ccc;
    margin-top: 8px;
    margin-left: 4px;
    font-style: italic;
}
#notification-dropdown {
    background: #222;
    padding: 10px;
    width: 250px;
    border-radius: 8px;
}

#notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#notification-list li {
    margin-bottom: 10px;
    color: white;
    font-size: 14px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
}

.dropdown-menu a i {
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

.promoted-posts-box {
    background-color: #1e1e2f;
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promoted-posts-box h3 {
    margin-bottom: 10px;
    color: #ffd700;
}

.promoted-post-list {
    list-style-type: disc;
    margin-left: 20px;
    color: #ddd;
}
#notification-dropdown {
  overflow: visible;
}

#notification-list {
  max-height: 300px;
  overflow-y: auto;
}

#network-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ff4d4f;
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    z-index: 9999;
    display: none;
    transition: all 0.3s ease;
}
#network-status.online {
    background-color: #00c853;
}




