/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: #000000;
}

p {
  color: #666666;
  line-height: 1.6;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.link {
  color: #666666;
  transition: color 0.2s ease;
}

.link:hover {
  color: #000000;
}

.font-medium {
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 110px;
}


.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-primary:hover:not(:disabled) {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-secondary {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  border-color: #d1d5db;
}

.btn-outline:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: rgb(86, 86, 86);
}

.btn-ghost {
  background-color: transparent;
  color: #666666;
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  color: #000000;
  background-color: #f9fafb;
}

.btn-large {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.btn .icon {
  width: 1rem;
  height: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: #000000;
  color: #ffffff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.logo-icon.small {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #000000;
}

/* Cards */
.card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #666666;
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  display: block;           /* força ocupar a linha toda */
  margin-bottom: 6px;       /* espaço entre label e input */
  font-size: 0.875rem;      /* 14px */
  font-weight: 500;
  color: #374151;           /* cinza escuro */
}


.input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.input-group {
  position: relative;
}

.input-button {
  position: absolute;
  right: 0.5rem;            /* afastado da borda */
  top: 50%;                 /* centraliza verticalmente */
  transform: translateY(-50%);
  height: auto;             /* deixa o botão só do tamanho do conteúdo */
  padding: 0 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666666;
  display: flex;            /* centraliza ícone dentro */
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.input-button:hover {
  color: #000;              /* preto ao passar o mouse */
}


.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox {
  width: 1rem;
  height: 1rem;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #374151;
}

/* Alerts */
.alert {
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

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

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .btn-large {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }
}
