/* styles.css */

body {
    font-family: Barlow, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f6f6f4;
    color: #3b3a5e;
}

header {
    background-color: #efede5;
    color: #eca327;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

#ia-logo {
    max-height: 50px;
    width: auto;
    transform: scale(1);
}

#visit-button {
    background-color: #eca327;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px; /* Rounded corners */
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: Barlow, sans-serif;
    font-size: 1rem;
}

#visit-button:hover {
    background-color: #d4a017;
}

#visit-button img {
    margin-left: 0.5rem;
    width: 20px;
    height: 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

#map {
    height: 800px;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dashboard-container {
    display: flex;
    flex-direction: column;
}

#issues-container {
    flex: 1;
    max-height: calc(100vh - 100px); /* Adjust the height dynamically based on viewport height */
    overflow-y: auto;
    padding: 1rem 0;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

#issues-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.issue-card {
    border: 1px solid #3b3a5e;
    padding: 1rem;
    border-radius: 5px;
    background-color: #f6f6f4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

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

.issue-card h3 {
    margin-top: 0;
    color: #3b3a5e;
    border-bottom: 1px solid #eca327;
    padding-bottom: 0.5rem;
}

.issue-card p {
    margin: 0.5rem 0;
}

.issue-card strong {
    color: #3b3a5e;
}

.issue-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; /* Ensure the modal covers the full viewport */
    overflow: auto; /* Enable scrolling if modal content exceeds viewport */
    background-color: rgba(59, 58, 94, 0.4); /* Semi-transparent background */
}

.modal-content {
    background-color: #f6f6f4;
    margin: 2% auto; /* Adjusted margin to make more room for content */
    padding: 20px;
    border: 1px solid #3b3a5e;
    width: 90%;
    max-width: 800px;
    max-height: none; /* Remove max-height restriction */
    overflow-y: auto; /* Enable vertical scrolling within the modal content */
    border-radius: 5px;
    position: relative;
    box-sizing: border-box;
}

/* Adjust close button positioning */
.close-modal {
    color: #3b3a5e;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.highlighted {
    background-color: #d8edd7;
    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: 14px;
    text-align: left;
    margin-top: 50px; /* Added margin-top for spacing above title */
}

.carousel-content {
    display: flex;
    flex-direction: column;
    align-items: left;
}

/* Ensure that carousel slides are displayed side by side (image and text) */
.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: wrap; /* Ensure wrapping for smaller screens */
}

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

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

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

.carousel-content-wrapper {
    display: flex;
    width: 100%;
    gap: 15px;
}

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

    .response-image-container {
        max-width: 100%;
    }
}

.carousel-slide.active {
    display: flex; /* Show the active slide */
}

/* Carousel Navigation Buttons */

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3b3a5e;
    color: #f6f6f4;
    border: none;
    padding: 8px;
    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;
}

/* Response Image Styles */

.response-image-container {
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
}

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

.response-content {
    width: 100%;
    text-align: center;
}

/* Responsive Adjustments */

@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    #map {
        flex: 1;
        height: auto;
        margin-right: 1rem;
        margin-bottom: 0;
    }

    #dashboard-container {
        flex: 1;
    }
}

@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;
    }
}

button, select, input[type="text"] {
    background-color: #3b3a5e;
    color: #f6f6f4;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, select:hover {
    background-color: #eca327;
}

input[type="text"] {
    background-color: #f6f6f4;
    color: #3b3a5e;
    border: 1px solid #3b3a5e;
}

input[type="text"]::placeholder {
    color: #3b3a5e;
    opacity: 0.7;
}

nav a {
    color: #3b3a5e;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 1rem; /* Add spacing between navigation links */
}

nav a:hover {
    color: #eca327;
}

#reset-filters {
    background-color: #eca327;
    border: none; /* Optional: Remove border */
    color: white; /* Optional: Set text color */
    padding: 10px 20px; /* Optional: Add padding */
    cursor: pointer; /* Optional: Change cursor on hover */
}

/* Optional: Add hover effect */
#reset-filters:hover {
    background-color: #d19b24;
}

.logo-subtitle-container {
    display: flex;
    align-items: center;
}

.subtitle {
    color: #5ab78d;
    font-size: 1.5em; /* Adjust the size as needed */
    margin-left: 10px; /* Adjust the spacing as needed */
}

/* static/css/kanban.css */
.respondent {
    color: #eca327; 
}

