:root {
  --primary: #2a4365;
  --secondary: #4299e1;
  --light: #ebf8ff;
  --dark: #1a365d;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #e53e3e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f0f4f8;
  color: #2d3748;
  line-height: 1.6;
}

/* LOGIN */
#login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--light);
}

#loginForm {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  width: 350px;
}

#loginForm h2 {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 26px;
  font-weight: bold;
}

#loginForm input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

#loginForm button {
  width: 100%;
  padding: 12px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#loginForm button:hover {
  background: var(--primary);
}

.error-msg {
  color: var(--danger);
  font-size: 14px;
  margin-top: 10px;
}

/* DASHBOARD */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: none;
}

.container.active {
  display: block;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 30px;
}

.logo h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.logo h1 span {
  color: var(--secondary);
}

/* Botão de logout */
.admin-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-btn {
  background: var(--danger);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logout-btn:hover {
  background: #c53030;
}

.username {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Seções */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 22px;
  color: var(--primary);
  font-weight: 600;
}

.section-header h2 i {
  margin-right: 10px;
  color: var(--secondary);
}

/* Busca */
.search-box {
  position: relative;
  width: 250px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 35px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
}

/* Cards de loja */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.store-card, .armacao-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Armações */
.armacao-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.armacao-card h3 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 8px;
}

.armacao-card p {
  color: #718096;
  font-size: 14px;
  margin: 3px 0;
}

.btn-voltar {
  background: var(--light);
  color: var(--primary);
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-voltar:hover {
  background: #e2e8f0;
}

/* Filtros */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
}

.filters select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  width: 180px;
}

footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  color: #718096;
  font-size: 14px;
}
