﻿body {
     font-family: 'Merriweather', serif; /* 👈 change font name here */
    background-color:  #add8e64a; /* Soft warm background */
    margin: 0;
    padding: 0;
}
.form-grid-grouplabel {
    min-width: 90px;
    font-weight: bold;
    color: #000;
    margin-right: 10px;
}
h2
{
    margin-top: 30px; font-family: 'Segoe UI', sans-serif; color: #333;
}
a
{
    display: inline-flex; align-items: center; font-size: 20px; color: #333; font-weight: bold; text-decoration: none; gap: 6px;
}
.subheader
{
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.form-grid-grouplabel
{
    font-weight: bold;
}
/* 💡 3D-style input */
.textboxcss {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15); /* Inset for depth */
  font-size: 14px;
  flex: 1;
  min-width: 100px;
  width: 100%;
}


/* 💡 3D-style button */
.btnsave {
  padding: 10px 20px;
  background-color: #428580;
  color: #fff;
  border: none;
  width: 128px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25); /* Lifted shadow */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btnsave:hover {
  background-color: #2d6d6b;
  transform: translateY(-2px); /* hover pop */
}
.container {
  padding: 20px 30px;
  max-width: 100%;
  margin: 30px auto;
  background-color: #ffffff;
  border: 1px solid #f0c097;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(255, 144, 77, 0.2);
}
@media (max-width: 576px) {
  .container {
    background: 
    border: none;
    border-radius: 24px;
    padding: 24px 18px;
    margin: 20px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 0 6px rgba(255, 255, 255, 0.3); /* soft outer + inner glow */
    color: #4a4a4a;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}



/* ✅ Mobile view: full screen height */
@media (max-width: 576px) {
  .container {
    height: 100dvh;       /* Full dynamic viewport height on mobile */
    width: 100vw;          /* Full screen width */
    margin: 0;             /* Remove outer spacing */
    border-radius: 0;      /* Optional: make it edge-to-edge */
    box-sizing: border-box;
    display: flex;         /* Optional: layout control */
    flex-direction: column;
    padding: 15px 20px;    /* Slightly reduced padding for small screens */
    overflow: auto;        /* Enable scrolling inside container if content overflows */
  }
}


.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #428580;
}

.title {
  font-size: 24px;
  margin: 0;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.5px;
  font-family: Algerian;
}

/* ✅ Mobile view only: reduce font size */
@media (max-width: 576px) {
  .title {
    font-size: 18px;
  }
}




.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 15px;
}

.menu-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  padding: 30px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  font-size: 16px;
}

/* ✅ Mobile view: make items smaller */
@media (max-width: 576px) {
  .menu-item {
    padding: 20px 8px;
    font-size: 14px;
  }

  .menu-item i {
    font-size: 18px; /* shrink icon size */
    margin-bottom: 5px;
  }

  .menu-item span {
    font-size: 13px; /* adjust label text size */
  }

  .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row on small screens */
    gap: 10px;
  }
}


.menu-item:hover {
    transform: scale(1.05) rotateX(4deg) rotateY(4deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item i {
    font-size: 40px;
    color: #428580;
}

.menu-item span {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}
 
    

.back-button,
.share-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.logo-section {
    text-align: center;
    margin: 20px 0;
    color: brown;
}

.logo {
    width: 80px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 144, 77, 0.3);
}
.welcome {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4e342e;
}
.bold {
    font-weight: bold;
    color: #bf360c;
}

.info-box {
    background-color: ;
    padding: 20px;
    border-radius: 12px;
    
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.15);
}
.info-box p {
    margin: 10px 0;
    font-size: 15px;
    color: #5d4037;
}
.label {
    font-weight: bold;
    display: inline-block;
    width: 220px;
    color: #6d4c41;
}
 
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500');
*{
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}
body {
  font-family: 'Roboto', sans-serif;
}
.sidebar {
  position: fixed;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #428580;
  transition: all .5s ease;
  z-index: 1;
}
.sidebar header {
  font-size: 22px;
  color: white;
  line-height: 70px;
  text-align: center;
  background: chocolate;
  user-select: none;
  z-index: 1;
}
.sidebar ul a{
  display: block;
  height: 100%;
  width: 100%;
  line-height: 55px;
  font-size: 20px;
  color: white;
  padding-left: 40px;
  box-sizing: border-box;
  border-bottom: 1px solid black;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: .4s;
  z-index: 1;
}
ul li:hover a{
  padding-left: 50px;
 background-color:#f27500;
 color:Black;
}
.sidebar ul a i{
  margin-right: 16px;
}
#check{
  display: none;
}
label #btn,label #cancel{
  position: absolute;
  background: #042331;
  border-radius: 7px;
  cursor: pointer;
}
label #btn{
  left: 5.5%;
  top: 5%;
  font-size: 25px;
  color: white;
  padding: 6px 12px;
  transition: all .5s;
}
label #cancel{
  z-index: 1111;
  left: -195px;
  top: 17px;
  font-size: 30px;
  color: #fff;
  padding: 4px 9px;
  transition: all .5s ease;
}
#check:checked ~ .sidebar{
  left: 0;
}
#check:checked ~ label #btn{
  left: 250px;
  opacity: 0;
  pointer-events: none;
}
#check:checked ~ label #cancel{
  left: 195px;
}
#check:checked ~ section{
  margin-left: 250px;
}
section{
  background: url(bg.jpeg) no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
  transition: all .5s;
}

