body {
  background: #252525;
  color: #FAFAFA;
  font-family: 'Kodchasan', sans-serif;
  margin: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.not-found-page {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.not-found-code {
  color: #EDBE45;
  font-size: 4em;
  font-weight: bold;
  margin: 0;
}

.not-found-page h1 {
  margin: 0 0 8px;
}

.not-found-page p:not(.not-found-code) {
  color: #D7D7D7;
  margin: 0 0 24px;
}

.not-found-action {
  background: #EDBE45;
  border-radius: 3px;
  color: #252525;
  font-weight: bold;
  padding: 10px 16px;
  text-decoration: none;
}

select, input {
  font-family: 'Kodchasan', sans-serif;
}

#new-paste {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  flex-wrap: wrap;
}

::selection {
  background: #858585;
}

::-moz-selection {
  background: #858585;
}

#paste-block {
  flex-grow: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allow flex item to shrink */
}

#snackbar-container {
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 48px));
  position: fixed;
  right: 24px;
  z-index: 200;
}

.form-snackbar {
  background: #5a2d2d;
  border: 1px solid #a65c5c;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  color: #ffd7d7;
  margin: 0;
  padding: 12px 16px;
  animation: snackbar-in 220ms ease-out both;
}

.form-snackbar.is-leaving {
  animation: snackbar-out 220ms ease-in both;
}

@keyframes snackbar-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes snackbar-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

#paste-block pre {
  overflow-x: auto;
  flex-grow: 1;
  margin: 0;
  padding-left: 10px;
  background: #252525;
  border-radius: 3px;
}

#indicator-block {
  position: sticky;
  top: 0;
  left: 0;
  background: #252525;
  z-index: 10;
  padding: 7px 20px;
}

#indicator-block h4 {
  margin: 0;
  color: #EDBE45;
}

#panel-block {
  max-width: 350px;
  flex-shrink: 0;
  width: 350px;
  padding: 20px;
  box-sizing: border-box;
  background: #333333;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease; /* Use transform for sliding */
}

.panel-header {
  display: none; /* This is no longer needed as logo is moved */
}

.menu-toggle {
  background: none;
  border: none;
  color: #EDBE45;
  font-size: 1.5em;
  cursor: pointer;
  padding: 5px;
}

.header-mobile {
  display: none; /* Hidden by default on desktop */
}

#panel-block select,
#panel-block input[type=submit],
#panel-block input[type=password] {
  display: block;
  width: 100%;
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 1em;
}

#panel-block select {
  background: #FAFAFA;
  border: none;
  color: #252525;
}

#panel-block input[type=password] {
  border: none;
  box-sizing: border-box;
}

.protected-option {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
}

.protected-option input {
  accent-color: #EDBE45;
}

#password-option[hidden] {
  display: none;
}

#password-option {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease;
}

#password-option.is-visible {
  max-height: 90px;
  opacity: 1;
}

.private-paste-page {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 24px;
}

.private-paste-card {
  background: #333333;
  border-radius: 6px;
  max-width: 380px;
  padding: 32px;
  text-align: center;
  width: 100%;
}

.private-paste-icon {
  color: #EDBE45;
  font-size: 2em;
  margin: 0 0 12px;
}

.private-paste-card h1 {
  margin: 0 0 8px;
}

.private-paste-card > p:not(.private-paste-icon):not(.form-snackbar) {
  color: #D7D7D7;
  margin: 0 0 20px;
}

.private-paste-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.private-paste-card input,
.private-paste-card button {
  border: none;
  border-radius: 3px;
  box-sizing: border-box;
  font-family: 'Kodchasan', sans-serif;
  padding: 10px;
}

.private-paste-card button {
  background: #EDBE45;
  color: #252525;
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
}

#panel-block input[type=submit] {
  text-transform: uppercase;
  background: #EDBE45;
  color: #252525;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#panel-block input[type=submit]:hover {
  background: #d4a73a;
}

.panel-expanded #text-logo {
  display: none;
}

#text-logo {
  font-family: 'Kodchasan', sans-serif;
  font-weight: bold;
  font-size: 1.8em;
  color: #EDBE45;
  margin: 0 0 1em 0;
  text-align: center;
}

#paste-editor {
  flex-grow: 1;
  width: 100%;
  background: #252525;
  border: 1px solid #444444;
  color: #FAFAFA;
  box-sizing: border-box;
  padding: 0;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9em;
  resize: none;
  height: 100%;
}

.CodeMirror, body .cm-s-default.CodeMirror , body .cm-s-dracula.CodeMirror {
  height: 100%;
  border: none;
  border-radius: 3px;
  background-color: transparent !important;
  color: #f8f8f2 !important;
}

.CodeMirror-scroll {
  overflow-x: auto !important;
  background: transparent !important;
}

body .cm-s-default .CodeMirror-gutters , body .cm-s-dracula .CodeMirror-gutters {
  background-color: transparent !important;
  border-right: 1px solid #444444 !important;
}

