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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: white;
  background: linear-gradient(to bottom, #1a202c, #2d3748);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  border-bottom: 1px solid #4a5568;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo i {
  color: #3182ce;
  font-size: 2rem;
}

.logo span {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Informações do usuário */
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.username {
  font-weight: 500;
  color: #e2e8f0;
}

/* Main content */
main {
  padding: 2rem 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: #3182ce;
  color: white;
}

.btn-primary:hover {
  background-color: #2c5282;
}

.btn-secondary {
  background-color: #4a5568;
  color: white;
}

.btn-secondary:hover {
  background-color: #2d3748;
}

.btn-danger {
  background-color: #e53e3e;
  color: white;
}

.btn-danger:hover {
  background-color: #c53030;
}

.btn-full {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.3);
}

.form-error {
  color: #fc8181;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  background-color: #2d3748;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Home page */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  color: #a0aec0;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature {
  background-color: #2d3748;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.feature i {
  color: #3182ce;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  color: #a0aec0;
}

.cta {
  background-color: #2d3748;
  border-radius: 0.5rem;
  padding: 2rem;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cta i {
  color: #3182ce;
  font-size: 3rem;
}

.cta-text h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: #a0aec0;
}

/* Auth forms */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
}

.auth-form {
  background-color: #2d3748;
  border-radius: 0.5rem;
  padding: 2rem;
}

.auth-form h1 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
}

.auth-form .btn {
  margin-bottom: 1rem;
}

.auth-link {
  text-align: center;
  color: #a0aec0;
}

.auth-link button {
  background: none;
  border: none;
  color: #3182ce;
  cursor: pointer;
  text-decoration: underline;
}

/* Deposits page */
.deposits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.deposits-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
}

.deposits-header-buttons {
  display: flex;
  gap: 1rem;
}

.progress-bar {
  height: 1rem;
  background-color: #4a5568;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background-color: #3182ce;
  transition: width 0.3s;
}

.deposits-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: #4a5568;
  border-radius: 0.5rem;
  padding: 1rem;
}

.stat-label {
  color: #a0aec0;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
}

.deposits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .deposits-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 768px) {
  .deposits-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

.deposit-item {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
  position: relative;
  cursor: pointer;
  border: none;
  color: white;
}

.deposit-item.marked {
  background-color: #3182ce;
}

.deposit-item.marked:hover {
  background-color: #2c5282;
}

.deposit-item.removing {
  background-color: #e53e3e;
}

.deposit-item.removing:hover {
  background-color: #c53030;
}

.deposit-item:not(.marked):not(.removing) {
  background-color: #4a5568;
}

.deposit-item:not(.marked):not(.removing):hover {
  background-color: #2d3748;
}

.deposit-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #1a202c;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.deposit-item:hover .deposit-tooltip {
  opacity: 1;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal {
  background-color: #2d3748;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem;
}

.modal h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.modal p {
  color: #a0aec0;
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.hidden {
  display: none;
}