<style>
body{font-family:Arial;margin:0;background:#f3f4f6;color:#111827}
header{background:#0f172a;color:white;padding:16px;font-size:22px;font-weight:bold}
.container{padding:16px;max-width:1100px;margin:auto}
.box{background:white;padding:16px;border-radius:12px;margin-bottom:16px;box-shadow:0 1px 4px #ccc}
input,textarea,select,button{width:100%;padding:12px;margin:6px 0;font-size:16px;box-sizing:border-box}
button{background:#2563eb;color:white;border:0;border-radius:8px;cursor:pointer;font-weight:bold}
button.green{background:#16a34a}
button.orange{background:#f59e0b;color:#111}
button.red{background:#dc2626}
table{width:100%;border-collapse:collapse;background:white}
th,td{padding:10px;border-bottom:1px solid #ddd;text-align:left}
tr{cursor:pointer}
.status{padding:4px 8px;border-radius:8px;font-weight:bold;display:inline-block}
.lager{background:#dcfce7;color:#166534}
.reparatur{background:#fee2e2;color:#991b1b}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.big{font-size:28px;font-weight:bold}
canvas{margin-top:10px;max-width:100%}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-title {
  cursor: pointer;
}

#userInfo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.user-email {
  font-weight: 600;
  color: white;
}

.logout-button {
  width: auto;
  margin: 0;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.logout-button:hover {
  background: #b91c1c;
}

@media (max-width: 650px) {
  .main-header {
    align-items: flex-start;
    flex-direction: column;
  }

  #userInfo {
    width: 100%;
    justify-content: space-between;
  }

  .user-email {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.login-page {
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
}

.login-box h1 {
  margin: 0 0 10px;
  text-align: center;
  color: #0f172a;
}

.login-description {
  margin-bottom: 24px;
  text-align: center;
  color: #64748b;
}

.login-box label {
  display: block;
  margin-top: 14px;
  font-weight: bold;
  color: #334155;
}

.login-box input {
  margin-top: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.login-box input:focus {
  outline: 2px solid #2563eb;
  border-color: #2563eb;
}

.login-box button {
  margin-top: 20px;
}

.login-box button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-error {
  min-height: 22px;
  margin-top: 12px;
  color: #dc2626;
  font-weight: bold;
  text-align: center;
}

.user-role {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f59e0b;
  color: #111827;
  font-size: 11px;
  font-weight: bold;
}

</style>


