/* Основен стил с черно/сиво/синьо */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #eee;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  width: 95vw;
  max-width: 1100px;
  min-height: 80vh;
  background: #222;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  box-sizing: border-box;
}

.sidebar {
  width: 220px;
  background-color: #1a1a1a;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.sidebar h3 {
  margin-top: 0;
  color: #4e94ff;
}

.sidebar button {
  margin: 0.3rem 0;
  padding: 0.7rem;
  background: #334a90;
  border: none;
  border-radius: 4px;
  color: #eee;
  cursor: pointer;
  font-weight: bold;
  text-align: left;
}

.sidebar button:hover {
  background: #2b3b7a;
}

.main {
  flex-grow: 1;
  background: #1f1f1f;
  border-radius: 6px;
  padding: 1rem;
  overflow-y: auto;
  max-height: 80vh;
}

input, select, textarea {
  width: 100%;
  padding: 0.5rem;
  margin: 0.3rem 0 0.8rem 0;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  background-color: #333;
  color: #eee;
}

button.primary {
  background-color: #4e94ff;
  border: none;
  padding: 0.7rem 1rem;
  font-weight: bold;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  margin-top: 1rem;
}

button.primary:hover {
  background-color: #3b6bcc;
}

.error {
  color: #ff6f6f;
  margin-bottom: 1rem;
}

h2, h3 {
  color: #4e94ff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
}

th, td {
  padding: 0.5rem;
  border: 1px solid #444;
}

th {
  background-color: #333;
  text-align: left;
}

@media (max-width: 900px) {
  #app {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar button {
    flex: 1 0 auto;
    margin: 0 0.3rem 0 0;
    text-align: center;
  }
  .main {
    max-height: none;
  }
}











