/* ===== Investment Card ===== */

/* Section Titles */
.content h2 {
  font-size: 1.75rem;
  color: var(--font-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Alerts (inherits your existing .alert styles) */
.alert {
  margin-bottom: 1.5rem;
}

/* Form Styling */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.purpose {
  grid-column: 1 / -1; /* Covers the whole column */
  grid-row: 2 / 3;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--font-color);
  font-weight: 500;
}

.form-group select,
.form-group input[type="number"] {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #dfe6f3;
  background: #f9f9fb;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
  border-color: var(--bg-sidecolor-2);
  box-shadow: 0 0 0 3px rgba(99, 89, 233, 0.15);
  outline: none;
}

/* Textarea Styling */
.form-group textarea[name="purpose"] {
  grid-column: 1 / -1; /* Covers the whole column */
  grid-row: 1 / 3;
  padding: 0.75rem 1rem;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #dfe6f3;
  background: #f9f9fb;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea[name="purpose"]:focus {
  border-color: var(--bg-sidecolor-2);
  box-shadow: 0 0 0 3px rgba(99, 89, 233, 0.15);
  outline: none;
}
/* Submit Button */
.btn11 {
  background-color: var(--bg-sidecolor-2);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  width: 100%;
  grid-column: 1 / -1; /* Covers the whole column */
  padding: 1;
  color: #ffff;
  text-align: center;
}




/* ===== Investment History Table ===== */
.loan_list table {
  width: 100%;
  border-collapse: collapse;
}

.loan_list thead {
  background: var(--bg-sidecolor-2);
}

.loan_list thead th {
  padding: 0.75rem 1rem;
  font-size: 0 nine rem;
  font-weight: 600;
  color: var(--main-color);
  text-align: left;
  white-space: nowrap;
}

.loan_list tbody tr {
  transition: background 0.2s;
}

.loan_list tbody tr:nth-child(even) {
  background: #f9fafc;
}

.loan_list tbody tr:hover {
  background: #eff2f7;
}

.loan_list tbody td {
  padding: 0.75rem 1rem;
  font-size: 0 nine rem;
  color: var(--font-color);
  border-bottom: 1px solid #e0e4eb;
  white-space: nowrap;
}

/* Status badges inside table */
.loan_listtbody span {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0 eight rem;
  font-weight: 600;
  border-radius: 6px;
}

.loan_list tbody span:contains("Matured") {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.loan_list tbody span:contains("Active") {
  background: rgba(99, 89, 233, 0.1);
  color: var(--bg-sidecolor-2);
}

.loan_list tbody span:contains("Withdrawn") {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Withdraw button in table rows */
.loan_list tbody .btn {
  padding: 0.25rem 0.75rem;
  font-size: 0 eight rem;
  border-radius: 8px;
}



 h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--font-color);
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}

.Summary ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.Summary li {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f7f9fc;
  border-radius: var(--radius-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--font-color);
  font-size: 1rem;
}

.Summary li strong {
  color: var(--bg-sidecolor-2);
  font-weight: 600;
  margin-left: 8px;
}



@media (max-width: 1084px) {
  .content {
    padding: 0rem;
    border-radius: 10px;
  }

  form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .table-responsive {
    width: 100%;
    overflow: auto;
  }

  .content table {
    width: 100%;
    .content thead th,
    .content tbody td {
      padding: 0.5rem 0.5rem;
      font-size: 0.95rem;
      white-space: nowrap;
    }
    .content tbody td {
      padding: 0.5rem 0.5rem;
      font-size: 0.95rem;
      white-space: normal;
    }

    .content h2 {
      font-size: 1.3rem;
    }
  }

  .loans-table thead th,
  .loans-table tbody td {
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;

    .loans-table tbody td {
      padding: 0.5rem 0.5rem;
      font-size: 0.95rem;
      white-space: normal;
    }

    .loans-table h2 {
      font-size: 1.3rem;
    }
  }
}
.status-overdue {
  background-color: #fff;
  color: #ff4444;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}

.status-active {
  background-color: #fff;
  color: #00c851;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}

.status-pending {
  background-color: #fff;
  color: #ffbb33;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}

.status-rejected {
  background-color: #fff;
  color: #ff4444;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}

.form-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.form-group input[type="number"] {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #dfe6f3;
  background: #f9f9fb;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.wrap {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 4rem 1.5rem 1rem 1.5rem;
  width: 100%;
}

.loan_list {
  display: flex;
  flex-direction: column;
  background: var(--main-color);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(52, 60, 106, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin: 0.5rem 1.5rem 1rem 1.5rem;
  overflow: hidden;
}

.loan_list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--bg-sidecolor-2), #7e6cf1);
}

.content {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  background: var(--main-color);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(52, 60, 106, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--bg-sidecolor-2), #7e6cf1);
}

.Summary {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  background: var(--main-color);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(52, 60, 106, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.Summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--bg-sidecolor-2), #7e6cf1);
}

.btn_sum{
  background-color: var(--bg-sidecolor-2);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  width: 100%;
  grid-column: 1 / -1; /* Covers the whole column */
  padding: 0.7rem 1.5rem;
}

.btn_sum a {
  color: var(--main-color);
  text-decoration: none;
}
@media (max-width:1248px){
  .wrap {
    width: 100%;
    flex-direction: column;
    padding: 4rem 1.5rem 0rem 1.5rem;
  }

  .content,
  .Summary {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
}

