* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #edf1f7;
  color: #172033;
}

.login {
  max-width: 420px;
  margin: 90px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.login input,
.login button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
}

.error {
  margin-top: 12px;
  color: #b00020;
}

.app {
  display: none;
  min-height: 100vh;
}

.topbar {
  height: 52px;
  background: #172033;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.brand {
  font-weight: bold;
}

.layout {
  display: flex;
  min-height: calc(100vh - 52px);
}

.sidebar {
  width: 220px;
  background: #ffffff;
  padding: 16px;
  border-right: 1px solid #d9dee8;
}

.sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  text-align: left;
}

.main {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid #d9dee8;
  text-align: left;
}

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.toolbar input,
.toolbar select,
.toolbar button {
  padding: 8px;
}

@media (max-width: 800px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .sidebar button {
    min-width: 120px;
  }
}
