@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Oxanium', sans-serif;
}

body {
  background-color: #121212;
  color: #fff;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #ff4081 #1e1e1e;
}

body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-thumb {
  background-color: #ff4081;
  border-radius: 10px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1e1e1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
header .left img {
  height: 40px;
}
header .center {
  font-size: 24px;
  font-weight: bold;
  color: #ff4081;
}
header .right {
  font-size: 16px;
  color: #ccc;
}

/* Main Layout */
.container {
  display: flex;
  margin-top: 80px;
  height: calc(100vh - 80px);
}

/* React Root - Todo List */
#root {
  width: 35%;
  padding: 20px;
  overflow-y: auto;
  background-color: #1a1a1a;
  border-right: 1px solid #333;
}

.todo-list .category {
  margin-bottom: 20px;
  background-color: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 64, 129, 0.2);
  transition: all 0.3s ease;
}
.category-title {
  padding: 15px;
  background-color: #2c2c2c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #444;
}
.category-title:hover {
  background-color: #373737;
}
.category-title .done {
  text-decoration: line-through;
  color: #888;
}
.tasks {
  padding: 10px 20px;
  animation: fadein 0.3s ease;
}
.task {
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.task span.done {
  text-decoration: line-through;
  color: #888;
}
.arrow {
  color: #ff4081;
  font-size: 16px;
}
@keyframes fadein {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Chatbox */
.chatbox {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #181818;
  padding: 20px;
  height: 100%;
}
#chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
}
.message {
  max-width: 70%;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 12px;
  word-break: break-word;
}
.message.user {
  background-color: #ff4081;
  align-self: flex-end;
  color: #fff;
}
.message.bot {
  background-color: #2e2e2e;
  align-self: flex-start;
  color: #eee;
}
.typing {
  font-style: italic;
  opacity: 0.7;
}

/* Chat input */
.chat-input {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
#user-input {
  flex: 1;
  border-radius: 999px;
  padding: 10px 20px;
  background-color: #2a2a2a;
  border: none;
  color: #fff;
}
#send-button {
  padding: 10px 25px;
  border: none;
  border-radius: 999px;
  background-color: #ff4081;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
#send-button:hover {
  background-color: #ff1f70;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #121212;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background-color: #ff4081;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}
.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-15px); }
}
