@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&family=Genos:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --primary: #134F5C;
    --secondary: rgb(255, 255, 255);
    --tertiary: #A2C4C9;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Commissioner', sans-serif;
    background-color: var(--tertiary);
    color: var(--primary);
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: auto;
}

p {
    font-family: 'Commissioner', sans-serif;
    margin: 0px;
}

/* Style for the header text */
/* Style for logo area */

div.logo {
    width: 165px;
    float: left;
    text-decoration: none;
    padding: 0;
    color: var(--secondary);
}

div.logo b {    
    font-family: 'Genos', sans-serif;
    font-size: 36px;
}

div.logo p {
    font-size: 1rem;
    margin: 0px;
    padding: 0px;
}   

/* text styles */

h1 {
    font-family: 'Genos', cursive;
    font-size: 2.4rem;
    color: var(--primary);
    margin: 0px;
    clear: both;
}

h2 {    
    font-size: 1.5rem;    
}

h3 {    
    font-size: 1.2rem;    
}

h2, h3 {
    font-family: 'Genos', cursive;
    color: var(--primary);
    margin: 0px;
    clear: both;
}

a {
    color: var(--primary); /* Use your primary color variable */
    font-weight: bold; /* Optional: Make the text bold */
 }

.form-text {
    font-family: 'Commissioner', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    margin: 0px;
    padding: 0px;
}

/* Style for the header */
header {
    color: var(--secondary);
    background-color: var(--primary);
    position: relative; /* Allows positioning of child elements */
    height: 100px;
    margin-top: 0px;
    padding: 1rem;
    box-sizing: border-box;
    border-bottom: var(--secondary) solid 1px;
    box-shadow: 0 0 5px #6c8080;
}

/* Style for the navigation bar */


nav {
    float: right;
    display: inline-flex;
    margin-right: 0rem;
    padding-bottom: 5px;
    margin-top: 25px;
}

/* Style for the nav links */
nav a {
    text-decoration: none; /* Remove underline */
    color: var(--secondary); /* Use your primary color variable */
    font-weight: bold; /* Optional: Make the text bold */
    margin: 0 0.5rem; /* Add spacing between links */
}

/* Add hover effect for links */
nav a:hover {
    color: var(--tertiary); /* Change color on hover */
}

.salutation {
    display: inline;
    padding: 0px 8px 20px 0px;
    font-size: 0.9rem;
    float: right;
    clear: right;
}

/* Style for general alignemnt */

div#main-align {
    height: calc(100vh - 160px); /* Full height minus header and footer */
}

#main-align, div#fai_header {
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    position: relative;
}

/* Style for the textarea form */

textarea {
    max-width: calc(100% - 2 * 16px);
}

.textarea-with-button {
    position: relative;
    display: inline-block;
    width: 100%;
    background-color: var(--secondary);
    color: var(--primary);
    font-family: 'Commissioner', sans-serif;
    border-radius: 5px;
}

button.arrow-submit {
    margin: 2px 0;
}

.textarea-with-button textarea {
    width: 100%;
    padding-right: 40px; /* space for the button */
    box-sizing: border-box;
    border: none;         /* Removes border */
    outline: none;        /* Removes focus outline (optional, for a cleaner look) */
    resize: none;         /* Disables the resize handle */
    background: var(--secondary);  /* Optional: subtle background for visibility */
    font-size: 1rem;      /* Optional: adjust font size */
    border-radius: 8px;   /* Optional: rounded corners */
}

.arrow-submit {
    position: absolute;
    right: 4px;
    bottom: 0px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 600;
}

.response-container {
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 5px;
    padding: 16px;
    margin: 0px;
    box-sizing: border-box; 
    float: left;
    max-height: 280px;      /* Set your preferred max height */
    overflow-y: auto;
}

/* Style for the buttons */
button {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 6px 10px 6px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 10px 0px;
    cursor: pointer;
    border-radius: 5px;
}

