body {
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #f6f8fc 0%, #eef2f7 100%);
  color: #1a1d23;
  line-height: 1.5;
  margin: 0;
  padding: 72px 0 90px;
}

* {
  box-sizing: border-box;
}

:root {
  --app-primary: #2f7ef7;
  --app-primary-dark: #2366c7;
  --app-bg: #f6f8fc;
  --app-surface: #ffffff;
  --app-text: #1a1d23;
  --app-muted: #6b7280;
  --app-border: #d0d7e2;
  --app-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(47, 126, 247, 0.12), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--app-shadow);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.app-bar__menu {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-bar__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-bar__brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--app-text);
}

.app-bar__subtitle {
  font-size: 0.75rem;
  color: var(--app-muted);
}

.app-bar__actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.app-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
}

.app-icon-button__label {
  display: block;
  font-size: 0.7rem;
  color: var(--app-muted);
  margin-top: 4px;
  text-align: center;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  border: 2px solid var(--app-bg);
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  background-color: #0f172a;
  overflow-x: hidden;
  transition: 0.3s ease;
  padding-top: 72px;
}

.sidenav a {
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1rem;
  color: #e2e8f0;
  display: block;
  transition: background-color 0.2s ease;
}

.sidenav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidenav .closebtn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  margin-left: 50px;
  color: #e2e8f0;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.08);
  border-top: 1px solid rgba(208, 215, 226, 0.6);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.bottom-nav a {
  text-decoration: none;
  color: var(--app-muted);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}

.bottom-nav a.active {
  color: var(--app-primary);
  font-weight: 600;
}

.bottom-nav__icon {
  font-size: 1.1rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count-badge--bottom {
  top: -8px;
  right: -12px;
  border-color: #fff;
}

.area-banner {
  margin: 0 auto 16px;
  width: min(100%, 960px);
  background: var(--app-surface);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--app-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.area-banner strong {
  display: block;
  font-size: 0.95rem;
}

.area-banner span {
  color: var(--app-muted);
  font-size: 0.8rem;
}

.area-banner a {
  text-decoration: none;
  color: var(--app-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.centered {
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  width: min(100%, 480px);
}

.form-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  margin: 0 auto 20px;
  width: min(100%, 960px);
}

.form-filters label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 150px;
}

.form-filters select {
  margin-top: 5px;
  padding: 8px;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid #d0d7e2;
}

.stock-table {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.stock-table-inner {
  border-collapse: collapse;
  width: 100%;
  max-width: 1000px;
  background-color: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.stock-table-inner td {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.button_add {
  background-color: var(--app-primary);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(47, 126, 247, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button_add:hover {
  background-color: var(--app-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(47, 126, 247, 0.4);
}

.login-warning {
  color: #d9534f;
  font-weight: bold;
  font-size: 0.9rem;
}

.rodape {
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  color: #777;
  margin: 24px auto 12px;
  width: min(100%, 960px);
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid var(--app-border);
  padding: 10px 12px;
  background: #ffffff;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(47, 126, 247, 0.2);
}

@media (max-width: 600px) {
  body {
    padding-top: 68px;
  }

  .form-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .stock-table {
    padding: 12px;
  }

  .bottom-nav {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .rodape {
    margin-top: 16px;
  }
}
