
/* Style the dropdown items */
.dropdown-item {
  color: black; /* White text color */
  text-decoration: none; /* Remove underlines */
  display: block; /* Make links fill the entire nav-item */
  padding: 5px 10px; /* Add padding to the links */
}

/* override the bootstrap background  */
.dropdown-menu {
  background-color: none;
}

.dropdown-item:hover {
  background-color: #a2d9ce; /* Darker background on hover */
  color:white;
}

.activities-table {
    width: 100%;
    /* Take up full width of container */
    border-collapse: collapse;
    /* Collapse borders for compact look */
    table-layout: fixed;
    /* For equal column widths */
}

.activities-table th,
.activities-table td {
    border: 1px solid #ddd;
    /* Add borders to cells */
    padding: 8px;
    /* Adjust padding as needed */
    text-align: left;
    /* Align text to the left */
    overflow: hidden;
    /* Hide overflowing text */
    text-overflow: ellipsis;
    /* Add ellipsis (...) for overflow */
    white-space: nowrap;
    /* Prevent text wrapping */
}

.activities-table th {
    /* Style header cells */
    background-color: #f2f2f2;
    /* Light gray background */
    font-weight: bold;
}

.account-icon {
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
}

#nickname {
    margin: 0px;
    /* adjust spacing */
    padding: 0;
    font: 0.6em sans-serif;
}

.card-row {
    display: -ms-flexbox;
    /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap;
    /* IE10 */
    flex-wrap: wrap;
    align-items: center;
}


/* Style for the edit button */
.edit-btn {
    background-color: #0d6efd;
    /* Blue */
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    border-radius: 5px;
    /* Add rounded corners */
    cursor: pointer;
}

.delete-btn {
    background-color: red;
    /* Blue */
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    border-radius: 5px;
    /* Add rounded corners */
    cursor: pointer;
}

.modal-dialog {
    max-width: 600px;
    /* Adjust as needed */
}

/* Footer Styles */
footer {
    background-color: #34495e;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}


.footer-solid-dark {
    background-color: #333; /* Dark gray - good for light text */
    color: white; /* Ensure text contrast */
    padding: 20px 0; /* Add some padding */
}

.footer-solid-light {
    background-color: #f8f9fa; /* Light gray - good for dark text */
    color: #333; /* Ensure text contrast */
    padding: 20px 0;
}

.footer-solid-brand {
    background-color: #007bff; /* Your brand's primary color */
    color: white;
    padding: 20px 0;
}

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    /* Needed for overlaying content */
    overflow: hidden;
    /* Prevents image overflow during transition */
}

#hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    /* Add transition for smooth fade */
    z-index: -1;
    /* Ensure the image is behind the text content */
}



#hero .container {
    position: relative;
    /* Ensure container content is above the image */
    z-index: 1;
    /* Higher than the background image */
    min-height: 400px;

}

/* Program Cards */
.program-card {
    border: none;
    transition: transform 0.3s ease;
    /* Add smooth transition */
}

.program-card:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    /* Add shadow on hover */
}

.program-card img {
    height: 200px;
    /* Consistent height for images */
    object-fit: cover;
    /* Maintain aspect ratio and cover the area */
    margin-bottom: 1rem;
    /* Space below the image */
    border-radius: 10px;
    /* Rounded image corners */
}



.program-list {
    display: flex;
    /* Arrange items in a row */
    flex-wrap: wrap;
    /* Allow wrapping to new lines */
    justify-content: center;
    /* Center items horizontally */
    gap: 20px;
    /* Space between items */
}

.program-item {
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
    /* Adjust width as needed */
    text-align: left;
    cursor: pointer;
}

.program-item img {
    float: left;
    margin-right: 15px;
    width: 75px;
    height: 75px;
}

.program-item b {
    display: block;
    /* Makes bold text take up full width */
}



.loader {
    display: none;
    /* Hidden by default */
    position: absolute;
    /* or fixed, depending on your layout */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Style further as needed */
    z-index: 1000;
    /* Make sure it's above other content */
}

.loader.active {
    display: block;
    /* Show when active */
}

/* Basic styling for the loading spinner, customize as you like */
.loading {
    border: 4px solid #f3f3f3;
    /* Light grey */
    border-top: 4px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.message-status {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.message-status.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message-status.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.message-status.warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}




/*
What are common breakpoints?
Mobile devices – 320px — 480px.
iPads, Tablets – 481px — 768px.
Small screens, laptops – 769px — 1024px.
Desktops, large screens – 1025px — 1200px.
Extra large screens, TV – 1201px, and more.
*/
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */

@media screen and (max-width: 320px) {}


@media screen and (max-width: 480px) {}


@media screen and (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 100%;
    }

    .assistant-icon img {
        width: 3rem;
        /* Smaller size for chatbot icon */
        height: 3rem;
    }

    .chatbot-header button img {
        height: 40px;
        /* Smaller size for user type icons */
        width: auto;
    }

    .chatbot-header h3 {
        /* Target the h3 element */
        font-size: 1.2rem;
        /* Smaller font size for smaller screens */
    }

    /* You might also want to adjust the select element */
    .chatbot-header #language-select {
        font-size: 0.8rem;
    }

    .popup-content {
        width: 90%;
        margin: 5% auto;
    }

    .table-responsive {
        overflow-x: auto;
        /* Enable horizontal scrolling on smaller screens */
    }

    /* Optional: Hide some columns on smaller screens if needed */
    .hide-on-small {
        display: none;
    }
        
    .program-list {
        flex-direction: column;
        /* Stack items vertically */
        align-items: center;
        /* Center items vertically */
    }

    .program-item {
        width: 90%;
        /* Adjust width for smaller screens */
    }

    #hero h1 {
        font-size: 2em;
    }

    #hero p {
        font-size: 1em;
    }

}


