* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #e0ddd8;
  background: #0e0d0b;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #181714;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  border: 1px solid #252219;
}

h1 {
  color: #e8893a;
  margin-bottom: 10px;
  font-size: 2rem;
}

h2 {
  color: #c0b8a8;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.subtitle {
  color: #8a8070;
  margin-bottom: 30px;
}

.custom-exp-input {
  margin-top: 10px;
}

.file-size-hint {
  color: #8a8070;
  display: block;
  margin-top: 5px;
}

.back-link {
  margin-top: 30px;
  text-align: center;
}

.back-link a {
  color: #e8893a;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link a:hover {
  color: #f2a255;
}

.download-btn {
  margin-top: 10px;
  text-decoration: none;
  display: inline-block;
}

.tabs {
  margin-bottom: 30px;
  border-bottom: 2px solid #252219;
}

.tabs input[type="radio"] {
  display: none;
}

.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #8a8070;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  display: inline-block;
  margin-right: 10px;
}

.tab:hover {
  color: #e8893a;
}

.tabs input[type="radio"]:checked + .tab {
  color: #e8893a;
  border-bottom-color: #e8893a;
  font-weight: 600;
}

.tab-content {
  display: none;
}

#text-tab-radio:checked ~ #text-tab {
  display: block;
}

#file-tab-radio:checked ~ #file-tab {
  display: block;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #a09888;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #302a20;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #12110e;
  color: #e0ddd8;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #e8893a;
  box-shadow: 0 0 0 3px rgba(232, 137, 58, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #554e42;
}

select option {
  background: #181714;
  color: #e0ddd8;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: monospace;
}

.btn {
  background: linear-gradient(135deg, #e8893a 0%, #c86a20 100%);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(232, 137, 58, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.alert-error {
  background: rgba(200, 50, 50, 0.12);
  color: #e06050;
  border: 1px solid rgba(200, 50, 50, 0.25);
}

.alert-success {
  background: rgba(232, 137, 58, 0.08);
  color: #e8a54a;
  border: 1px solid rgba(232, 137, 58, 0.2);
}

.secret-display {
  background: #12110e;
  border: 1px solid #302a20;
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
}

.secret-display-header {
  background: #1e1c17;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #302a20;
}

.secret-content-wrapper {
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.secret-content-wrapper pre {
  margin: 0;
  padding: 0;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #ccc8c0;
}

.secret-link {
  background: #12110e;
  border: 1px solid #302a20;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.secret-link-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.secret-link-url {
  background: #0e0d0b;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #302a20;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.9rem;
  margin: 0;
  color: #e8893a;
}

.copy-btn {
  background: #b87028;
  width: auto;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.copy-btn:hover {
  box-shadow: 0 5px 15px rgba(184, 112, 40, 0.3);
}

.copy-btn-small {
  padding: 6px 12px;
  font-size: 0.85rem;
  margin: 0;
}

.file-info {
  background: #12110e;
  border: 1px solid #302a20;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.file-info-header {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.file-details {
  margin-bottom: 16px;
}

.filename {
  font-family: monospace;
  background: #1e1c17;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #302a20;
  color: #ccc8c0;
}

.custom-exp {
  display: none;
  margin-top: 10px;
}

#exp_unit:has(option[value="custom"]:checked) ~ .custom-exp,
#file_exp_unit:has(option[value="custom"]:checked) ~ .custom-exp {
  display: block;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request button {
  opacity: 0.6;
  cursor: wait;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #252219;
  color: #554e42;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
    margin-top: 20px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    text-align: left;
  }
}
