/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #0057b8;
  color: white;
  padding: 1rem;
}

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

header nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
}

header nav a:hover {
  text-decoration: underline;
}

/* Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  gap: 1rem;
  padding: 1rem;
}

.sidebar {
  background-color: white;
  border-right: 1px solid #ddd;
  padding: 1rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar a {
  display: block;
  padding: 0.5rem 0;
  color: #0057b8;
  text-decoration: none;
}

.sidebar a:hover {
  color: #ffa500;
}

.content {
  background-color: white;
  padding: 1rem;
  border: 1px solid #ddd;
}

button {
  background-color: #0057b8;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #ffa500;
}

.info-panel {
  background-color: white;
  border-left: 1px solid #ddd;
  padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .info-panel {
    border: none;
    margin-top: 1rem;
  }
}

/* Modal Base */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Hide by default */
.hidden {
  display: none;
}

/* Modal Content */
.modal-content {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Form Styling */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

form input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form button {
  margin-top: 1rem;
  background-color: #0057b8;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #ffa500;
}

.checkbox {
  display: inline;
  width: auto;
  margin-left: 1rem;
  font-weight: normal;
}

textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;

  font-size: 1rem;
  line-height: 1.6;
  font-family: system-ui, sans-serif;

  background: #fff;
  color: #222;

  border: 1px solid #d0d0d0;
  border-radius: 8px;

  resize: vertical;
  box-sizing: border-box;

  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea:hover {
  background: #fdfdfd;
}

textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  outline: none;
}

select {
  width: 100%;
  padding: 10px 12px;

  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background-color: #fafafa;

  border: 1px solid #ccc;
  border-radius: 6px;

  box-sizing: border-box;
  cursor: pointer;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
  outline: none;
}

select:hover {
  background-color: #f5f5f5;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

.close-btn:hover {
  color: #ffa500;
}

/* Table Container */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Table Header */
.content th {
  background-color: #0057b8;
  color: white;
  text-align: left;
  padding: 0.75rem;
  font-weight: 600;
}

/* Table Rows */
.content td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

/* Zebra Striping */
.content tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover Effect */
.content tr:hover {
  background-color: #f0f8ff;
}

/* Responsive Wrapping */
@media (max-width: 768px) {
  .content table {
    font-size: 0.9rem;
  }

  .content th,
  .content td {
    padding: 0.5rem;
  }
}

#loginError {
  color: red;
  display: none;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: #ffa500;
}

hr {
  border: none;
  border-top: 1px solid #ccc; /* lighter gray */
  margin: 1rem;
}