body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d1117;
  color: #f0f6fc;
  font-size: 16px;
}
#bodx {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Full viewport height */
  margin: 0; /* Remove default margin */
}

h1, h2, h3, h4, h5, h6 {
  font-size: 16px;
}

/* Landing page */
#landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #fff;
  text-align: center;
  background: transparent;
}
#landing h1 {
  font-size: 16px;
  margin-bottom: 2rem;
}
#login {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#login input {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
}
#login button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #1e3c72;
  cursor: pointer;
  transition: transform 0.2s;
}
#login button:hover { transform: scale(1.05); }

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#app{
  position: relative;                /* enables layered effects */
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% -20%, rgba(56,139,253,.10), transparent 60%),
    radial-gradient(1200px 600px at 120% 120%, rgba(35,134,54,.10), transparent 60%);
  outline: 1px solid #30363d;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 10px 30px rgba(0,0,0,.5);
}
#logo{
  width: auto;
  height: 55px;
}
#logo2 {
    width: 80%; /* or a specific size like 200px */
    max-width: 400px; /* ensures it doesn't get too large */
    height: auto; /* maintain the aspect ratio of the logo */
    
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* centers the logo within its container */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* or whatever height you prefer */
}

#ticker-logo{
  width:180px;
  height: 35px;
  background-color: blackß;
}

/* Sidebar fixed on the left; #app stays block */
#sidebar{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px; min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(22,27,34,.95), rgba(22,27,34,.85));
  border-right: 1px solid #30363d;
  box-shadow: 6px 0 24px rgba(0,0,0,.35);
  overflow-y: auto;
  font-size: 14px;
}

/* Sidebar buttons */
#sidebar button{
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: #2d333b;
  border: 1px solid #444c56;
  border-radius: 6px;
  color: #c9d1d9;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#sidebar button:hover{
  background: #444c56;
  transform: translateY(-2px);
}

#project-list .proj-settings {
  width: auto;
  padding: 0.25rem;
  background: #2d333b;
  border: 1px solid #444c56;
  border-radius: 6px;
  color: #c9d1d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#project-list .proj-settings:hover {
  background: #444c56;
}

#sidebar h2{
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #8b949e;
  border-top: 1px solid #30363d;
  padding-top: 0.75rem;
}

#sidebar ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar li{
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#sidebar li.selected{
  background: #fbbf24;
  color: #000;
}

#sidebar li:hover{
  background: #2d333b;
}

#weather{
  background-color: rgb(0, 4, 255);
}

#datetime{
  background-color: rgb(0, 0, 0);
}

/* Chat area flows to the right via margin (no flex/grid on #app) */
#chat{
  margin-left: 300px;      /* sits to the right of fixed sidebar */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header polish */
header{
  position: sticky; top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(22,27,34,.95), rgba(22,27,34,.85));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #30363d;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

/* Messages area: comfy spacing + subtle separators + nice scrollbars */
#messages{
  padding: 1.25rem 1.25rem 6rem; /* extra bottom room for input bar */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}
#messages::-webkit-scrollbar{ height: 8px; width: 8px; }
#messages::-webkit-scrollbar-thumb{ background:#30363d; border-radius: 8px; }
#messages::-webkit-scrollbar-track{ background: transparent; }

