.timestamp-converter {
  max-width: 800px;
  margin: 1rem auto;
  padding: 2rem;
  margin-top: -1rem;
  border-radius: 0px;
  background-color: var(--bg-secondary);
}

body.dark .timestamp-converter {
  background-color: var(--bg-secondary-dark);
}

.timestamp-converter h1 {
  font-size: 1.75rem;
  font-weight: 100;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

body.dark .timestamp-converter h1 {
  color: var(--accent-dark);
}

.timestamp-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.timestamp-option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.timestamp-option label {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

body.dark .timestamp-option label {
  color: var(--text-primary-dark);
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  width: 100%;
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

body.dark .custom-select {
  color: var(--text-primary-dark);
  border: 1px solid var(--border-dark);
}

.custom-select-arrow {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

body.dark .custom-select-arrow {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.custom-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  padding: 0.5rem;
}

body.dark .custom-select option {
  background: var(--bg-primary-dark);
  color: var(--text-primary-dark);
}

.timestamp-option input[type="number"],
.timestamp-option input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: none;
  transition: border-color 0.2s ease;
}

body.dark .timestamp-option input[type="number"],
body.dark .timestamp-option input[type="text"] {
  color: var(--text-primary-dark);
  border: 1px solid var(--border-dark);
}

.timestamp-option input[type="number"]::placeholder,
.timestamp-option input[type="text"]::placeholder {
  color: var(--text-secondary);
}

body.dark .timestamp-option input[type="number"]::placeholder,
body.dark .timestamp-option input[type="text"]::placeholder {
  color: var(--text-secondary-dark);
}

.timestamp-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.timestamp-buttons .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 100;
  border-radius: 20px;
  cursor: pointer;
  min-width: 120px;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.timestamp-buttons .btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
}

body.dark .timestamp-buttons .btn-primary {
  background-color: var(--accent-dark);
}

.timestamp-buttons .btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: none;
}

body.dark .timestamp-buttons .btn-secondary {
  color: var(--text-primary-dark);
  border: 1px solid var(--border-dark);
}

#resultContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: fit-content;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
}

body.dark #resultContainer {
  border: 1px solid var(--border-dark);
  background: transparent;
}

#resultOutput {
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  word-break: break-all;
  text-align: left;
  flex-grow: 1;
  white-space: pre-wrap;
}

body.dark #resultOutput {
  color: var(--text-primary-dark);
}
