/* ==========================================================================
   MÉTODO SALADA NO POTE - BASE STYLES & RESET
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-main);
  color: var(--color-text-body);
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-main);
  color: var(--color-text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-title);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

p {
  color: var(--color-text-body);
  font-size: 0.95rem;
}

a {
  color: var(--color-primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-800);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  font-size: 0.95rem;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text-title);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* App container */
.app-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.main-content {
  flex: 1;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
  padding-top: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .main-content {
    padding-bottom: 48px;
    padding-top: 24px;
  }
}
