/* Reset and font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: url('images/background.png') no-repeat center center fixed;
  background-size: cover;
  background-color: #000;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 2rem;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Side menu */
.side-menu {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: rgba(0, 0, 30, 0.8);
  border-radius: 8px 0 0 8px;
  transition: width 0.3s ease;
  width: 40px;
  z-index: 1000;
  overflow: hidden;
}

.side-menu:hover {
  width: 150px;
}

.side-menu a {
  display: block;
  margin: 0.5rem 0;
  color: #00e0ff;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.25rem;
}

.side-menu a::before {
  content: attr(data-icon);
  margin-right: 8px;
}

.side-menu a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  background: rgba(10, 10, 25, 0.85);
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

/* Heading */
.container h1 {
  text-align: center;
  color: #00e0ff;
  margin-bottom: 1rem;
}

/* Instructions */
.container p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Material items */
.materials-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 30, 0.5);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

.material-item input[type="number"] {
  width: 60px;
  background: #111;
  border: 1px solid #00ffff55;
  color: #0ff;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
}

.material-item label {
  flex: 1;
}

/* Button */
#checkButton,
#exportButton,
#saveButton,
#importButton {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #00e0ff;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#checkButton:hover,
#exportButton:hover,
#saveButton:hover,
#importButton:hover {
  background-color: #00c0dd;
}

/* Results */
.results {
  margin-top: 2rem;
  background: rgba(0, 10, 20, 0.7);
  border-left: 4px solid #0ff;
  padding: 1rem;
  border-radius: 8px;
  min-height: 40px;
}

.results h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #00e0ff;
}

/* Footer */
footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: #aaa;
}

footer a {
  margin: 0 0.5rem;
  color: #00e0ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}