@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-input: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #737373;

  --primary: #00ffaa;
  --primary-dark: #00cc88;
  --primary-light: rgba(0, 255, 170, 0.15);

  --dark: #121212;
  --gray-200: #333333;
  --gray-300: #444444;
  --gray-400: #666666;
  --gray-500: #888888;

  --danger: #ff2d55;
  --success: #00ff99;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 0 25px rgba(0, 0, 0, 0.3);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --blurred: 0 0 6px white;
}

html {
  background-color: var(--bg-dark);
  min-height: 100%;
  height: 100%;
  position: relative;
}

body::before {
  content: "";
  background-image: url("/image.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 18, 0.75);
  z-index: -1;
}

body {
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  line-height: 1.5;
  background-color: transparent;
  position: relative;
}

#root {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

#main {
  background-color: var(--bg-card);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}

.page-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.75rem;
}

.page-subtitle {
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

.input {
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  border-radius: 0;
  line-height: 1.5;
  background-color: var(--bg-input);
  padding: 0.75rem 1rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}

.input:focus,
#share-url.input {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

textarea.input {
  width: 100%;
  height: 180px;
  line-height: 1.5;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  width: 100%;
  border: none;
  background-color: var(--primary);
  color: var(--dark);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid transparent;
}

.button-icon {
  display: inline-flex;
  margin-right: 0.5rem;
}

.button:hover:not(.button:disabled) {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.button:active:not(.button:disabled) {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.button:disabled {
  background-color: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
}

.button-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.button-outline:hover:not(.button-outline:disabled) {
  background-color: var(--primary);
  color: var(--dark);
}

.overlay {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-dark);
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.active .overlay {
  visibility: visible;
  opacity: 1;
}

.active-modal .overlay {
  visibility: visible;
  opacity: 1;
}

#share-url-container {
  z-index: 200;
  padding: 2rem;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 500px;
  min-width: 300px;
  background-color: var(--bg-card);
  border-radius: 0;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  transition: var(--transition);
  visibility: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.active #share-url-container {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#share-url-container h2 {
  margin: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

#share-url-container p {
  color: var(--text-secondary);
}

.copy-success {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--success);
  color: var(--dark);
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(3px) scale(0.95);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  align-self: center;
}

.copy-success.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#file-overwrite-modal {
  z-index: 200;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 400px;
  background-color: var(--bg-card);
  border-radius: 0;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  transition: var(--transition);
  visibility: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.active-modal #file-overwrite-modal {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#file-overwrite-modal .modal-content {
  padding: 1.5rem;
}

#file-overwrite-modal h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

#file-overwrite-modal p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

#file-overwrite-modal .modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media only screen and (max-width: 580px) {
  #main {
    width: 100%;
    padding: 1.5rem;
    border-radius: 0;
  }

  #root {
    padding: 1rem 0.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.875rem;
  }

  #share-url-container {
    width: 95%;
    padding: 1.5rem;
    border-radius: 0;
  }

  .card {
    padding: 1rem;
  }

  .button {
    padding: 0.75rem 1rem;
  }
}

.file-input-container {
  margin-bottom: 1rem;
}

.file-input-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed var(--gray-300);
  border-radius: 0;
  background-color: var(--bg-input);
  cursor: pointer;
  transition: var(--transition);
}

.file-input-label:hover,
.file-input-container.drag-over .file-input-label {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.file-input {
  display: none;
}

.file-input-icon {
  margin-bottom: 0.5rem;
  color: var(--gray-400);
  font-size: 1.5rem;
}

.file-input-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: var(--bg-input);
  border-radius: 0;
  margin-bottom: 0.5rem;
  border: 1px solid var(--gray-300);
}

.file-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.remove-file-button {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.remove-file-button:hover {
  background-color: var(--danger);
  color: var(--text-primary);
}

.card {
  padding: 1.25rem;
  border-radius: 0;
  background-color: var(--bg-input);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
}

.secret-reveal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
}

.secret-reveal-text {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
}

.secret-reveal-icon {
  margin-right: 0.5rem;
}

.blurred {
  text-shadow: var(--blurred);
  color: transparent;
  transition: var(--transition);
}

.blurred.active,
#secret-content:focus {
  text-shadow: 0 0 0 white;
}

#secret-content.keep-blurred-on-focus:focus {
  text-shadow: var(--blurred);
  transition: none;
}

#secret-content:placeholder-shown,
#secret-content.keep-blurred-on-focus:focus:placeholder-shown {
  text-shadow: 0 0 0 white;
}

.position-relative {
  position: relative;
}

.download-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--bg-input);
  border-radius: 0;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid var(--gray-300);
}

.download-item:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.download-icon {
  margin-right: 0.5rem;
  color: var(--primary);
}

.alert {
  padding: 1rem;
  border-radius: 0;
  margin-bottom: 1rem;
  background-color: var(--bg-input);
  border-left: 4px solid var(--gray-400);
}

.alert-danger {
  background-color: rgba(255, 45, 85, 0.1);
  border-left-color: var(--danger);
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.label-toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.toggle-container {
  display: flex;
  align-items: center;
}

.toggle-input {
  display: none;
}

.toggle-label {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 2rem;
  user-select: none;
}

.toggle-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 0.75rem;
  background-color: var(--gray-300);
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.toggle-label::after {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-input:checked + .toggle-label::before {
  background-color: var(--primary);
}

.toggle-input:checked + .toggle-label::after {
  transform: translate(0.75rem, -50%);
}

.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