/* Message rows (already flex); add subtle in/out animation */
.message{
  width: 100%;
  gap: 0.5rem;
  animation: msgPop .18s ease-out;
}
@keyframes msgPop{
  from{ transform: translateY(4px); opacity: .0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* Bubbles: glassy, with tails */
.bubble{
  position: relative;
  padding: 0.6rem 0.9rem;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.35;
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 6px 20px rgba(0,0,0,.25);
  opacity: 0;
}

@keyframes fly-in-left {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fly-in-right {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fly-in-top {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fly-in-bottom {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bubble.fly-in-left { animation: fly-in-left 1s ease-out forwards; }
.bubble.fly-in-right { animation: fly-in-right 1s ease-out forwards; }
.bubble.fly-in-top { animation: fly-in-top 1s ease-out forwards; }
.bubble.fly-in-bottom { animation: fly-in-bottom 1s ease-out forwards; }

/* Left (bot) bubble + tail */
.message.bot .bubble{
  background: linear-gradient(180deg, #238636, #1f7a30);
  color: #fff;
  margin-right: auto;
}
.message.bot .bubble::after{
  content: "";
  position: absolute; left: -6px; bottom: 6px;
  width: 12px; height: 12px;
  background: linear-gradient(180deg, #238636, #1f7a30);
  transform: rotate(45deg);
  border-bottom-left-radius: 2px;
  box-shadow: -1px 1px 0 rgba(0,0,0,.08);
}

/* Right (user) bubble + tail */
.message.user{ justify-content: flex-end; }
.message.user .bubble{
  background: linear-gradient(180deg, #1e3a8a, #162d6d);
  color: #fff;
  margin-left: auto;
}
.message.user .bubble::after{
  content: "";
  position: absolute; right: -6px; bottom: 6px;
  width: 12px; height: 12px;
  background: linear-gradient(180deg, #1e3a8a, #162d6d);
  transform: rotate(45deg);
  border-bottom-right-radius: 2px;
  box-shadow: 1px 1px 0 rgba(0,0,0,.08);
}

/* Optional: meta row (timestamps, ticks) */
.message .meta{
  font-size: 12px;
  color: #8b949e;
  margin-top: 0.25rem;
}
.message.user .meta{ text-align: right; }

/* Avatar badge stays tidy */
.icon-bubble{
  flex: 0 0 32px;
  height: 32px; width: 32px;
  background: #0f1721;
  border: 1px solid #30363d;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Composer bar: floating, pill */
#prompt-form{
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(22,27,34,.2), rgba(22,27,34,.8));
  backdrop-filter: blur(8px);
  border-top: 1px solid #30363d;
}
#input-area{
  position: sticky;
  bottom: 0;
}

@media (max-width: 600px){
  #prompt-form{ flex-direction: column; }
}
#prompt-form .composer{
  display: flex; gap: 0.5rem;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 999px;
  padding: 0.4rem 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
#prompt-form input[type="text"]{
  flex: 1;
  background: transparent;
  border: none;
  color: #f0f6fc;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 16px;
  outline: none;
}
#prompt-form button{
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #2ea043, #238636);
  box-shadow: 0 6px 18px rgba(35,134,54,.35);
}
#prompt-form button:hover{
  filter: brightness(1.08);
}

/* Landing header typography polish */
#landing h1{
  font-weight: 700;
  letter-spacing: .2px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* Code blocks: lean glow */
pre{
  border-radius: 12px;
  border: 1px solid #30363d;
  box-shadow: 0 10px 28px rgba(2,6,23,.45);
}

/* Attachments: soft frame */
.attachment-img{
  max-width: 220px;
  border: 1px solid #30363d;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* Mobile: collapse sidebar */
@media (max-width: 900px){
  #sidebar{ position: fixed; transform: translateX(-100%); }
  body.sidebar-open #sidebar{ transform: translateX(0); transition: transform .25s ease; }
  #chat{ margin-left: 0; }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  font-size: 16px;
}
.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 500s linear infinite;
  font-size: 16px;
}
#rss-ticker {
  font-size: 16px;
}
.marquee-content span {
  padding-right: 2rem;
  position: relative;
}
.marquee-content span::before {
  content: '\2022';
  color: red;
  margin-right: 0.5rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

pre {
  background: #0d1117;
  padding: 0.5rem;
  overflow-x: auto;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 0 10px dodgerblue;
  font-size: 16px;
}

.attachment-img {
  max-width: 200px;
  border-radius: 4px;
}

.ticker-label {
  font-weight: bold;
  margin-right: 1rem;
}

/* Codex window */
#codex-page {
  padding: 1rem;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  min-height: 100vh;
  color: #fff;
}
#github-connect {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
#github-connect input,
#github-connect select {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #f0f6fc;
  border-radius: 4px;
  padding: 0.5rem;
}
#codex-page textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 0.5rem;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #f0f6fc;
  border-radius: 4px;
  padding: 0.5rem;
}
#codex-page button {
  padding: 0.5rem 1rem;
  background: #238636;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

#landing {
  text-align: center; /* Center the content */
}

#logo2 {
  width: 300px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
}

#login {
  margin-top: 20px; /* Space between logo and login form */
}

#login input {
  display: block;
  margin: 10px auto; /* Center inputs */
  padding: 10px;
}

#login button {
  display: block;
  margin: 10px auto; /* Center buttons */
  padding: 10px;
}
#codex-page button:hover { background: #2ea043; }