.hljs {
  background: transparent !important;
}

.CodeMirror-linenumber, .CodeMirror-code {
  color: #f8f8f2 !important;
  line-height: 1.3em; /* Ensure line height consistency */
}

#action-menu {
  padding: 0;
  margin: 25px 0 0 0;
  list-style: none;
}

#action-menu li {
  margin-bottom: 10px;
}

#action-menu li a {
  display: block;
  background: #FAFAFA;
  color: #252525;
  padding: 10px;
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  transition: background 0.3s ease;
}

#action-menu li a:hover {
  background: #e0e0e0;
}

#form-options {
  margin-top: 20px;
}

#form-options label {
  font-size: 0.9em;
  margin-bottom: 5px;
  display: block;
}

#paste-info-container {
  color: #252525;
  background: #FAFAFA;
  border-radius: 3px;
  padding: 15px;
  margin-top: 20px;
}

#paste-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

#paste-info li {
  margin-bottom: 10px;
}

#paste-info li p {
  margin: 0;
  line-height: 1.4;
}

#paste-info textarea {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.8em;
  color: #EDBE45;
  background: #252525;
  padding: 8px;
  margin-top: 5px;
  border-radius: 3px;
  border: none;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 60px;
}

.paste-link-row {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

#paste-link {
  border: 1px solid #cccccc;
  border-radius: 3px;
  box-sizing: border-box;
  flex: 1;
  font-family: 'Source Code Pro', monospace;
  min-width: 0;
  padding: 8px;
}

#copy-link {
  background: #EDBE45;
  border: none;
  border-radius: 3px;
  color: #252525;
  cursor: pointer;
  font-family: 'Kodchasan', sans-serif;
  font-weight: bold;
  padding: 8px 12px;
  white-space: nowrap;
}

#copy-link:hover {
  background: #d4a73a;
}

#copy-content {
  background: #EDBE45;
  border: none;
  border-radius: 3px;
  color: #252525;
  cursor: pointer;
  font-family: 'Kodchasan', sans-serif;
  font-weight: bold;
  padding: 8px 12px;
}

#copy-content:hover {
  background: #d4a73a;
}

.copy-link-status {
  color: #477a35;
  font-size: 0.85em;
  min-height: 1.2em;
}

@media(max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #333333;
    padding: 10px;
    z-index: 102;
    box-sizing: border-box;
  }

  .form-snackbar {
    max-width: none;
  }

  #snackbar-container {
    bottom: 16px;
    left: 16px;
    max-width: none;
    right: 16px;
  }

  #text-logo {
    font-size: 1.5em;
    margin: 0;
  }

  #new-paste {
    flex-direction: column;
    width: 100%;
  }

  #panel-block {
    width: 250px;
    max-width: none;
    padding: 20px;
    position: fixed;
    height: 100vh;
    z-index: 100;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 70px;
  }

  #panel-block.panel-expanded {
    transform: translateX(0);
  }

  #action-menu-container {
    display: block;
  }

  body.panel-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  #paste-block {
    width: 100%;
    padding: 10px;
  }

  #indicator-block {
    position: static;
    text-align: center;
    padding: 10px;
  }

  #paste-editor {
    height: 100%;
    min-height: 300px;
  }

  .CodeMirror {
    height: 100%;
    min-height: 300px;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #333333;
}

::-webkit-scrollbar-thumb {
  background: #555555;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #777777;
}

.sidebar-block {
  color: #FAFAFA; /* Change text color for better contrast on darker background */
  background: #444444; /* Darker background for the block */
  border-radius: 3px;
  padding: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.sidebar-block h4 {
  margin-top: 0;
  color: #EDBE45;
  text-align: left;
  margin-bottom: 15px;
  font-size: 0.9em;
  text-transform: uppercase;
  border-bottom: 1px solid #EDBE45;
  padding-bottom: 5px;
}

.recent-pastes-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.recent-pastes-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #555555; /* Lighter border for darker background */
  line-height: 1.4;
  transition: background 0.3s ease; /* Smooth transition for hover */
  padding-left: 5px; /* Add some padding for hover effect */
}

.recent-pastes-list li:hover {
  background: #555555; /* Subtle hover background */
  cursor: pointer;
}

.recent-pastes-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-pastes-list li a {
  color: #EDBE45; /* Use theme color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.recent-pastes-list li a:hover {
  color: #d4a73a; /* Darker theme color on hover */
  text-decoration: underline;
}

.recent-pastes-list li small {
  display: block;
  color: #AAAAAA; /* Lighter grey for small text */
  font-size: 0.8em;
  margin-top: 3px;
}

.recent-pastes-list li i { /* Styling for potential icon */
  margin-right: 8px;
  color: #EDBE45;
}

.recent-pastes-list li small {
  display: block;
  color: #666666;
  font-size: 0.8em;
}
