* {
  box-sizing: border-box;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-align: left;
}

.step-search {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #bbb;
  border-radius: 8px;
  font-size: 1.05rem;
  margin-bottom: 18px;
  background: #fafbfc;
  outline: none;
  transition: border 0.2s;
}

.step-search:focus {
  border: 1.5px solid #1976d2;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.step-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px #0001;
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #222;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
  text-align: center;
  font-weight: 700;
}

.step-card b {
  padding: 8px;
  display: block;
  margin-bottom: 8px;
}

.step-card:hover,
.step-card:focus {
  background: #e3f0fd;
  box-shadow: 0 4px 16px #1976d233;
}

img {
  max-width: 100%;
}

.step-card img {
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.step-empty {
  grid-column: 1/-1;
  color: #888;
  text-align: center;
  font-size: 1.1rem;
  padding: 24px 0;
}

@media (max-width: 600px) {
  .step-grid {
    gap: 10px;
  }
}

.multi-filter-group select {
  padding: 10px 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafbfc;
  color: #222;
  outline: none;
  transition: border 0.2s;
  margin-right: 6px;
}

.multi-filter-group select:focus {
  border: 1.5px solid #1976d2;
  background: #fff;
}

.multi-filter-group option {
  background: #fff;
  color: #222;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #222;
}

.main-container,
.admin-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 8px 32px 8px;
}

.main-header,
.admin-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1976d2;
  color: #fff;
  padding: 16px 8px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 8px #0001;
  margin-bottom: 16px;
}

.main-header .material-icons,
.admin-header .material-icons {
  font-size: 2.2rem;
}

.dynamic-filters-container {
  padding: 12px;
  border: 1px solid #bbb;
  width: 100%;
  border-radius: 8px;
  background: #fafbfc;
}

.multi-filter-group {
  padding: 10px;
  margin-top: 8px;
  background: #eee;
  border-radius: 10px;
}

.multi-filter-group label {
  display: block;
  margin-bottom: 6px;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

main {
  width: 100%;
}

.admin-section,
.main-form,
#items-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px #0001;
  margin-bottom: 18px;
  padding: 16px 12px;
}

.admin-form,
.main-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-form input,
.main-form select,
.main-form input {
  flex: 1 1 120px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.admin-form input:focus,
.main-form select:focus,
.main-form input:focus {
  border: 1.5px solid #1976d2;
}

.btn-primary,
.btn-success {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 15px 25px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #1565c0;
}

.btn-success {
  background: #43a047;
}

.btn-success:hover {
  background: #388e3c;
}

.admin-list,
.main-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li,
.main-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.admin-list li:last-child,
.main-list li:last-child {
  border-bottom: none;
}

.admin-list button,
.main-list button {
  background: none;
  border: none;
  color: #d32f2f;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 8px;
}

.admin-list button:hover,
.main-list button:hover {
  color: #b71c1c;
}

#save-status {
  margin-left: 12px;
  font-size: 0.95rem;
  color: #388e3c;
}

@media (max-width: 600px) {

  .main-container,
  .admin-container {
    max-width: 100vw;
    padding: 0 2vw 32px 2vw;
  }

  .main-header,
  .admin-header {
    padding: 12px 2vw;
    font-size: 1.1rem;
  }

  .admin-section,
  .main-form,
  #items-section {
    padding: 10px 4px;
  }
}