html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Roboto, Arial, sans-serif;
    background: transparent;
    color: white;
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    min-height: 100vh;
    background-image: url('../images/back.png');
    background-size: cover;
    background-position: 100% center;
    background-repeat: no-repeat;
    animation: panBackground 20s linear forwards;
    z-index: -1;
    pointer-events: none;
}

@keyframes panBackground {
    from {
        background-position: 100% center;
    }

    to {
        background-position: 0% center;
    }
}

/* ===== Header ===== */

header {
    width: 100%;
    background: transparent;
    padding: 40px 20px 25px 20px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.header-link:hover {
    text-decoration: none;
    color: white;
}

.header-logo {
    width: 42px;
    height: auto;
}

.header-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.header-subtext {
    margin-top: 15px;
    color: cadetblue;
    font-size: 16px;
    line-height: 1.5;
}

/* ===== Chat Layout ===== */

.container {
    width: 100%;
    max-width: 900px;
    margin: 30px 20px 60px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.84), rgba(30, 41, 59, 0.84));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.chat_chat-container {
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
    margin-bottom: 20px;
}

.chat_chat-message {
    margin-top: 20px;
    margin-bottom: 20px;
    background: #007bff;
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    width: fit-content;
    max-width: 80%;
    line-height: 1.5;
}

.chat_ResponseContainer {
    padding: 10px;
    border-radius: 5px;
    line-height: 1.6;
}

/* ===== Input Area ===== */

.button-2 {
  display: inline-block;
  height: auto;
  padding: 12px 26px;
  background-color:#16a34a;
  color: white;
 font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
  text-decoration: none;
  border-radius: 3px;

}
.button-2:hover {
  cursor: pointer;
  background-color: #15803d;
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat_input-container {
    width: 100%;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

#chat_user-input {
    width: 100%;
    min-height: 80px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 12px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
    color: #111827;
}

#chat_user-input:focus {
    outline: none;
    border-color: #16a34a;
}

#chat_send-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: none;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#chat_send-btn:hover {
    opacity: 0.9;
}

/* ===== CTA ===== */

.cta-button {
    display: inline-block;
    margin-top: 20px;
    background: #16a34a;
    color: white;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #15803d;
}

.cta-note {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.76);
}

/* ===== Spinner ===== */

.chat_spinner {
    display: none;
    margin-top: 20px;
    width: 24px;
    height: 24px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid darkgray;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* ===== Mobile ===== */

@media (max-width: 768px) {

    .header-title {
        font-size: 28px;
        white-space: normal;
    }

    .container {
        margin: 20px 15px 40px;
        padding: 24px;
    }

    .chat_chat-message {
        max-width: 95%;
    }
}
