/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container Styling */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1000px;
    padding: 20px 0;
}

/* Banner Styling */
.banner-container {
    text-align: center;
    margin-bottom: 20px;
}

.banner-image {
    width: 100%;
    height: 150px;
    object-fit: contain; /* Ensures the banner covers the width while keeping the aspect ratio */
}

/* Centering and styling the login form */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #1da1f2;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #1da1f2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #0c87cc;
}

/* Error message styling */
.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
}

/* Profile and To-Do List Layout */
.profile-todo-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-section, .todo-container {
    width: 48%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Twitter-style menu bar */
.menu-bar {
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-bar a {
    color: #1da1f2;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu-bar a:hover {
    background-color: #e8f5fe;
}

/* Hashtag Styling */
.hashtag {
    cursor: pointer;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.hashtag:hover {
    background-color: #1da1f2;
    color: white;
}

.hashtag.selected {
    background-color: #1da1f2;
    color: white;
}

/* Centering the topic filter container */
.topic-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.tag-container {
    display: flex;
    gap: 10px; /* Adjust space between tags */
    flex-wrap: nowrap;
    color: #1f2baccb;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-section img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
}

.profile-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-section button {
    margin-top: 15px;
}

/* Twitter-style Post Layout */
.post {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-header h3 {
    font-size: 1.1rem;
    font-weight: bold;
}

.post-header p {
    color: #606770;
    font-size: 0.9rem;
}

.post-body {
    margin-top: 10px;
    font-size: 1rem;
}

.post-body img {
    max-width: 100%;  /* Ensure images do not exceed container size */
    height: auto;     /* Maintain aspect ratio */
    object-fit: cover; /* Ensure images fit neatly within container */
    border-radius: 8px; /* Optional: Adds a slight rounded corner */
}

.wysiwyg-editor img {
    max-width: 100%;
    height: auto;
}


/* Post actions layout */
.post-actions {
    display: block;
    justify-content: space-around;
    margin-top: 15px;
}


.post-actions a:hover {
    text-decoration: underline;
}

/* Form Inputs */
input[type="file"], input[type="text"], button, input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

input[type="submit"], button {
    background-color: #1da1f2;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover, button:hover {
    background-color: #0c87cc;
}

/* To-Do List Styling */
.todo-container h2 {
    margin-bottom: 15px;
}

.todo-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.todo-list li {
    padding: 10px;
    background-color: #f5f6f7;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.todo-list li button {
    background-color: #e74c3c;
    border: none;
    padding: 5px;
    color: white;
    cursor: pointer;
    border-radius: 3px;
}

.todo-list li button:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-todo-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-section, .todo-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Additional Styles for All Pages */

/* Extra styling for default profile image */
img[alt="Default Profile Image"] {
    width: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Highlight selected hashtags */
.hashtag.selected {
    background-color: #1da1f2;
    color: white;
    border-radius: 20px;
}

/* Adjust the spacing between label and tag buttons */
.hashtag {
    margin-top: 10px;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

/* Hover effect for hashtags */
.hashtag:hover {
    background-color: #1da1f2;
    color: white;
}

/* Post container padding for better spacing */
.container {
    padding: 20px 15px;
}

/* Keep menu bar fixed on top for easier navigation */
.menu-bar {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Make the post actions icons larger */
.post-actions span {
    font-size: 1.1rem;
    cursor: pointer;
}

/* Spacing for post actions */
.post-actions {
    display: block;
    justify-content: space-between;
    padding: 10px;
}

/* Ensure images in post body have a width of 400px and maintain aspect ratio */
.post-body img {
    width: 400px;
    height: auto;
}


