body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1e1e1e;
  color: #e0e0e0;
}

.container {
  display: flex;
  height: 100vh;
  flex-direction: column;
}

.left-panel {
  width: 100%;
  background-color: #252526;
  border-bottom: 1px solid #3e3e42;
  display: flex;
  flex-direction: column;
  height: 50vh;
}

.right-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 50vh;
}

.top-bar {
  background-color: #333333;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.dropdown {
  background-color: #3c3c3c;
  color: #e0e0e0;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}

.icon-container {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 10px;
}

.icon {
  cursor: pointer;
  font-size: 18px;
  color: #e0e0e0;
}

.file-section {
  flex: 0 0 auto;
  overflow-y: auto;
  padding: 10px;
  max-height: 40%;
}

.section-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #569cd6;
}

.file-list {
  margin-top: 20px;
}

.file-list li {
  cursor: pointer;
  padding: 5px;
  transition: background-color 0.2s ease;
}

.file-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.file-item {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
}

.file-item:hover {
  background-color: #2a2d2e;
}

.file-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.delete-icon {
margin-left: auto;
color: red;
cursor: pointer;
font-size: 12px;
}

.chat-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px;
}

.chat-message {
  margin-bottom: 10px;
  padding: 5px;
  background-color: #2a2d2e;
  border-radius: 5px;
  cursor: pointer;
  line-height: 2;
  left: 0;
  right: 0;
}

.chat-message:hover {
  background-color: black;
  color: lime;
  box-shadow: 0 0 20px white;
  padding: 5px;
}

.chat-input {
  flex: 0 0 auto;
  padding: 10px;
  background-color: #3c3c3c;
  border-top: 1px solid #4e4e4e;
}

.chat-input input {
  width: calc(100% - 40px);
  height: 40px;
  padding: 10px 20px;
  background-color: #252526;
  border: none;
  color: #e0e0e0;
  font-size: 14px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

hr {
  border: none;
  border-top: 1px solid #3e3e42;
  margin: 10px 0;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  width: 100%;
}

.title-icon {
  color: white;
  font-size: 24px;
  margin-right: 15px;
}

.title {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(45deg, #8a2be2, #4b0082, #0000ff, #00ffff);
  background-size: 300% 300%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown {
    width: 100%;
    margin-bottom: 10px;
  }

  .title-container {
    margin: 10px 0;
  }

  .icon-container {
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .container {
    flex-direction: row;
  }

  .left-panel {
    width: 30%;
    height: 100vh;
    border-right: 1px solid #3e3e42;
    border-bottom: none;
  }

  .right-panel {
    width: 70%;
    height: 100vh;
    flex: 1;
  }

  .top-bar {
    flex-wrap: nowrap;
  }

  .title-container {
    width: auto;
    margin: 0 0 0 20px;
  }

  .dropdown {
    margin-bottom: 0;
    width: auto;
  }

  .icon-container {
    width: auto;
    margin-top: 0;
  }
}

/* Progress bar styles */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #333333;
  z-index: 1000;
}

.progress {
  width: 0;
  height: 100%;
  background-color: #4CAF50;
  animation: progress 2s linear infinite;
}

@keyframes progress {
  0% {
    width: 0;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 100%;
  }
}

.content-preview {
  display: flex;
  flex-direction: column;
  background-color: #3c3c3c;
  align-items: center;
  justify-content: center; 
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

#fileContentEditor {
  width: 90%;
  height: 400px;
  border: none;
  border-radius: 10px;
  background-color: black;
  color: #e0e0e0;
  font-family: monospace;
  font-size: 14px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 2;
  resize: none;
  box-shadow: 0 0 10px white;
}

#fileContentButton {
background-color: darkblue;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
width: 90%;
height: 40px;
font-size: 16px;
margin-top: 20px;
box-shadow: 0 0 10px white;
}

.drop-zone {
  border: 2px dashed #ccc;
  border-radius: 20px;
  width: 100%;
  margin: 10px 0;
  padding: 25px;
  text-align: center;
  color: #ccc;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone.drag-over {
  border-color: #00ff00;
  background-color: rgba(0, 255, 0, 0.1);
}

.file-list {
  margin-top: 20px;
}

.file-list li {
  cursor: pointer;
  padding: 5px;
  transition: background-color 0.2s ease;
}

.file-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.file-list.highlight {
    border: 2px dashed #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.file-section.drag-over {
    border: 2px dashed #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}