/* === GLOBAL STYLE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: #5f8fce;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #333;
}

/* === MAIN CONTAINER === */
.container, .form-container, .dashboard-container {
  width: 90%;
  max-width: 420px;
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
}

h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #444;
  font-weight: 600;
}

.subtitle {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #555;
}

.footer-text {
  margin-top: 25px;
  font-size: 0.85rem;
  color: #777;
}

/* === BUTTONS === */
.btn {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  transition: 0.3s ease;
}

.btn:hover {
  background: #005fcc;
}

.btn-secondary {
  background: #6c757d;
}
.btn-secondary:hover {
  background: #555;
}

/* === FORM INPUT === */
input, select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

/* === DASHBOARD TABLE STYLE === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table thead {
  background: #007bff;
  color: white;
}

table th, table td {
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

table tr:nth-child(even) {
  background: #f3f8ff;
}

/* === TOP NAV BAR FOR ADMIN & STAFF === */
.topbar {
  width: 100%;
  padding: 15px;
  background: #007bff;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Page content under navbar */
.page {
  padding-top: 80px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* === RESPONSIVE === */
@media (min-width: 600px) {
  .container, .form-container {
    max-width: 300px;
    padding: 35px 30px;
  }
}

@media (min-width: 900px) {
  body {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    max-width: 700px;
    height: 460px;
  }

  .dashboard-container {
    max-width: 300px;
    margin: 0 auto;
    padding: 40px;
  }

  h1 {
    font-size: 2.8rem;
  }

  table th, table td {
    font-size: 1rem;
    padding: 12px;
  }

  .btn {
    font-size: 1.8rem;
    padding: 15px;
  }
}
