/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
header {
    background-color: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    font-size: 24px;
    margin: 0;
    cursor: pointer;
}

.profile {
    display: flex;
    align-items: center;
}

.profile span {
    margin-right: 10px;
}

.profile-icon {
    background: white;
    color: #003366;
    padding: 8px;
    border-radius: 50%;
}

/* Layout */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #e6e6e6;
    padding: 15px;
    border-radius: 10px;
}

.sidebar h2 {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 5px 0;
}

/* Feed */
.feed {
    flex: 1;
    margin-left: 20px;
}

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

.filter {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

/* Posts */
.post {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.post h3 {
    margin: 0;
    color: #003366;
}

.tags {
    color: #555;
    font-size: 0.9em;
}

.actions {
    margin-top: 10px;
}

.actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
}

.actions button:hover {
    text-decoration: underline;
}

/* Create Post */
/* Create Post */
.create-post {
    background: white;
    padding: 20px;
    margin: 50px auto; /* Centers the section itself */
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centers the text inside */
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures all elements are centered */
}

/* Text boxes */
.create-post input, 
.create-post textarea {
    width: 95%; /* Makes the input boxes centered and not too wide */
    max-width: 500px; /* Prevents them from stretching too much */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}


/* Floating Post Button */
.post-btn-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.post-btn {
    background: #003366;
    color: white;
    text-decoration: none;
    padding: 20px 35px;
    border-radius: 50px;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.post-btn:hover {
    background: #002244;
    transform: scale(1.05);
}


.search-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background-color: #f9f9f9;
}

.search-bar input {
    padding: 5px;
    border: none;
    outline: none;
    width: 200px;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Post Modal Overlay */
.post-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark transparent overlay */
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    align-items: center;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Input Fields */
.modal-content input,
.modal-content textarea {
    width: 90%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Post Button */
.modal-content .post-btn {
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content .post-btn:hover {
    background-color: #0056b3;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Comments Section */
.comments {
    text-align: left;
    width: 90%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Align text to the left inside the post details modal */
#post-details-modal .modal-content {
    text-align: left;
}

/* Keep the title and tags aligned to the left */
#post-details-modal .modal-content h2,
#post-details-modal .modal-content p.tags,
#post-details-modal .modal-content p {
    text-align: left;
    width: 100%;
}

/* Ensure the comments box and text area stay left-aligned */
#post-details-modal .comments {
    width: 90%;
    text-align: left;
}

/* Keep comment input aligned */
#post-details-modal textarea {
    width: 90%;
    text-align: left;
}
