/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f7fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  /* NO display:flex here! */
}

.layout {
  display: flex;
  min-height: 100vh;
  /* full viewport height, flex container */
}

.sidebar {
  width: 220px;
  background-color: #f5f5f5;
  padding: 15px;
  box-sizing: border-box;
}

.main-content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  background: white;
  overflow-y: auto;
}

/* Modal popup */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cancel-btn {
  background-color: #ccc;
  color: #333;
  margin-left: 10px;
}

/* Fix table spacing */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

.button-link {
  background-color: #1877f2;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 10px;
}

.button-link:hover {
  background-color: #145dbf;
}

form select,
form input[type="number"],
form input[type="datetime-local"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