@media screen and (min-width: 769px) {
    .chatbot-container {
        height: 100%;
        width: 100%;
    }

    .assistant-icon img {
        width: 4rem;
        /* Larger size for chatbot icon */
        height: 4rem;
    }

    .chatbot-header button img {
        height: 70px;
        /* Larger size for user type icons */
        width: auto;
    }

    .chatbot-header h3 {
        font-size: 1.5rem;
        /* Larger font size for larger screens */
    }

    .chatbot-header #language-select {
        font-size: 1rem;
    }

    #hero-image-container {
        background-size: 100%;
        /* Use 'contain' to maintain aspect ratio */
        background-repeat: no-repeat;
        /* Prevent image repeating */
        /* Optional: if you prefer a centered and cropped image on larger screens instead of letterboxing, use 'cover' here and remove background-repeat */
    }
}

.image {
    width: 100%;
    height: auto;
}



/* ... (chatbot styles) */
.assistant-icon {
    position: fixed;
    bottom: 0.5rem;
    right: 1rem;
    background-color: rgb(45, 159, 224);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 0.7rem;
    z-index: 2000;
}



.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    /* added line */
    border: 0;
}



.close-button {
    /* Adjust styles as needed (font size, color, etc.) */
    font-size: 2rem;
    color: #b00707;
    background-color: transparent;
    border: none;
    cursor: pointer;

    /* Positioning for top right corner */
    position: absolute;
    right: 0.1rem;
    top: 0;
}

.chatbot-container {
    position: fixed;
    bottom: 3rem;
    /* Consistent spacing from top */
    right: 0.2rem;
    /* Adjust width based on font size */
    max-width: 80%;
    max-height: 90%;
    /* Prevent chatbot from overflowing viewport */
    /* Maintain aspect ratio (approx. 400px/15px font size) */
    border: 1px solid #ccc;
    border-radius: 5px;
    /* Consistent rounded corners */
    display: flex;
    flex-direction: column;
    font-family: sans-serif;
    background-color: #007bff;
    z-index: 2001;
    display: none;
}

.chatbot-header {
    background-color: #007bff;
    color: #fff;
    border-radius: 0.3125rem 0.3125rem 0 0;
    font-size: 1rem;

    align-items: center;
    justify-content: center;
    justify-items: center;
}

.chatbot-header button.selected {
    background-color: lightblue;
    /* Example style */
    border: 2px solid white;
    /* Example style */
    opacity: 100%;
}

.chatbot-header button {
    border-radius: 0.5rem;
    opacity: 50%;
    background-color: gray;
    /* Example style */
    height: auto;
}

.chatbot-header button img {
    /*height: 70px;*/
    width: auto;
}

.chatbot-header h3 {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.chatbot-input {
    display: flex;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}


.chatbot-messages {
    flex-grow: 1;
    padding: 0.625rem;
    overflow-y: auto;
    height: auto;
    /* Base font size for the chat messages */
    max-height: 60vh;
    /* Adjust based on base font size */
}

.chatbot-messages a {
    /* Style links */
    color: blue;
    text-decoration: underline;
}

.chatbot-messages strong {
    /* Style bold text */
    font-weight: bold;
}

.chatbot-messages em {
    /* Style italic text */
    font-style: italic;
}

.chatbot-messages ul,
.chatbot-messages ol {
    /* Style lists */
    padding-left: 0.25rem;
    /* Consistent indentation for lists */
}

.user-message {
    background-color: #eee;
    align-self: flex-end;
    color: #000;
    /* Consistent padding for messages */
    border-radius: 0.3125rem;
    font-size: 0.7rem;
    padding: 0.2rem 0 0 1rem;
}

.bot-message {
    background-color: #007bff;
    color: #fff;
    margin-bottom: 0.2rem;
    /* Consistent spacing between messages */
    border-radius: 5px;
    font-size: 0.8rem;
}

.typing-indicator {
    font-style: italic;
    color: #999;
    margin-bottom: 0.25rem;
    animation: typing 1s infinite;
}

@keyframes typing {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

#user-input {
    width: 75%;
    flex-grow: 1;
    padding: 0.1rem;
    border: 0.0625rem solid #ccc;
    border-radius: 0.3125rem 0 0 0.3125rem;
    white-space: normal;
    z-index: 1000;
    font-size: larger;
}

#send-button {
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 0 0.3125rem 0.3125rem 0;
    cursor: pointer;
}

.chatbot {
    padding: 0;
    margin: 0;
}

.chatbot.active {
    display: flex;
}