/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  min-height: 100vh;
}

/* Main Content */
main {
  display: flex;
  justify-content: center;
  width: 100%;
}

.container {
  display: flex;
  width: 100%;
}

.main-content {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #2f3542;
  color: white;
  padding-top: 1rem;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  transition: width 0.3s;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 30px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 1rem;
  width: 100%;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar nav ul li:hover {
  background-color: #57606f;
}

.sidebar nav ul li i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: inherit;
}

/* Collapsed Sidebar */
body.collapsed .sidebar nav ul li,
body.collapsed .sidebar nav ul li a {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

body.collapsed .sidebar nav ul li .label {
  display: none;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #2f3542;
  color: white;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-logo {
  height: 32px;
  width: auto;
  max-width: 840px;
  object-fit: contain;
}

.topbar-titel {
  font-size: 1.2rem;
  font-weight: bold;
}

.topbar-rechts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dashboard */
.dashboard {
  padding: 1rem;
  margin-left: 220px;
  width: 100%;
  transition: margin-left 0.3s;
}

body.collapsed .dashboard {
  margin-left: 60px;
}

/* Login Form (opschoning) */
.login-form {
  width: 100%;
  max-width: 420px;
  margin: 5rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.login-form h2 { text-align: center; margin-bottom: 1.5rem; }

.login-form .form-group { margin-bottom: 1rem; }
.login-form .form-group label { display: block; margin-bottom: .25rem; }

/* Alle inputs behalve submit gelijk maken */
.login-form .form-group input:not([type="submit"]) {
  display: block;
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Focus-state voor betere UX */
.login-form .form-group input:not([type="submit"]):focus {
  outline: none;
  border-color: #2f3542;
  box-shadow: 0 0 0 3px rgba(47,53,66,.15);
}

/* Button */
.login-form .form-group input[type="submit"] {
  width: 100%;
  padding: .75rem;
  border: 0;
  border-radius: 4px;
  background: #2f3542;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.login-form .form-group input[type="submit"]:hover { background: #57606f; }

.login-form .links { text-align: center; margin-top: 1rem; font-size: .9rem; }
.login-form .error { color: #d00; text-align: center; margin-top: 1rem; }

/* === Dashboard extras (planning + inspectie) === */
.table-center{max-width:980px;margin:1rem auto}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono","Courier New",monospace}
.col-dag{width:56px}
.col-datum{width:84px}
.badge-ok{display:inline-block;padding:.2rem .6rem;border-radius:12px;font-size:.8rem;font-weight:600;background:#dcfce7;color:#166534}
.badge-nok{display:inline-block;padding:.2rem .6rem;border-radius:12px;font-size:.8rem;font-weight:600;background:#fee2e2;color:#991b1b}


/* === Top-left uitlijning voor dashboardtabellen === */
.table-center thead th { text-align: left !important; vertical-align: top !important; }
.table-center tbody td { vertical-align: top; }

/* optioneel, om per cel te kunnen forceren */
.va-top { vertical-align: top !important; }
.left   { text-align: left !important; }