
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(135deg, #306cce, #06b6d4);
  color: white;
}

h1 {
  font-size: 3em;
  margin-bottom: 15px;
}

p {
  font-size: 1.2em;
  color: #f1f1f1;
}

.btn {
  margin-top: 25px;
  display: inline-block;
  background-color: #fbbf24;
  color: #1f2937;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background-color: #f59e0b;
  transform: scale(1.05);
}

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 50px 20px;
  background-color: #fff;
}

.feature {
  width: 280px;
  padding: 25px;
  background-color: #2C3E50;
  border-radius: 12px;
  border: 2px solid #fefeff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature h2 {
  margin-bottom: 10px;
  font-size: 1.4em;
  color: #f0f0f0;
}

.feature p {
  color: #bcbfcc;
  font-size: 1em;
}
.form-section {
  max-width: 600px;
  margin: 40px auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin: 15px 0 5px;
  font-weight: 600;
}

form input,
form select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: #f9fafb;
  transition: border 0.3s;
}

form input:focus,
form select:focus {
  border-color: #3b82f6;
  outline: none;
}
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2C3E50;
  padding: 15px 30px;
  color: white;
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s;
}
#profileBtn:hover {
  background-color: #1ABC9C; 
  color: white;              
}

.nav-links a:hover {
  background-color: #1ABC9C;
  color: white; 
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

#profileBtn {
  padding: 8px 14px;
  position: relative;
  bottom: 5px;
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;
  background-color: #2C3E50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 1;
}

.dropdown-content a {
  color: #2C3E50;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #1ABC9C; 
  color: white;           
}

#logocl {
  cursor: pointer;
}


.back-btn {
  display: inline-block;
  margin: 20px 30px;
  color: #2C3E50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-btn:hover {
  color: #1ABC9C;
}
/* Auth Switch Links */
.switch-auth {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95em;
  color: #555;
}

.switch-auth a {
  color: #1ABC9C;
  font-weight: 600;
  text-decoration: none;
}

.switch-auth a:hover {
  text-decoration: underline;
}


.nav-links a.active {
  background-color: #1ABC9C;
  border-radius: 8px;
}

.dashboard {
  padding: 40px 60px;
  background-color: #F4F6F8;
}

.dashboard h2 {
  color: #2C3E50;
  font-size: 2em;
  margin-bottom: 30px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  width: 200px;
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #2C3E50;
  margin-bottom: 10px;
}

.card p {
  color: #7F8C8D;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.card .btn {
  padding: 10px 18px;
  background-color: #1ABC9C;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.card .btn:hover {
  background-color: #16A085;
}


.status {
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: bold;
  color: white;
}

.status.approved {
  background-color: #27AE60;
}

.status.pending {
  background-color: #F39C12;
}

.status.rejected {
  background-color: #E74C3C;
}
.profile-section {
  padding: 60px;
  max-width: 500px;
  margin: auto;
  background-color: #FDFEFE;
}

.profile-section h2 {
  text-align: center;
  color: #2C3E50;
  margin-bottom: 30px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-form label {
  font-weight: bold;
  color: #34495E;
}

.profile-form input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.profile-form .btn {
  margin-top: 20px;
  padding: 12px;
  background-color: #1ABC9C;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.profile-form .btn:hover {
  background-color: #16A085;
}
.eligibility-section {
  padding: 60px;
  max-width: 500px;
  margin: auto;
  background-color: #FAFAFA;
}

.eligibility-section h2 {
  text-align: center;
  color: #2C3E50;
  margin-bottom: 30px;
}

.eligibility-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.eligibility-form label {
  font-weight: bold;
  color: #34495E;
}

.eligibility-form input,
.eligibility-form select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.eligibility-form .btn {
  margin-top: 20px;
  padding: 12px;
  background-color: #1ABC9C;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.eligibility-form .btn:hover {
  background-color: #16A085;
}

.result-box {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
  text-align: center;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.result-box.success {
  background-color: #D1F2EB;
  color: #1E8449;
  border: 1px solid #1E8449;
}

.result-box.failure {
  background-color: #FDEDEC;
  color: #C0392B;
  border: 1px solid #C0392B;
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  background: white;
  color: #1f2937;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.popup-box p{
  color: #1f2937;
}
#applyPopup .btn {
  margin-top: 20px;
}
.summary-cards {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: space-around;
  flex-wrap: wrap;
}

.card {
  background-color: #f1fdf9;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  width: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 5px solid #1abc9c;
}

.card h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #16a085;
}

.card p {
  color: #7f8c8d;
  margin-top: 10px;
}

.loan-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.loan-table th,
.loan-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

.loan-table th {
  background-color: #eafaf1;
  color: #2c3e50;
}


#lenderFields {
  display: none; 
  margin-top: 20px;
  background-color: #f9fafb;
  padding: 20px;
  border-radius: 10px;
  border: 1px dashed #d1d5db;
}

#lenderFields label {
  font-weight: 600;
  margin: 15px 0 5px;
  color: #2C3E50;
}

#lenderFields input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background-color: #fff;
  transition: border 0.3s;
}

#lenderFields input[type="number"]:focus {
  border-color: #1ABC9C;
  outline: none;
}

.lender-divider {
  margin: 30px 0 10px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: #888;
  font-size: 0.95em;
}