label {
    min-width: 140px;
    display: inline-block;
}

/* Style for the footer */

footer {
    background-color: var(--primary);
    text-align: center;
    padding: 1rem 0;
    height: 60px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 0px;
    box-sizing: border-box;
    border-top: var(--secondary) solid 1px;
    box-shadow: 0 0 5px #6c8080;
}

/* Style for the footer text and links */
footer p {
    color: var(--secondary);
    margin: 0;
    padding: 0;
}

/* Container styles */
.container {
    color: var(--primary);
    text-align: left;
    padding: 2px 10px 12px 10px;
    margin: 16px;
    border-radius: 10px;
    box-sizing: border-box; 
    float: left;
}

#avatar-container {
    position: absolute; /* Normal flow of the document */
    right: 0;
    width: 300px; /* Fixed width */
    display: block; /* Always visible */
    text-align: center;
}

#avatar-container img {
    width: 180px;
    object-fit: contain;
    display: block;
    margin-left: auto; 
    margin-right: auto;
}

#main-container {
    width: calc(100% - 300px - 2* 16px);
    margin: 16px 0px;
}

/* Chatbox Styles */

#chatbot-container {
    position: absolute;
    width: 300px;
    max-height: 240px;
    bottom: 0px;
    right: 0;
    background-color: var(--primary);    
}

#chatbot-container h2 {
    color: var(--secondary);
}

.chat-box-login > a > button, .chat-box-auth > button {
    background-color: none;
}

.chat-box-login > a > button:hover, .chat-box-auth > button:hover {
    background-color: none;    
}

#chat-content {
    max-height: 90px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: var(--tertiary);
    font-size: 0.9rem;
}

.chat-window {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 5px;
    border-radius: 8px;
    max-width: 70%;
    clear: both;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #fff;
}

.chat-meta {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.chat-text {
    font-size: 14px;
}

.from-user {
    background-color: var(--secondary);
    color: var(--primary);
    align-self: flex-end;
    text-align: right;
}

.from-admin {
    background-color: var(--primary);
    align-self: flex-start;
    text-align: left;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

#chat-message-form {    
    border-top: 1px solid #222;
    padding: 10px;
    background-color: var(--primary);
}

button#send-ticket-button {
    position: relative;
    right: 0;
    top: 0;
}

#chat-message-input {
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 8px;
}

#chat-message-input::placeholder {
    color: #657081;
}

#chat-message-send {
    border: var(--tertiary) solid 1px;
    border-radius: 4px;
    background-color: var(--primary);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#chat-message-send:hover {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: bold;
}

#chatbox-header {
    display: flex;
    justify-content: space-between;
}

#back-btn {
    justify-self: flex-start;
    align-self: flex-start;
    cursor: pointer;
    font-size: 24px; /* just to make sure it’s visible */
    color: white; /* or any visible color */
  }

/* Responsiveness */    
    
@media screen and (max-width: 768px) {        
     #avatar-container {
        /* Optional: limit image size */
        min-width: 50px;        /* Minimum width for smaller screens */
        width: 20%;         /* 20% of viewport width, scales with screen */
        max-width: 150px;    /* Prevents it from getting too large */
        padding: 8px;
    }

    #avatar-container img {
        width: 100%;         /* Image fills the container */
        height: auto;        /* Maintain aspect ratio */
    }
    
    #main-container {
        margin: 16px 16px 0px 16px;
        float: none;
        width: calc(100% - 3 * 16px - 30vw);
        display: block;
        height: calc(100vh - 60px - 240px - 32px);
        overflow-y: auto;
        padding-bottom: 300px; /* Extra space so last content isn't hidden behind chat */

    }

    #chatbot-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 60px;
        width: calc(100% - 2 * 16px);
        z-index: 1000;
    }
}

.notif-bell {
    transition: color 0.3s ease;
  }
  
  .notif-bell.unseen {
    color: #b22222;
  }