.logo-container {
  height: 24dvh; /* Full screen height including mobile browsers */
  width: 100vw;   /* Full screen width */
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
  background-color: #ffffff; /* Optional: light blue background */
}

.logo {
  width: 110px;   /* Adjust as needed */
  height: auto;
}
@media (max-width: 576px) {
  .logo-container {
    height: 10dvh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
  }

  .logo {
    width: 80px;
  }
}
.btn-submit-details {
  padding: 10px 20px;
  background-color: #428580;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
}

.btn-submit-details:hover {
  background-color: #e65100;
}


.gold-rate-section h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.gold-rate-section .rate-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gold-rate-section input[type="number"] {
  width: 160px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
}

.gold-rate-section button {
  padding: 6px 15px;
  background-color: #428580;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.gold-rate-section button:hover {
  background-color: #2d6d6b;
}

.gold-rate-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goldrate-input {
  width: 170px !important; /* Force override */
  padding: 4px 8px;
  font-size: 14px;
}


.inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.inline-form label {
  font-weight: bold;
  color: #333;
}


.inline-form select,
.inline-form input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 187px;
    background-color: #fffdf9;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}


.inline-form button {
  background-color: #428580;
  color: white;
  font-weight: 500;
  padding: 4px 12px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  width: 117px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.inline-form button:hover {
  background-color: #2c6661;
}

/* Table Styling */
.table-wrapper {
  width: 100%;
  margin-top: 10px;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

.table-wrapper tbody tr:nth-child(even) {
  background-color: #fff6f0;
}

.table-wrapper tbody tr:hover {
  background-color: #ffe0c7;
}

.table-wrapper td button {
  padding: 3px 8px;
  font-size: 13px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


.page-title {
  font-size: 25px;
  font-weight: bold;
  font-family:Arial Baltic;
  margin: 0;
  padding-bottom:10px;
  color:#428580;
}

.back-link {
  color: #333;
  text-decoration: none;
  font-size: 25px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link i {
  color: #333;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .textboxcss {
    width: 100%;        /* Full width on mobile */
    font-size: 16px;    /* Larger text for better UX */
    box-sizing: border-box;
  }
}

@media (max-width: 576px) {
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
  }

  .inline-form .textboxcss,
  .inline-form .form-select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
}
.custom-input-form {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  min-width: 250px;
}

.align-end {
  align-items: flex-end;
}
.btn-submit-details {
  padding: 10px 20px;
  background-color: #428580;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  max-width: 160px;
}

/.form-grid-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding-left: 10px;
}

.form-grid-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-grid-group {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
}

.form-grid-group label {
  min-width: 90px; /* Label width for alignment */
  font-weight: bold;
  color: #000;
  margin-right: 10px;
}

.form-grid-group input,
.form-grid-group .textboxcss {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
/* ✅ Responsive */
@media (max-width: 576px) {
  .form-grid-row {
    flex-direction: column;
  }

  .form-grid-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid-group label {
    margin-bottom: 5px;
    min-width: auto;
  }

  .btnsave {
    width: 100%;
  }
}
.subheader {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.subheader label {
  font-weight: bold;
  color: #333;
  min-width: 60px;
}
* Responsive */
@media (max-width: 576px) {
  .subheader {
    flex-direction: column;
    align-items: stretch;
  }

  .textboxcss,
  .btnsave {
    width: 100%;
  }
}
.form-3d {
  background: #f8f8f8;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-3d label {
  font-weight: bold;
  color: #333;
}
/* 📱 Responsive (Mobile) */
@media (max-width: 576px) {
  .form-3d {
    padding: 15px;
  }
  
  
.back-container {
  margin-bottom: -10px;
  padding-left: 10px;
}

.nav-return-box {
  margin-top: -10px; /* Pushes the back button downward */
  padding-left: 10px;
}

.back-btn {
  display: inline-block;
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

.back-btn i {
  margin-right: 5px;
}

}



.second-title {
  font-size: 30px;
  margin: 20px 0 15px;
 
  padding-bottom: 5px;
  color: #333;
  font-family: bold;
}
.item-details-table th {
  background-color: #ccc;
  color: #000;
  font-weight: bold;
  font-size: 14px;
}

.item-details-table td {
  font-size: 13px;
}
@media (max-width: 576px) {
  .responsive-table {
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    width: 100%;
    padding-bottom: 10px;
  }

  .responsive-table table {
    min-width: 700px; /* Wider than screen to force scroll */
    width: max-content;
    border-collapse: collapse;
  }

  .responsive-table th,
  .responsive-table td {
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* 👇 Force smaller width only for inputs using .small-input */
.small-input {
  width: 130px !important;
  max-width: 100%;
  height: 30px;
  font-size: 13px;
  padding: 4px 8px;
}

.loan-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* optional: helps in mobile view */
  margin-bottom: 20px;
}

.section-heading {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

.loan-inline-fields label {
  margin-right: 15px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
}

.small-input {
  width: 120px;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}





.loan-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* for mobile responsiveness */
  margin-bottom: 20px;
}

.loan-info-fields label {
  margin-left: 15px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
}

.loan-info-fields input {
  width: 120px;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.loan-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* for mobile responsiveness */
  margin-bottom: 20px;
}

.loan-info-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.loan-info-fields label {
  margin-left: 15px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
}

.loan-info-fields input {
  width: 120px;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ✅ Mobile View */
@media (max-width: 576px) {
  .loan-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .loan-info-fields {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .loan-info-fields label {
    margin-left: 0;
    width: 100%;
    font-size: 15px;
  }

  .loan-info-fields input {
    width: 100%;
    max-width: 100%;
  }
}

.single-line {
  border: none;                  /* Remove all borders */
  border-top: 1px solid #888;    /* Only one top border to show a single line */
  margin: 20px 0;                /* Optional spacing */
}

.col-sm-4 {
  background: #f9f9f9;     /* Light background for the box */
  border: 1px solid #ccc;  /* Subtle border */
  padding: 20px;           /* Space inside the box */
  border-radius: 10px;     /* Rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .item-details-table {
    min-width: 800px; /* Keeps structure and enables scroll on mobile */
  }
}



.row {
display: flex;
 flex-wrap: wrap;
  gap: 20px;
}

.col-sm-8 {
flex: 2;
 min-width: 300px;
}
.col-sm-4 {
flex: 1;
 min-width: 300px;
}


  .loan-panel {
      flex: 0.5;
      border: 1px solid #ccc;
      padding: 15px;
      background: #f9fff9;
    }
.loan-panel label {
      font-weight: bold;
      font-size: 13px;
    }

    .loan-panel input, .loan-panel select {
      margin-bottom: 8px;
    }

    .loan-panel .net {
      font-size: 22px;
      font-weight: bold;
      color: green;
      text-align: center;
      margin: 10px 0;
      border: 1px solid #444;
      padding: 5px;
    }
    
    .loan-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    max-width: 600px;
    margin-bottom: 20px;
  }

  .loan-details-grid label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 12px;
  }

  .loan-details-grid input,
  .loan-details-grid select {
    width: 100%;
    padding: 6px;
    font-size: 14px;
    box-sizing: border-box;
  }

  /* Make Pay Mode full-width */
  .loan-details-grid .full-width {
    grid-column: span 2;
  }

@media (max-width: 768px) {
  .loan-details-grid {
    grid-template-columns: 1fr !important; /* ensure one column */
    gap: 12px; /* smaller gap for mobile */
  }

  .loan-details-grid .full-width {
    grid-column: span 1 !important;
  }

  .loan-details-grid label {
    font-size: 13px;
  }

  .loan-details-grid input,
  .loan-details-grid select {
    font-size: 13px;
    padding: 5px;
  }
}

@media (max-width: 768px) {
 
  .loan-panel {
      flex: 1.5;
      border: 1px solid #ccc;
      padding: 15px;
      background: #f9fff9;
    }
}
 .modalBackground
        {
            background-color: Black;
            filter: alpha(opacity=40);
            opacity: 0.6;
        }
        .modalPopup
        {
			height:600px;
			/*overflow:scroll;*/
            background-color: #FFFFFF;
            width: 940px;
            border: 0px solid #0054a6;
			padding:39px 0px 22px 0px;
			border-radius:8px;
        }
        .modalPopup .header
        {
            background-color: #2FBDF1;
            height: 30px;
            color: White;
            line-height: 30px;
            text-align: center;
            font-weight: bold;
        }
        .modalPopup .body
        { 
			height:400px;
			overflow:scroll;
            line-height: 30px;
            text-align: center;
            padding:5px
        }
        .modalPopup .footer
        {
            padding: 3px;
        }
        .modalPopup .button
        {
            height: 23px;
            color: White;
            line-height: 23px;
            text-align: center;
            font-weight: bold;
            cursor: pointer;
            background-color: #9F9F9F;
            border: 1px solid #5C5C5C;
        }
        .modalPopup td
        {
            text-align:left;
        }
		.close_font
		{
			margin:-33px -580px 0px 0px;
            cursor: pointer;
			width:24px;
			font-size:22px;
		}
