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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: rgb(33, 70, 110);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  padding: 48px;
  max-width: 600px;
  width: 100%;
}

h1 {
  color: #1a1a1a;
  margin-bottom: 32px;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  color: #1a1a1a;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4a4a4a;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group .helper-text {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgb(33, 70, 110);
  box-shadow: 0 0 0 3px rgba(33, 70, 110, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

button {
  width: 100%;
  padding: 10px 16px;
  background: rgb(33, 70, 110);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

button:hover {
  background: rgb(25, 55, 87);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

button:active {
  background: rgb(20, 45, 72);
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.hidden {
  display: none !important;
}

.result {
  margin-top: 30px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.link-container {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.link-container input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
}

.link-container button {
  width: auto;
  padding: 10px 20px;
}

.warning {
  color: #991b1b;
  font-size: 13px;
  margin-top: 10px;
}

.result button {
  margin-top: 20px;
}

.recipient-list {
  background: #f9fafb;
  padding: 16px;
  border-radius: 4px;
  margin: 20px 0;
  border: 1px solid #e5e7eb;
}

.recipient-list p {
  margin-bottom: 12px;
  color: #4a4a4a;
  font-size: 14px;
}

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

.recipient-list li {
  padding: 8px 12px;
  background: #ffffff;
  margin: 6px 0;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  color: #1a1a1a;
  font-size: 14px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
}

.error {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 20px;
  border-left: 3px solid #dc2626;
  font-size: 14px;
}

/* Error notification styling */
.error-notification {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(238, 90, 111, 0.3);
  animation: slideDown 0.3s ease-out;
}

.error-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.error-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.error-message {
  flex: 1;
  font-weight: 500;
  line-height: 1.5;
}

.error-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.error-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.secret-box {
  background: #f9fafb;
  padding: 16px;
  border-radius: 4px;
  margin: 16px 0;
  border: 1px solid #e5e7eb;
}

.secret-box pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.6;
}

.message-box {
  background: #f9fafb;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

#attachmentsList {
  margin-top: 20px;
}

#attachmentsList ul {
  list-style: none;
  padding: 0;
}

#attachmentsList li {
  padding: 12px;
  background: #f9fafb;
  margin: 6px 0;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

#attachmentsList li:hover {
  background: #f3f4f6;
}

#attachmentsList a {
  color: rgb(33, 70, 110);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

#attachmentsList a:hover {
  color: rgb(25, 55, 87);
}

.cf-turnstile {
  margin: 20px 0;
}

#passwordPrompt,
#captchaPrompt {
  text-align: center;
}

#passwordPrompt p,
#captchaPrompt p {
  margin: 16px 0 24px;
  color: #6b7280;
  font-size: 14px;
}

#passwordPrompt input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  margin: 20px 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

#passwordPrompt input[type="password"]:focus {
  outline: none;
  border-color: rgb(33, 70, 110);
  box-shadow: 0 0 0 3px rgba(33, 70, 110, 0.1);
}

#passwordPrompt button,
#captchaPrompt button {
  margin-top: 20px;
}

/* Secret View Section Styling */
.section-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.views-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-weight: 500;
}


#messageSection {
  margin-bottom: 24px;
}

#secretSection {
  margin-bottom: 24px;
}

#messageText {
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #1a1a1a;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
}

#secretText {
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #1a1a1a;
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 0;
  transition: filter 0.15s ease;
  max-height: 300px;
  overflow-y: auto;
}

#secretText.blurred {
  filter: blur(8px);
  user-select: none;
  cursor: pointer;
  overflow: hidden;
}

.button-group {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #ffffff;
  color: rgb(33, 70, 110);
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.action-btn:hover {
  background: #f9fafb;
  border-color: rgb(33, 70, 110);
  color: rgb(25, 55, 87);
}

.action-btn:active {
  background: #f3f4f6;
}

.action-btn svg {
  display: block;
}

.action-btn.success {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.action-btn.success:hover {
  background: #059669;
  border-color: #059669;
}

/* Custom scrollbar styling */
#messageText::-webkit-scrollbar,
#secretText::-webkit-scrollbar,
.message-box::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#messageText::-webkit-scrollbar-track,
#secretText::-webkit-scrollbar-track,
.message-box::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

#messageText::-webkit-scrollbar-thumb,
#secretText::-webkit-scrollbar-thumb,
.message-box::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

#messageText::-webkit-scrollbar-thumb:hover,
#secretText::-webkit-scrollbar-thumb:hover,
.message-box::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  
  h1 {
    font-size: 1.5em;
  }
}
