:root {
  --primary: #ff5000;
  --dark: #121212;
  --light: #f4f4f4;
  --card: #1e1e1e;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}
.container {
  width: 100%;
  max-width: 500px;
  background: var(--card);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
}
h1 {
  color: var(--primary);
  margin-bottom: 20px;
}
.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #2a2a2a;
  color: white;
}
input[type="file"] {
  padding: 9px 12px;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-right: 12px;
  transition: opacity 0.2s;
}
input[type="file"]::file-selector-button:hover {
  opacity: 0.8;
}
button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#preview {
  margin-top: 20px;
  display: none;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.thumb {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.actions {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}
.loading {
  display: none;
  margin: 15px 0;
  color: #aaa;
}
/* Overlay de Loading */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 80, 0, 0.3);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#overlay p {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Modal de Sucesso */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
.modal-content {
  background: var(--card);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
  max-width: 300px;
  width: 90%;
  border: 1px solid var(--primary);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-icon {
  font-size: 40px;
  color: #4caf50;
  margin-bottom: 15px;
}
.modal-btn {
  margin-top: 20px;
  width: 100%;
}
/* Scrollbar mínima e discreta */
::-webkit-scrollbar {
  width: 1px;
  height: 1px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: #121212;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #121212 #121212;
}
