/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; }

/* HEADER */
.top-bar {
  background: #4a0072;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 14px;
}
.top-bar a { color: #fff; margin-left: 10px; text-decoration: none; }

/* NAVBAR */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: #fff; border-bottom: 2px solid #eee;
}
.logo { display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 10px; }
.logo h1 { color: #4a0072; font-size: 18px; }
.logo p { color: #8bc34a; font-size: 14px; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: #333; font-weight: bold; }
.nav-links a:hover { color: #4a0072; }

/* SLIDER */
.slider { position: relative; max-width: 100%; overflow: hidden; }
.slides { display: flex; transition: transform 0.6s ease-in-out; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; display: block; }
.caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff; padding: 10px 20px; border-radius: 5px;
}
.prev, .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  padding: 10px; cursor: pointer; font-size: 18px;
}
.prev { left: 10px; }
.next { right: 10px; }

/* FOOTER */
.footer {
  background: #6a1b9a; color: #fff; padding: 30px 20px;
}
.footer-container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 20px;
}
.footer-logo { height: 50px; margin-bottom: 10px; }
.footer-col h3 { margin-bottom: 10px; border-bottom: 2px solid #fff; display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.social-icons a { margin-right: 10px; font-size: 20px; }
.footer-bottom {
  border-top: 1px solid #ddd; padding-top: 10px;
  text-align: center; font-size: 14px;
}
/* Loan Buttons */
.loan-actions {
  text-align: center;
  margin: 30px 0;
}
.loan-actions button {
  margin: 10px;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s ease;
}
.btn-loan {
  background: #8bc34a;
  color: #fff;
}
.btn-loan:hover {
  background: #689f38;
}
.btn-track {
  background: #4a0072;
  color: #fff;
}
.btn-track:hover {
  background: #6a1b9a;
}
/* General styles */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f9;
  color: #333;
}

/* Login Box */
#loginBox {
  max-width: 350px;
  margin: 100px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

#loginBox h3 {
  margin-bottom: 20px;
  color: #007bff;
}

#loginBox input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#loginBox button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#loginBox button:hover {
  background: #0056b3;
}

#loginMsg {
  margin-top: 10px;
  font-size: 14px;
  color: red;
}

/* Admin Dashboard */
#adminBox {
  padding: 20px;
}

#adminBox h3 {
  margin-bottom: 20px;
  color: #28a745;
  text-align: center;
}

/* Table */
#appTable {
  overflow-x: auto;
}

#appTable table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#appTable th, #appTable td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#appTable th {
  background: #007bff;
  color: #fff;
  font-weight: bold;
}

#appTable tr:hover {
  background: #f1f1f1;
}
