/* ========== GLOBAL BASE ========== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #333333;
}

/* ========== LOGIN PAGE ========== */
.login-container {
  height: 100vh;
  width: 100%;
  background: url('your-background-image.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.login-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 0;
}

.login-box {
  background: white;
  padding: 32px 36px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  text-align: center;
  z-index: 1;
  width: 90%;
  max-width: 360px;
}

.login-box h1 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 26px;
  color: #080909;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

#error-message {
  color: red;
  margin-top: 10px;
  font-size: 14px;
}

/* ========== NAVBAR (for other pages) ========== */
.navbar {
  background-color: #007bff;
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left h2 {
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-links button {
  padding: 6px 12px;
  background-color: #dc3545;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 500;
}

/* ========== DASHBOARD CONTENT ========== */
.dashboard-content {
  padding: 40px 24px;
  max-width: 1000px;
  margin: auto;
}

/* ========== FORM STYLES ========== */
.form-section {
  margin: 20px 0;
}

.form-section input,
.form-section select {
  padding: 10px;
  margin: 6px 8px 6px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 200px;
  font-size: 14px;
}

.form-section button {
  padding: 10px 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

/* ========== TABLE STYLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
}

table th,
table td {
  padding: 12px 14px;
  border: 1px solid #dee2e6;
  text-align: left;
  font-size: 14px;
}

table th {
  background-color: #007bff;
  color: white;
  font-weight: 600;
}

/* ========== PRINT STYLES ========== */
@media print {
  nav, .navbar, .nav-links, .form-section, button {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  table {
    border: 1px solid black;
  }
}
