/* Kanban Board Styles */
#kanban-board {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    height: calc(100vh - 100px); /* Adjust the height to fit the viewport */
    overflow: hidden; /* Prevent overflow issues for the entire board */
}

.column {
    flex: 1;
    background-color: #f4f4f4;
    border-radius: 5px;
    padding: 10px;
    margin: 0 10px;
    max-width: 300px;
    display: flex;
    flex-direction: column; /* Enable column layout */
    overflow: hidden; /* Prevent overflow issues for the column */
}

.column h2 {
    text-align: center;
    color: #333;
    border-bottom: 2px solid #eca327;
    padding-bottom: 10px;
}

.issue-list {
    flex: 1; /* Take the remaining space in the column */
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    overflow-y: auto; /* Enable vertical scrolling within the column */
    max-height: calc(100vh - 150px); /* Adjust height to fit viewport */
}

/* Issue Card Styling */
.issue-card {
    display: flex;
    flex-direction: column;
    max-height: 1000px; /* Adjust as needed */
    /* Remove overflow: hidden; */ /* Commented out this line */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: move;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.issue-card h3 {
    margin-top: 0;
    color: #3498db;
}

.issue-card p {
    margin: 5px 0;
    font-size: 14px;
}

/* Scrollable Content within the Issue Card */
.issue-card .card-content {
    flex-grow: 1;
    overflow-y: auto; /* Enable vertical scrolling */
    /* Remove max-height: 100%; */ /* This line is unnecessary */
    padding-right: 5px; /* Add space for the scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.issue-card .card-content::-webkit-scrollbar {
    width: 8px;
}

.issue-card .card-content::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 5px;
}

.issue-card .card-content::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 5px;
}

.issue-card .card-content::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 800px;
    max-height: 1800px; /* Ensure it doesn't exceed viewport height */
    overflow-y: auto;  /* Enable scrolling if content is too long */
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content */
}

.close-button {
    color: #aaa;
    position: absolute; /* Absolute positioning for the close button */
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #eca327;
    text-decoration: none;
    cursor: pointer;
}

.highlighted {
    background-color: #eca327;
    box-shadow: 0 0 10px rgba(59, 58, 94, 0.2);
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 20px; /* Added margin-top for spacing above carousel */
    background-color: #f6f6f4;
    border: 2px solid #3b3a5e;
    border-radius: 5px;
    padding: 5px;
}

.carousel-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #5ab78d;
    margin-bottom: 10px;
    text-align: center;
    margin-top: 30px; /* Added margin-top for spacing above title */
}

.carousel-content {
    display: flex;
    justify-content: center;
    align-items: left;
}

/* Carousel Slide Style for Image and Text Side by Side */
.carousel-slide {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 20px;  /* Space between image and text */
    padding: 10px;
    box-sizing: border-box;
    background-color: #f6f6f4;
    border-radius: 5px;
    flex-wrap: nowrap; /* Keep image and text on the same line */
    width: 100%;
}

.response-image-container {
    flex: 1;
    max-width: 300px; /* Control image width */
}

.response-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.response-content {
    flex: 2; /* Allocate more space for the text */
    width: 100%;
    text-align: left;
}

@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column; /* Stack image and text vertically on smaller screens */
    }

    .response-image-container {
        max-width: 100%; /* Adjust image width for small screens */
    }
}

/* Carousel Navigation Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3b3a5e;
    color: #f6f6f4;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
}

.carousel-prev:hover,
.carousel-next:hover {
    opacity: 1;
    background-color: #eca327;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Responsive Adjustments for Kanban Board */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        width: 30px; /* Adjusted width on mobile */
        height: 30px; /* Adjusted height on mobile */
        font-size: 16px;
    }

    .response-image-container {
        max-width: 200px;
    }
}

#filter-sort-container {
    margin-top: 20px; /* Adjust the value as needed */
}

