*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --text-color: #edf3ff;
    --subheading-color: #97a7ca;
    --placeholder-color: #c3cdde;
    --primary-color: #101623;
    --secondary-color: #283045;
    --secondary-hover-color: #333e58;
    --scrollbar-color: #626a7f;
}

body{
    color: var(--text-color);
    background: var(--primary-color);
}

.container{
    padding: 32px 0 60px;
}

.container :where(.app-header, .suggestions, .message, .prompt-wrapper, .disclaimer-text) {
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    max-width: 980px;
}

/* App header stylings */
.container .app-header{
    margin-top: 4vh;
}

.app-header .heading{
    font-size:  3rem;
    width: fit-content;
    background: linear-gradient(to right, #1d7efd, #8f6fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header .sub-heading{
    font-size: 2.6rem;
    margin-top: -5px;
    color: var(--subheading-color);
}

/* Suggestions list stylings */
.container .suggestions{
    display: flex;
    gap: 15px;
    margin-top: 9.5vh;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.suggestions .suggestions-item{
    width: 228px;
    padding: 18px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    border-radius: 12px;
    background: var(--secondary-color);
    transition: 0.3s ease;
}

.suggestions .suggestions-item:hover{
    background: var(--secondary-hover-color);
}

.suggestions .suggestions-item .text{
    font-size: 1.1rem;
}

.suggestions .suggestions-item i{
    height: 45px;
    width: 45px;
    margin-top: 35px;
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: #1d7efd;
}

.suggestions .suggestions-item:nth-child(2) i{
    color: #28a745;
}
.suggestions .suggestions-item:nth-child(3) i{
    color: #ffc107;
}
.suggestions .suggestions-item:nth-child(4) i{
    color: #6f42c1;
}

/* Chats container stylings */
/* .container .chats-container{
    display: flex;
    gap: 20px;
    flex-direction: column;
}
.chats-container .message{
    display: flex;
    gap: 11px;
    align-items: center;
}

.chats-container .bot-message .avatar{
    height: 43px;
    width: 43px;
    flex-shrink: 0;
    padding: 6px;
    align-self: flex-start;
    margin-right: -7px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 1px solid var(--secondary-hover-color);
}

.chats-container .message .message-text{
    padding: 3px 16px;
    word-wrap: break-word;
    white-space: pre-line;
}

.chats-container .bot-message{
    margin: 9px auto;
}

.chats-container .user-message{
    flex-direction: column;
    align-items: flex-end;
}

.chats-container .user-message .message-text{
    padding: 12px 16px;
    max-width: 75%;
    border-radius: 13px 13px 3px 13px;
    background: var(--secondary-color);
} */

/* Prompt container stylings */
.prompt-container{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    background: var(--primary-color);
}

.prompt-container :where(.prompt-wrapper, .prompt-form, .prompt-actions) {
    display: flex;
    gap: 12px;
    height: 56px;
    align-items: center; 
}

.prompt-wrapper .prompt-form {
    width: 100%;
    height: 100%;
    border-radius: 130px;
    background: var(--secondary-color);
}

.prompt-form .prompt-input{
    height: 100%;
    width: 100%;
    background: none;
    outline: none;
    border: none;
    font-size: 1rem;
    padding-left: 24px;
    color: var(--text-color);
}

.prompt-form .prompt-input::placeholder{
    color: var(--placeholder-color);
}

.prompt-wrapper button{
    width: 56px;
    height: 100%;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: var(--text-color);
    background: var(--secondary-color);
    transition: 0.3s ease;
}

.prompt-wrapper button:hover{
    background: var(--secondary-hover-color);
}

.prompt-form .prompt-actions{
    gap: 5px;
    margin-right: 7px;
}

.prompt-form .prompt-actions button{
    height: 45px;
    width: 45px;
}

.prompt-form #send-prompt-btn{
    color: #fff;
    background: #1d7efd;
    display: none;
    transition: 0.3s ease;
}

.prompt-form .prompt-input:valid ~ .prompt-actions #send-prompt-btn{
    display: block;
}

.prompt-form  #send-prompt-btn:hover{
    background: #0264e3;
}

.prompt-container .disclaimer-text{
    text-align: center;
    font-size: 0.9rem;
    padding: 16px 20px 0;
    color: var(--placeholder-color);
}

/* --- Light Mode Theme --- */
body.light-mode {
  --primary-color: #f9fafb;              /* soft neutral white background */
  --secondary-color: #ffffff;            /* white for cards and panels */
  --secondary-hover-color: #f1f5f9;      /* gentle hover */
  --text-color: #111827;                 /* dark text for readability */
  --button-bg: #2563eb;                  /* primary blue accent */
  --button-hover: #1d4ed8;
  --border-color: rgba(0, 0, 0, 0.08);
  background-color: var(--primary-color);
  color: var(--text-color);
  transition: background 0.4s ease, color 0.4s ease;
}

/* Chat bubbles in light mode */
body.light-mode .user-message .message-text {
  background: var(--button-bg);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

body.light-mode .bot-message .message-text {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

/* Header and prompt area */
body.light-mode header {
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .prompt-container {
  background: var(--secondary-color);
  border-top: 1px solid var(--border-color);
}

/* Buttons and icons */
body.light-mode button {
  background: var(--secondary-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

body.light-mode button:hover {
  background: var(--secondary-hover-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Input box */
body.light-mode .prompt-input {
  background: #f9fafb;
  color: #111827;
  border: 1px solid var(--border-color);
}

body.light-mode .prompt-input::placeholder {
  color: #9ca3af;
}

/* Suggestions */
body.light-mode .suggestions-item {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.light-mode .suggestions-item:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
