* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6fa;
}

/* LOGIN */

.login-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: white;
  padding: 30px;
  width: 320px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#loginError {
  color: red;
  text-align: center;
  margin-top: 10px;
}

/* APP */

.hidden {
  display: none;
}

header {
  background: #1e2a38;
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout {
  background: #ff4d4d;
  border: none;
  padding: 8px 14px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

/* CONTAINER 50:50 */

.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  width: 100%;
}

/* LEFT & RIGHT EXACT SPLIT */

.left, .right {
  flex: 0 0 50%;
  width: 50%;
  background: white;
  padding: 15px;
  border-radius: 10px;
}

/* TABLE */

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 14px;
  word-wrap: break-word;
}

th {
  background: #007bff;
  color: white;
}

/* COLUMN WIDTHS */

th:nth-child(1), td:nth-child(1) {
  width: 60px;
  text-align: center;
}

th:nth-child(3), td:nth-child(3) {
  width: 110px;
  text-align: center;
  font-weight: bold;
}

/* RIGHT SIDE */

.example {
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

textarea {
  width: 100%;
  height: 160px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
}

.send {
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  background: #28a745;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left h2 {
  margin: 0;
  display: flex;
  align-items: center;
  height: 44px;
  line-height: 1;
}

.logo {
  height: 44px;
  width: auto;
  display: block;
}

/* RESPONSIVE */

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

@media (max-width:900px) {
  .left, .right {
    width: 100%;
    flex: unset;
  }
}

