body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.topbar {
  background-color: #333;
  color: white;
  padding: 16px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-title {
  margin: 0;
  font-size: 1.1rem;
}

.topbar-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.95rem;
}

.topbar-search {
  margin-top: 16px;
}

.topbar-filter {
  flex: 1 1 200px;
  min-width: 120px;
}

.topbar-filter label {
  display: block;
  margin-bottom: 6px;
  color: #ccc;
  font-size: 0.9rem;
}

.topbar-filter input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #555;
  background-color: #444;
  color: white;
  box-sizing: border-box;
}

.topbar-filter input::placeholder {
  color: #bbb;
}

.topbar-actions {
  display: flex;
  flex: 1 1 200px;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-actions button {
  flex: 1 1 120px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  background-color: #007bff;
}

.topbar-actions button#clear-search-btn {
  background-color: #6c757d;
}

.topbar-actions button:hover {
  opacity: 0.9;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#new-order-btn-sidebar {
  width: auto;
  margin-bottom: 0;
}

.topbar-nav-item {
  background-color: #444;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.topbar-nav-item:hover {
  background-color: #555;
}

.topbar-list {
  margin-top: 16px;
  max-height: 240px;
  overflow-y: auto;
  background-color: #222;
  border-radius: 8px;
  padding: 8px;
}

.topbar-list li,
.topbar-list div {
  list-style: none;
}

.topbar-list li {
  margin-bottom: 6px;
}

.topbar-list a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px;
  border-radius: 6px;
  background-color: #333;
}

.topbar-list a:hover {
  background-color: #555;
}

.main-content {
  padding: 20px;
  box-sizing: border-box;
}

#orders-list {
  max-height: 250px;
  overflow-y: auto;
}

#orders-list li,
#clients-sidebar-list li {
  margin-bottom: 5px;
}

#orders-list a,
#clients-sidebar-list a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 5px;
  border-radius: 4px;
}

#orders-list a:hover,
#clients-sidebar-list a:hover {
  background-color: #555;
}

#new-order-btn-sidebar {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 20px;
}

#new-order-btn-sidebar:hover {
  background-color: #0056b3;
}

#order-search {
  margin-bottom: 20px;
}

#order-search label,
#order-search input,
#order-search button {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#order-search label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #ddd;
}

#order-search input {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #444;
  color: white;
}

#order-search input::placeholder {
  color: #bbb;
}

#order-search button {
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

#search-orders-btn {
  background-color: #007bff;
}

#search-orders-btn:hover,
#clear-search-btn:hover {
  background-color: #0056b3;
}

#clear-search-btn {
  background-color: #6c757d;
}

.main-content {
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

@media (max-width: 800px) {
  .topbar-row,
  .topbar-actions,
  .topbar-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-filter {
    flex: 1 1 100%;
    min-width: auto;
  }

  .topbar-actions button,
  .topbar-nav-item {
    width: 100%;
  }
}

.section {
  display: none;
}

.section.active {
  display: block;
}

#orders-dropdown {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
}

#new-order-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 20px;
}

#new-order-btn:hover {
  background-color: #0056b3;
}

#order-details button {
  margin-right: 10px;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#order-details button:hover {
  background-color: #0056b3;
}

#order-form-container {
  margin-top: 20px;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

h1 {
  text-align: center;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

input,
textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

button {
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #45a049;
}

#clients-list {
  list-style-type: none;
  padding: 0;
}

#clients-list li {
  background-color: #f9f9f9;
  margin-bottom: 5px;
  padding: 10px;
  border-radius: 4px;
}

button:hover {
  background-color: #45a049;
}
