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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

.site-header {
  position:fixed;
  border-radius: 20px;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1001;
  box-shadow:
    rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px,
    rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px,
    rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

nav {
  font-size: 12px;
  position: fixed;
  top: 0;
  right: -60%;
  width: 60%;
  height: 100vh;
  background-color: #fff;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
  padding: 60px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 2s ease;
  z-index: 1001;
}

nav.active {
  right: 0;
}

nav a {
  margin-left: 0;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #3b82f6;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

.container {
  display: flex;
  justify-content: space-between;
  padding: 60px 40px;
  flex-wrap: wrap;
}

.left-content {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.left-content h1 {
  font-size: 38px;
  margin-bottom: 20px;
}

.left-content .tag {
  display: inline-block;
  background-color: #e0e7ff;
  color: #3b82f6;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 10px;
}

.buttons {
  margin-top: 20px;
}

.buttons a {
  text-decoration: none;
}

.buttons button {
  padding: 10px 20px;
  margin-right: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.track-btn {
  background-color: #3b82f6;
  color: white;
}

.track-btn:hover {
  background-color: #2563eb;
}

.login-btn {
  background-color: #f1f1f1;
  color: #333;
}

.login-btn:hover {
  background-color: #ddd;
}

.features {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.feature-box {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  min-width: 220px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feature-box h3 {
  margin-top: 10px;
  font-size: 16px;
}

.feature-box p {
  font-size: 14px;
  color: #666;
}

.right-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.site-footer {
  padding: 20px 40px;
  background-color: #fafafa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.site-footer a {
  margin-right: 20px;
  color: #666;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 701px) {
  nav {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
    left: 0;
  }

  nav a {
    margin-left: 20px;
    font-size: 14px;
  }

  .menu-icon {
    display: none;
  }
}

@media (max-width: 700px) {
  .menu-icon {
    display: block;
  }

  .container {
    padding: 40px 20px;
  }

  .right-content {
    margin-top: 30px;
  }

  .features {
    flex-direction: column;
  }
}


.login-page {
  max-width: 500px;
}

.login-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #111;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
  border-color: #3b82f6;
  outline: none;
}

.forgot-password {
  margin-top: 15px;
}

.forgot-password a {
  font-size: 14px;
  color: #3b82f6;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}


.login-page .login-form {
  margin-top: 20px;
}

.login-page .form-group {
  margin-bottom: 15px;
}

.login-page label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.login-page input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.message {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 500;
}

.track-container {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto 40px;
}

.track-container h1 {
  color: #3b82f6;
  margin-bottom: 20px;
  font-size: 28px;
}

.track-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.track-form input[type="text"] {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.track-form input[type="text"]:focus {
  border-color: #3b82f6;
}

.track-form button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.track-form button:hover {
  background-color: #2563eb;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
  user-select: none;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
}

.loading {
  color: #3b82f6;
  font-weight: bold;
}

.attendance-container {
  background-color: #fafafa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attendance-container h1 {
  color: #3b82f6;
  margin-bottom: 20px;
  font-size: 28px;
}

#attendanceForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#attendanceForm input[type="date"] {
  padding: 8px;
  margin-bottom: 20px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  width: 100%;
  max-width: 300px;
}

#attendanceTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#attendanceTable th, #attendanceTable td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

#attendanceTable th {
  background-color: #e0e7ff;
  color: #3b82f6;
}

#attendanceTable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#attendanceForm button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#attendanceForm button:hover {
  background-color: #2563eb;
}
