:root {
    --usc-garnet: #73000a;
    --usc-atlantic: #466A9F;
    --usc-sandstorm: #FFF2E3;
    --usc-black: #000000;
    --usc-dark-gray: #363636;
    --usc-medium-gray: #5C5C5C;
    --usc-light-gray: #ECECEC;
    --usc-white: #ffffff;
    --usc-rose: #CC2E40;

    --magenta: #9e005d;
    --navy: #072c60;
    --SourceSansPro: "Source Sans Pro", sans-serif;
    --BerlingskeSans: "Berlingske Sans", Arial, sans-serif;
}

body {
    font-family: var(--SourceSansPro);
    color: var(--usc-dark-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 95%;
    margin: auto;
    padding: 1%;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    height: 700px;
}

.utility-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: center;
}

.utility-links > p > a {
    background: var(--usc-medium-gray);
    color: var(--usc-white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2.2em;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--usc-garnet);
    margin-top: 0;
    font-weight: 600;
}

.chat-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1em;
}

.chat-area {
    width: 45%;
    margin-bottom: 1em;
    background-color: var(--usc-white);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 10, 0.2);
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: -moz-available;
    height: -webkit-fill-available;
    border: 1px solid var(--usc-light-gray);
    overflow: auto;
    margin: auto;
    resize: horizontal;
}

#newConversationBtn {
    width: fit-content;
    background: var(--usc-medium-gray); 
    color: var(--usc-white); 
    border: none; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.3s ease;
    margin-left: auto;
}

#date-stamp {
    font-size: smaller;
    color: var(--usc-atlantic);
    display: flex;
    justify-content: center;
    padding: 8px;
}


.chat-messages {
    flex: 1;
    /* max-height: 21rem; */
    overflow-y: scroll;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--usc-light-gray);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--usc-sandstorm) 0%, var(--usc-white) 100%);
    box-shadow: 0 2px 8px rgba(115, 0, 10, 0.3);
}

/* Custom Scrollbar on Target */
.chat-messages::-webkit-scrollbar {
    width: 10px;
}

/* Track */
.chat-messages::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px var(--usc-medium-gray); 
    border-radius: 5px;
}

/* Handle */
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 10px;
}

/* Handle on hover */
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #b30000; 
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 75%;
    word-wrap: break-word;
    font-weight: 500;
    line-height: 1.5;
}

.instruction-message {
    background: linear-gradient(135deg, var(--magenta), var(--usc-rose));
    color: var(--usc-white);
    align-self: flex-end;
    border-radius: inherit;
    box-shadow: 0 2px 8px rgba(70, 106, 159, 0.3);
}

.conversation-starter-message {
    display: flex;
    align-self: flex-end;
    margin-left: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    column-gap: 1em;
    max-width: 95%;
    justify-content: flex-end;
}


.conversation-starter-message > p {
    background: var(--navy);
    color: var(--usc-white);
    padding: 0.5em;
    border-radius: 1em;
    font-size: smaller;
    margin: 0.3em;
}


.user-message {
    background: linear-gradient(135deg, var(--magenta), var(--usc-rose));
    color: var(--usc-white);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(70, 106, 159, 0.3);
}

.bot-message {
    background-color: var(--usc-white);
    color: var(--usc-dark-gray);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid var(--usc-light-gray);
    box-shadow: 2px 2px 5px dimgrey
}

.bot-message a {
    color: var(--usc-atlantic);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.bot-message a:hover {
    color: var(--usc-garnet);
}

.bot-message strong {
    color: var(--usc-garnet);
}

.resource-item {
    margin-top: 10px;
    padding: 10px;
    background-color: #fff9c4;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
    font-size: 0.9em;
}

.resource-title {
    font-weight: bold;
    color: var(--secondary-color);
}

.resource-org {
    font-style: italic;
    font-size: 0.9em;
}

.resource-link {
    margin-top: 5px;
    display: block;
    color: var(--primary-color);
    text-decoration: none;
}

.resource-link:hover {
    text-decoration: underline;
}

.chat-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-wrap: nowrap;
}

#user-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--usc-light-gray);
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    font-family: 'Berlingske Sans', Arial, sans-serif;
    background-color: var(--usc-white);
    transition: all 0.3s ease;
}

#user-input:focus {
    border-color: var(--usc-atlantic);
    box-shadow: 0 0 0 3px rgba(70, 106, 159, 0.1);
    background-color: var(--usc-sandstorm);
}

#send-button {
    width: fit-content;
    background: linear-gradient(135deg, var(--magenta), var(--usc-rose));
    color: var(--usc-white);
    border: none;
    border-radius: 30px;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(115, 0, 10, 0.3);
    align-self: end;
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 0, 10, 0.4);
}

#newConversationBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(115, 0, 10, 0.4);
}


.typing-indicator {
    display: none;
    padding: 12px 18px;
    background-color: var(--usc-white);
    border: 1px solid var(--usc-light-gray);
    border-radius: 20px;
    max-width: 75%;
    margin-bottom: 15px;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--usc-atlantic);
    animation: dot-pulse 1.5s infinite;
    margin-right: 4px;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

#aside-content-area {
    flex: 20%;
    padding: 1em;
    margin-left: 1em;
    overflow-y: auto;
    height: 38em;
    min-width: 400px;
    /* glass */
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-image: url("../assets/bg.jpg");
    background-size: cover;
}

.aside-content-img {
    width: -moz-available;
    width: -webkit-fill-available;
    border-radius: 1em;
}


/* Custom Scrollbar on Target */
#aside-content-area::-webkit-scrollbar {
    width: 10px;
}

/* Track */
#aside-content-area::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px var(--usc-medium-gray); 
    border-radius: 5px;
}

/* Handle */
#aside-content-area::-webkit-scrollbar-thumb {
    background: var(--magenta);
    border-radius: 10px;
}

/* Handle on hover */
#aside-content-area::-webkit-scrollbar-thumb:hover {
    background: #b30000; 
}

.banner-wrapper {
    border-radius: 1em;
    padding: 0.5em;
    background-color: var(--usc-white);
    line-height: normal;
}