body {
  font-family: 'Roboto', sans-serif;
  margin: 0px;
}

:root {
  --border-thickness: 1px;
}

select {
  padding: 6px;
  border-radius: 5px;
}

h1 {
  margin: 0;
  padding-bottom: 20px;
  color: white;
  background-color: #222831;
  padding: 20px;
  margin: -20px -20px 20px -20px;
}

.options {
  display: flex;
  column-gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  row-gap: 14px;
}

input {
  padding: 6.5px;
  border-radius: 5px;
  border-width: 1px;
}

.options > * {
  flex-grow: 2;
  flex: 1 1 0px;
}

button {
  border-width: 0;
  background-color: #487eb0;
  color: white;
  max-width: 100px;
  font-weight: bold;
  padding: 6px;
  min-width: 120px;
  border-radius: 5px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

button:hover {
  background-color: #40739e;
  cursor: pointer;
}

button:active {
  transform: scale(0.95);
  background-color: #0077b6;
}

textarea {
  padding: 10px;
  margin-top: 20px;
  resize: none;
  flex-grow: 1;
  border-radius: 5px;
}

html,
body {
  height: 100%;
}

.hide-from-print {
  height: calc(100% - 40px);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

pre {
  margin: 0;
}

#code-container {
  margin: 0;
  max-width: 100%;
}

#code-container .code-line:first-of-type .line-number {
  padding-top: calc(10px + var(--border-thickness));
}

#code-container .code-line:last-of-type .line-number {
  padding-bottom: calc(10px + var(--border-thickness));
}

#code-container .code-line:first-of-type #code {
  padding-top: calc(10px + var(--border-thickness));
  border-top: var(--border-thickness) solid #c9d1d9;
}

#code-container .code-line:last-of-type #code {
  padding-bottom: calc(10px + var(--border-thickness));
  border-bottom: var(--border-thickness) solid #c9d1d9;
}

#code {
  font-size: 14px;
  border: none;
  border-right: var(--border-thickness) solid #c9d1d9;
  font-family: 'Fira Code', monospace;
  white-space: pre-wrap;
  padding: 0px 11px;
  flex-grow: 1;
}

.code-pre {
  display: inline-block;
  flex-grow: 1;
}

#code-div {
  background-color: #c9d1d9;
  width: auto;
  flex: 1;
  display: inline-block;
}

.code-line {
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  display: flex;
}

.line-number {
  padding: 0px 11px;
  user-select: none;
  background-color: #454545;
  color: white;
  white-space: pre;
}

#print-area {
  padding: 0;
  padding-top: 20px;
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

@media print {
  body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .line-number {
    user-select: none;
  }

  #document-title {
    margin-bottom: 20px;
  }

  #print-area {
    display: block;
  }

  .hide-from-print {
    display: none;
  }
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

.github-icon {
  width: 40px;
  height: 40px;
  margin-left: 10px;
  vertical-align: middle;
  float: right;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

textarea::-webkit-scrollbar-thumb {
  border-radius: 4px;
}

/* Mode Tabs */
.mode-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #dcdde1;
}

.tab-button {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer !important;
  color: #2d3436;
  transition: all 0.3s ease;
  margin-bottom: -2px;
  pointer-events: auto !important;
}

.tab-button:hover {
  background-color: #f5f6fa;
  transform: none;
}

.tab-button.active {
  border-bottom-color: #487eb0;
  color: #487eb0;
  font-weight: bold;
  background: none;
}

/* Input Mode Containers */
.input-mode {
  display: none;
  flex-direction: column;
  flex-grow: 1;
}

.input-mode.active {
  display: flex;
}

/* Drop Zone */
.drop-zone {
  border: 3px dashed #b2bec3;
  border-radius: 10px;
  padding: 60px 20px;
  text-align: center;
  background-color: #f5f6fa;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;
}

.drop-zone:hover {
  border-color: #487eb0;
  background-color: #e8f4f8;
}

.drop-zone.drag-over {
  border-color: #0077b6;
  background-color: #d4e9f7;
  transform: scale(1.02);
}

.drop-zone-content {
  pointer-events: none;
}

.drop-zone-content > * {
  pointer-events: auto;
}

.upload-icon {
  color: #487eb0;
  margin-bottom: 15px;
  pointer-events: none;
}

.drop-zone-text {
  font-size: 18px;
  font-weight: bold;
  color: #2d3436;
  margin: 10px 0;
  pointer-events: none;
}

.drop-zone-hint {
  font-size: 14px;
  color: #636e72;
  margin: 5px 0;
  pointer-events: none;
}

.upload-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  pointer-events: auto;
}

.upload-btn {
  background-color: #487eb0;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  min-width: 130px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.upload-btn:hover {
  background-color: #40739e;
  transform: translateY(-2px);
}

.upload-btn:active {
  transform: scale(0.95);
  background-color: #0077b6;
}

/* File List */
.file-list-container {
  margin-bottom: 20px;
  border: 1px solid #dcdde1;
  border-radius: 5px;
  padding: 15px;
  background-color: #ffffff;
  max-height: 300px;
  overflow-y: auto;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dcdde1;
}

.file-list-header h3 {
  margin: 0;
  color: #2d3436;
  font-size: 18px;
}

.clear-btn {
  background-color: #d63031;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  min-width: auto;
  transition: background-color 0.2s ease;
}

.clear-btn:hover {
  background-color: #c0392b;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 8px;
  background-color: #f5f6fa;
  border-radius: 5px;
  border-left: 4px solid #487eb0;
  cursor: move;
  transition: all 0.2s ease;
}

.file-item:hover {
  background-color: #e8f4f8;
  transform: translateX(5px);
}

.file-item.dragging {
  opacity: 0.5;
}

.file-item-info {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-item-drag-handle {
  color: #b2bec3;
  cursor: move;
  font-size: 20px;
  margin-right: 5px;
}

.file-item-name {
  font-weight: bold;
  color: #2d3436;
}

.file-item-meta {
  font-size: 12px;
  color: #636e72;
  margin-left: 10px;
}

.file-item-type {
  background-color: #487eb0;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  text-transform: uppercase;
}

.file-item-remove {
  background-color: #d63031;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  min-width: auto;
  transition: background-color 0.2s ease;
}

.file-item-remove:hover {
  background-color: #c0392b;
  transform: none;
}

/* Conversion Options */
.conversion-options {
  margin-top: 10px;
}

.conversion-mode {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-grow: 2;
}

.conversion-mode label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.conversion-mode input[type="radio"] {
  cursor: pointer;
  width: auto;
}

.save-location-option {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  color: #2d3436;
}

.save-location-option input[type="checkbox"] {
  cursor: pointer;
  width: auto;
}






