/*-------------- slider styling ----------------*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
input[type="number"] {
  width: 80px;
  padding: 4px 5px;
  border: 1px solid #bbb;
  border-radius: 3px;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  background: #c8c8c8;
  border-radius: 5px;
  background-image: linear-gradient(#ff4500, #ff4500);
  background-repeat: no-repeat;
  margin: 15px 0px 10px 0;
  cursor: pointer;
}

/* Input Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #ff4500;
  cursor: pointer;
  box-shadow: 0 0 2px 0 #555;
  transition: all .3s ease-in-out;
}

input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #ff4500;
  cursor: pointer;
  box-shadow: 0 0 2px 0 #555;
  transition: all .3s ease-in-out;
}

input[type="range"]::-ms-thumb {
  -webkit-appearance: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #ff4500;
  cursor: pointer;
  box-shadow: 0 0 2px 0 #555;
  transition: all .3s ease-in-out;
}

/* input[type="range"]::-webkit-slider-thumb:hover {
  background: #ff0200;
}*/

input[type="range"]::-moz-range-thumb:hover {
  background: #ff0200;
}
input[type="range"]::-ms-thumb:hover {
  background: #ff0200;
}

/* Input Track */
input[type=range]::-webkit-slider-runnable-track  {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

input[type=range]::-moz-range-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

input[type="range"]::-ms-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent
}

/* Style for the compounding frequency dropdown */
#ciCompounding {
  background-color: white;
  color: black;
  border: 1px solid #464646;
  border-radius: 4px;
  padding: 6px 30px 6px 10px;
  background-position: right 8px center;
  background-size: 12px;
  line-height: 40px;
}

/* Optional: remove outline on focus, add subtle shadow */
#ciCompounding:focus {
  outline: none;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}


/*-------------- slider styling ----------------*/
/* custom slider styling */
.page-area{
  background: white;
}

.calculator h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
} 
.calulator-wrapper span {
  font-size: 16px;
  color: #6b6b6b;
  font-weight: 300;
}
.calulator-wrapper #loanAmountRange {
  background-size: 10% 100%;
}
.calulator-wrapper #interestRange {
  background-size: 20% 100%;
}
.calulator-wrapper #tenureRange {
  background-size: 16.6% 100%;
}
.calulator-wrapper input[type=number]{
  background-color: #fff;
    border-radius: 5px;
    width: 120px;
    border: 1px solid #464646;
    font-size: 17px;
    font-weight: 400;
    color: #111;
    text-align: end;
  padding: 6px 6px
}
.calulator-wrapper .range-number p {
  margin-right: 5px
}

@media (max-width: 767px) {
    .calculator h2 {
        font-size: 20px;
        margin-bottom: 1.5rem;
    } 
    .calculator input[type=number] {
        height: 45px;
    }
}


/* custom slider styling */
/* pie chart styling */
.piechart-wrapper {
  margin-top: 20px;
}
.piechart canvas {
  background-color: #063232;
}
.piechart {
  background-color: #063232;
  padding: 20px 0 60px 0;
  border-radius: 20px
}

/* details section --------------------------------- */
.details-section {
    margin-top: 5rem;
    padding: 1rem;
}

.details-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Container for the details section */
.details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

/* Styles for each individual card */
.details-card {
    background-color: #003333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 220px;  /* Minimum width for each card */
}

.details-card p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.details-card bold {
    font-size: 1.2rem;
    color: #fff;
}

/* Responsive Layout */
@media (max-width: 1199px) {
    /* For medium screens (tablets and small desktops), show 2 items per row */
    .details-card {
        flex: 0 0 48%; /* Each card takes up 48% of the row */
    }
}

@media (max-width: 767px) {
    /* For small screens (phones), show 1 item per row */
    .details-card {
        flex: 0 0 100%; /* Each card takes up 100% of the row */
    }
}


/* table styling --------------------------------- */
.details-table {
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.details-table thead {
  background-color: #063232;
    color: #fff;
  font-size: 17px;
  font-weight: 400;
}
.details-table thead th {
  padding: 10px 10px
}
.details-table table {
  border-radius: 15px;
    border-collapse: collapse;
    overflow: hidden;
}
.details-table tbody td {
  padding: 10px 10px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}
.details-table tbody {
  background-color: #fff
  text-align: center;
}
.details-table tbody tr {
  border-bottom: 1px solid #e6e6e6;
}
#showMoreBtn {
  background-color: #063232;
  border-color: #063232;
  border-radius: 15px;
  margin: auto;
  padding: 20px;
}