/* ==================================================
   GLOBAL RESET & BASE
================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f0f2f5;
}

/* ==================================================
   HEADER (NO BORDER LINE)
================================================== */
.header {
  width: 100%;
  background: #f0f2f5; /* Same as footer */
  padding: 15px 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.header-sessionName{
    position: absolute;
    top: 10px;      /* distance from top */
    right: 20px;   
}
.header-styles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-styles img {
  width: 120px;
}

.header-styles h1 {
  margin: 0;
  font-size: 26px;
}

.header-styles h2 {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* ==================================================
   NAV BAR
================================================== */
.nav-bar {
  background: #f0f2f5;
}

.nav-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.nav-bar ul li a {
  text-decoration: none;
  padding: 8px 14px;
  font-weight: 600;
  color: #333;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-bar ul li a:hover {
  background: #007bff;
  color: #ffffff;
}

.nav-bar ul li a.active {
  background: #0056b3;
  color: #ffffff;
}

/* ==================================================
   PAGE SECTION
================================================== */
section {
  min-height: calc(100vh - 220px);
  padding: 20px;
}

/* ==================================================
   LOGIN SECTION
================================================== */
.login-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  background: #f0f2f5;
  padding: 40px 20px;
}

.login-container {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  width: 100%;
}

.login-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.login-image img {
  width: 80%;
  max-width: 300px;
}

/* Login Form */
.login-form {
  flex: 1;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.login-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-form h1 {
  margin-bottom: 25px;
  color: #007bff;
  font-size: 28px;
}

.login-form .input {
  margin-bottom: 20px;
}

.login-form .input label {
  font-weight: 600;
  font-size: 14px;
}

.login-form .input input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.login-form input[type="submit"] {
  width: 100%;
  padding: 14px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.login-form input[type="submit"]:hover {
  background: #0056b3;
}

/* ==================================================
   ADMIN OPTIONS
================================================== */
.admin_options {
  width: 90%;
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.option {
  width: 280px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}

.option:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.option a {
  text-decoration: none;
  color: #333;
  display: block;
}

.option img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.option .btn {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  border-radius: 25px;
  border: none;
  background: #007bff;
  color: white;
  font-weight: 600;
}

.option:hover .btn {
  background: #0056b3;
}

.details {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* ==================================================
   TABLES
================================================== */
#myItems {
  width: 100%;
  border-collapse: collapse;
}

#myItems th,
#myItems td {
  border: 1px solid #ddd;
  padding: 8px;
}

#myItems th {
  background-color: #04AA6D;
  color: white;
}

/* ==================================================
   UPDATE PASSWORD
================================================== */
.update_password {
  width: 40%;
  margin: auto;
  padding: 20px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==================================================
   FOOTER
================================================== */
.footer {
  background: #f0f2f5;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #555;
}

.footer-link {
  color: #007bff;
  text-decoration: none;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 768px) {
  .header {
    justify-content: center;
    gap: 15px;
  }

  .nav-bar ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .login-container {
    flex-direction: column;
  }

  .update_password {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .nav-bar ul {
    flex-direction: column;
    gap: 10px;
  }

  .update_password {
    width: 95%;
  }
}
