:root {
  --accent-color: #f15a24; /* Altera esta variável para mudar a cor laranja */
  --bg-color: #2d2d2d;
  --input-bg: #e9f0ff;
  --text-color: #fff;
}

/* ======== BASE ======== */
body {
  background-color: var(--bg-color);
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* ======== LOGIN PAGE ======== */
body.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -150px; /* sobe 40px */
}

.logo {
  width: 360px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

h2 {
  margin-top: 4px !important;
  margin-bottom: 6px !important;
  line-height: 1.1 !important;
  padding: 0 !important;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 50px;
  margin-bottom: 15px;
  text-align: center;
  background-color: var(--input-bg);
  font-size: 1rem;
  outline: none;
}

.checkbox {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #ddd;
}

button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

button:hover {
  background-color: #e04f1f;
}

.forgot {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.error-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #e74c3c;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ==== MAIN DASHBOARD ==== */

/* ======== TOPO ======== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-color);
  border-bottom: 2px solid #1a1a1a;
  padding: 10px 20px;
}

.top-icon i {
  font-size: 25px;
  color: var(--accent-color);
  cursor: pointer;
  transition: 0.3s;
}

.top-icon i:hover {
  transform: scale(1.2);
  color: #ff6b36;
}

.studio-name {
  color: var(--text-color);
  font-size: 1.3rem;
  margin: 0;
  text-align: center;
  flex-grow: 1;
}

/* ======== CONTEÚDO ======== */
.dashboard {
  text-align: center;
  padding: 10px;
  margin-top: -70px; /* espaço para o topo fixo */
  margin-bottom: 20px; /* espaço para o footer */
}

.user-name {
  font-size: 1.4rem;
  margin-top: 20px;
}

.qr-container {
  margin: 20px auto;
}

.qr-code {
  width: 160px;
  height: 160px;
  border: 5px solid white;
  border-radius: 8px;
}

/* ======== BOTÕES ======== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 30px;
}

.menu-item {
  background-color: transparent;
  border: 2px solid #555;
  border-radius: 15px;
  padding: 20px 10px;
  width: 140px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.menu-item i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 10px;
  transition: 0.3s;
}

.menu-item p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.menu-item:hover {
  background-color: rgba(255,255,255,0.05);
  transform: scale(1.05);
}

.menu-item:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(241, 90, 36, 0.6));
}

/* ======== RODAPÉ ======== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  border-top: 2px solid var(--accent-color);
  padding: 10px 20px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* 👈 CORREÇÃO */
  z-index: 99;
  box-sizing: border-box;
}


.footer-left {
  display: flex;
  align-items: center;
}

.fg-logo {
  width: 45px;
  margin-right: 10px;
}

.footer-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.footer-text span {
  font-size: 0.8rem;
  color: #bbb;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

/* ======== RESPONSIVO ======== */
@media (max-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qr-code {
    width: 130px;
    height: 130px;
  }
  .studio-name {
    font-size: 1.1rem;
  }
  .user-name {
    font-size: 1.2rem;
  }
}


