html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pushes footer down when content is short */
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

.user-info {
  margin-top: 5px;
  font-size: 14px;
}

/* html {
  height: 100%;
} */

/* main {
  flex: 1;
  padding: 30px;
} */

h2 {
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
  padding: 14px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

input[type="file"],
input[type="month"] {
  padding: 6px;
  font-size: 14px;
}

button {
  padding: 8px 16px;
  background-color: #1abc9c;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: #16a085;
}

.status {
  margin-top: 8px;
  font-weight: bold;
  font-size: 14px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #ecf0f1;
  font-size: 13px;
  color: #555;
}

/* Login Page styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 100px);
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 320px;
  text-align: center;
}

.login-box h1 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.login-box label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.login-box input[type="email"],
.login-box input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.login-box input:focus {
  border-color: #1abc9c;
  outline: none;
}

.login-box button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}

.login-box .error {
  color: red;
  margin-bottom: 15px;
}

.login-box .extra {
  margin-top: 15px;
  font-size: 13px;
}

.login-box .extra a {
  color: #1abc9c;
  text-decoration: none;
}

.login-box .extra a:hover {
  text-decoration: underline;
}

/* Modern Form Layout */
.form-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input, select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 0 2px rgba(26,188,156,0.15);
  outline: none;
}

/* Table Enhancements */
table {
  margin-top: 15px;
  border-radius: 6px;
  overflow: hidden;
}

thead {
  background: #2c3e50;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover {
  background: #f9fbfd;
}

td input {
  width: 100%;
  border: none;
  background: #fafafa;
  padding: 8px;
  border-radius: 4px;
}

td input:focus {
  background: white;
  border: 1px solid #1abc9c;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #1abc9c;
  color: white;
}

.btn-primary:hover {
  background: #16a085;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  padding: 15px 30px;
  color: white;
}

.nav-title {
  margin: 0;
  font-size: 22px;
  text-align: center;
  flex: 1;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-center {
  text-align: center;
  flex: 1;
}

.btn {
  padding: 8px 16px;
  background-color: #1abc9c;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #16a085;
}

/* Optional: make logout button stand out in red */
.logout-btn {
  background-color: #e74c3c;
}

.logout-btn:hover {
  background-color: #c0392b;
}
