.post-subcategory {
    text-transform: capitalize;
}

.filter-sec {
    display: flex;
    gap: 15px
}

.clear-filters-tr {
    align-content: center;
}

.clear-filters-tr h3 {
    margin: 0;
    text-align: center;
    font-size: 15px;
    line-height: 10px;
}

.clear-filters-tr svg {
    width: 15px;
    height: 10px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-image,
.tooltip-image-chart {
    display: none;
    position: absolute;
    z-index: 1000;
    border: 2px solid #333;
    background: white;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

/* Position the tooltip above the element */
.tooltip-image.top {
    /* left: auto;
    right: 0;
    transform: translateX(20%); */
    margin-top: 25px;
}

.tooltip-image-chart.top {
    width: 40%;
    max-width: 50%;
    margin-top: 25px;
}


.custom-posts-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.posts-column {
    width: 50%;
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.posts-list {
    margin-bottom: 20px;
}

.newhighlight {
    background-color: #FFF673 !important;
}

.post-item-emp {
    background-color: #B1E3FF !important;
}

.post-item {
    position: relative;
    background-color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.post-title {
    margin: 0 0 10px 0;
    color: #333;
}

.post-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.post-image img {
    max-width: 15%;
    height: auto;
    margin-top: 10px;
    border-radius: 3px;
}

.post-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* .post-actions button {
      margin-right: 10px;
      padding: 5px 10px;
      background: #45a049;
      border: 1px solid #ddd;
      border-radius: 10px;
      cursor: pointer;
  } */

.edit-post,
.edit-reply {
    margin-right: 10px;
    padding: 5px 10px;
    background: unset;
    color: #45a049;
    border: 0px;
    cursor: pointer;
}

.delete-post,
.delete-reply {
    margin-right: 10px;
    padding: 5px 10px;
    background: unset;
    color: #c60000;
    border: 0px;
    cursor: pointer;
}

/* .post-actions button:hover {
      background: #e0e0e0;
  } */

.post-replies {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reply-item {
    padding: 10px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 3px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.reply-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
    min-height: 60px;
}

.reply-form button {
    padding: 5px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.reply-form button:hover {
    background: #45a049;
}

.new-post-form {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-post {
    text-size-adjust: 100%;
    outline: 0;
    box-sizing: border-box;
    color: #fff;
    display: inline-block;
    fill: #fff;
    text-align: center;
    transition: all ease .5s;
    background-size: 100% auto;
    box-shadow: none;
    text-decoration: none;
    min-width: 150px;
    background-color: transparent;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 40px;
    background-image: linear-gradient(130.95deg, #3468B0 25.32%, #759FD4 133.5%);
    border-radius: 10px 10px 10px 10px;
    padding: 0px 20px 0px 20px;
}

/* .submit-post:hover {
      background: #0b7dda;
  } */

.loading-posts {
    text-align: center;
    padding: 10px;
    color: #666;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-modal {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #f00;
}

/* Message styles */
.custom-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 5px;
    color: white !important;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.custom-message.success {
    background-color: #4CAF50;
}

.custom-message.error {
    background-color: #f44336;
}

.custom-message.info {
    background-color: #2196F3;
}

@media only screen and (max-width: 1600px) {
    .tooltip-image.top {
        left: auto;
        right: 0;
        transform: translateX(20%);
        margin-top: 25px;
    }

}

@media only screen and (max-width: 1024px) {
    .custom-posts-container {
        flex-direction: column;
    }
}



@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}