body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f9f9f9;
}


.section {
  display: none;
}

.section.active {
  display: block;
}




.profile-pic {
  width: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.logout-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.wallet-text {
  font-weight: bold;
}

/* Service Menu Style */
.service-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 10px;
}


.menu-box {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.menu-box:hover {
  transform: scale(1.05);
}

.menu-box img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.menu-box p {
  margin: 0;
  font-weight: 500;
}

/* PAN Form */
.pan-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.pan-form input,
.pan-form textarea,
.pan-form button {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.pan-form button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.pan-form button:hover {
  background-color: #0056b3;
}
.pan-type-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.type-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #007bff;
  background: white;
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.type-btn.active {
  background: #007bff;
  color: white;
}
.pan-form select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}
/* Dropdown Form Group Styling */

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.form-group select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.form-group select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 3px rgba(0,123,255,0.5);
}
/* PAN Form Layout */
.form-group,
.form-row,
.address-grid,
.income-group {
  margin-bottom: 15px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

input:focus,
select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}

/* Row Flex Layouts */
.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}

/* Address grid 2x2 */
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.address-grid input {
  width: 100%;
}

/* Income Source Checkboxes */
.income-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.income-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
button[type="submit"],
button[type="button"] {
  padding: 10px 15px;
  margin-top: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button[type="submit"] {
  background-color: #007bff;
  color: white;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}



button[type="button"]:hover {
  background-color: #aaa;
}


body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.profile-container h3 {
  margin: 4px 0; /* Reduced vertical spacing */
  font-size: 16px; /* Optional: make slightly smaller if needed */
  line-height: 1.4;
}
.profile-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.profile-btn:hover {
  background-color: #0056b3;
}
.access-text {
  margin-top: 5px;
  font-weight: bold;
  color: #333;
}
.username-text, .access-text {
  font-size: 16px;
  margin: 5px 0;
  color: #333;
  font-weight: 500;
}
#payment-form {
  padding-bottom: 80px; /* Ensures button stays above nav */
}


.dashboard-container {
  padding-bottom: 100px;
}
.section {
  display: none;
  padding: 0 15px 80px 15px; /* Left, Right, Bottom padding */
  
}

.section.active {
  display: block;
}






.screen {
  display: none;
  padding: 20px;
  font-size: 16px;
}
.screen.active {
  display: block;
}





.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  padding: 15px;
}

.home-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 10px;
  text-align: center;
}

.home-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.home-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}


.id-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}
.id-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 6px;
}
.id-card iframe {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: #007bff;
  display: flex;
  z-index: 1000;
}


/* normal button */
.bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  color: #eaf2ff;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ✅ ACTIVE button – DARK */
.bottom-nav button.active {
  background-color: #0056b3;   /* dark blue */
  color: #ffffff;
}
.bottom-nav button span {
  font-size: 20px;
  margin-bottom: 2px;
}

/* .bottom-nav button:hover {
  background-color: #0056b3;
} */


.card-container {
  margin-left: 2px;
  margin-right: 20px; /* ✅ Left ke barabar right margin */
}




/* ✅ train ticket css */
.autocomplete-items {
  position: absolute;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  z-index: 1000;
  width: 100%;
}

.autocomplete-items div {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-items div:hover {
  background-color: #f1f1f1;
}

/* Contact Card */
.contact-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

/* Card Title */
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  border-left: 4px solid #007BFF;
  padding-left: 8px;
}

/* Card Message */
.contact-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

/* Contact Button (message size width) */
.contact-btn {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease-in-out;
  max-width: 100%; /* card से बाहर न जाए */
  white-space: nowrap; /* text wrap न हो */
}

.contact-btn:hover {
  background: linear-gradient(135deg, #0056b3, #00408d);
}


/* trian ticket */
/* IRCTC login + booking meta */
#trainHistory table {
  width: 100%;
  border-collapse: collapse;
}
#trainHistory th, #trainHistory td {
  border: 1px solid #ccc;
  padding: 8px;
}
#trainHistory th {
  background: #007bff;
  color: white;
}


/* 🔔 Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  text-align: center;
}

#comingSoonOkBtn {
  margin-top: 10px;
  padding: 8px 20px;
  border: none;
  background:#007bff;
  color:#fff;
  border-radius: 8px;
}
/* 🔔 Modal styles */

/* PAN Form Details - responsive table */
#panDetails {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

#panDetails th,
#panDetails td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
  word-break: break-word;
}

@media (max-width: 768px) {
  #panDetails {
    margin-right: 10px; /* extra right spacing */
  }
}
/* 📄 Receipt Section Fix */
#receiptSection {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* PAN Form Details Popup */
#formPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

#formPopupContent {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 95%;          /* 🔹 mobile friendly */
  max-width: 700px;
  max-height: 80vh;    /* 🔹 limit height */
  overflow-y: auto;    /* 🔹 vertical scroll */
  overflow-x: auto;    /* 🔹 horizontal scroll */
  box-sizing: border-box;
}

#formPopupContent table {
  border-collapse: collapse;
  width: 100%;
  min-width: 400px;    /* 🔹 force scroll on small screens */
}

#formPopupContent th,
#formPopupContent td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
}
#history-menu button {
  background: #ccc;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#history-menu button:hover {
  background: #bbb;
}
/* सभी Back बटन के लिए हरा रंग */
.back-btn,
button.back-button,
#history-menu button,
#panhistory button,
#recharge-form button:last-child,
#recharge-history button,
#payment-form button,
#train-history-section button,
#voterid-form .back-btn,
#voterhistory .back-btn {
  background-color: #28a745 !important;  /* हरा */
  color: white !important;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
}

/* hover पर थोड़ा गहरा हरा */
.back-btn:hover,
button.back-button:hover,
#history-menu button:hover,
#panhistory button:hover,
#recharge-form button:last-child:hover,
#recharge-history button:hover,
#payment-form button:hover,
#train-history-section button:hover,
#voterid-form .back-btn:hover,
#voterhistory .back-btn:hover {
  background-color: #218838 !important;
}



#qrPopup div {
  animation: popupScale 0.25s ease-out;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
@keyframes popupScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}






.pay-summary{
  background:#f4f6ff;
  padding:10px;
  border-radius:6px;
  margin-bottom:10px;
  text-align:center;
  font-weight:bold;
}

.pay-tabs{
  display:flex;
  gap:8px;
  margin-bottom:10px;
}

.pay-tab{
  flex:1;
  padding:10px;
  border:none;
  background:#ddd;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
}

.pay-tab.active{
  background:#007BFF;
  color:white;
}

.pay-box{
  display:none;
  border:1px dashed #ccc;
  padding:15px;
  border-radius:8px;
  text-align:center;
}

.pay-box.active{
  display:block;
}

.pay-btn{
  width:100%;
  margin-top:10px;
  padding:12px;
  background:green;
  color:white;
  border:none;
  border-radius:6px;
  font-size:16px;
  font-weight:bold;
}

.upi-qr{
  width:180px;
  display:block;
  margin:10px auto;
}

#upiUTR{
  width:100%;
  padding:10px;
  margin-top:8px;
  border-radius:6px;
  border:1px solid #ccc;
}
.payment-btn-wrap{
  margin-top:20px;
}

.pay-prosid-btn{
  width:100%;
  padding:14px;
  font-size:16px;
  font-weight:600;
  background:#0a4db8;
  color:#fff;
  border:none;
  border-radius:8px;
  cursor:pointer;
  transition:0.3s ease;
}

/* hover */
.pay-prosid-btn:hover{
  background:#083c8f;
}

/* active click */
.pay-prosid-btn:active{
  transform:scale(0.98);
}

/* VERY IMPORTANT – click allow */
.pay-prosid-btn{
  pointer-events:auto;
  position:relative;
  z-index:10;
}

/* ............................................. */
.payment-section {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

/* Booking Amount */
.booking-amount-box {
  text-align: center;
  background: #f0f8ff;
  border: 2px dashed #007bff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.booking-amount-box span {
  font-size: 14px;
  color: #555;
}
.booking-amount-box h2 {
  margin: 4px 0 0;
  font-size: 28px;
  color: #007bff;
}

/* Tabs */
.pay-tabs {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}
.pay-tab {
  flex: 1;
  padding: 10px;
  background: #f1f1f1;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.pay-tab.active {
  background: #007bff;
  color: #fff;
}

/* Content */
.pay-content { display: none; }
.pay-content.active { display: block; }

/* Card */
.pay-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  background: #fafafa;
}
.wallet-balance {
  font-size: 26px;
  font-weight: bold;
  color: green;
  margin: 8px 0;
}
.upi-qr {
  max-width: 180px;
  margin: 10px auto;
  display: block;
}
.pay-card input {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.note {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
}

/* Button */
.pay-confirm-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: green;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.pay-prosid-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: rgb(71, 87, 233);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
/* ............................................. */

.station-list {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  z-index: 1000;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
.station-list div {
  padding: 8px;
  cursor: pointer;
}
.station-list div:hover {
  background-color: #f0f0f0;
}

/* Passenger Table */
.passenger-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-sizing: border-box;
}
.passenger-table th, .passenger-table td {
  border: 1px solid #e6e6e6;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}
.passenger-table th {
  background: #007BFF;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.passenger-table input, .passenger-table select {
  width: 100%;
  padding: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Column width adjustments */
.passenger-table input[name="name[]"] {
  min-width: 160px;
}
.passenger-table input[name="age[]"] {
  min-width: 90px;
}
.passenger-table select[name="gender[]"] {
  min-width: 120px;
}
.passenger-table select[name="berth[]"] {
  min-width: 130px;
}

/* Table responsiveness fix */
@media screen and (max-width: 768px) {
  .passenger-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Buttons */
.form-actions {
  margin-top: 10px;
}
.form-actions button {
  padding: 6px 12px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.form-actions button:hover {
  background: #0056b3;
}

/* Submit & Back Buttons full width */
.submit-btn {
  width: 100%;
  padding: 12px 16px;
  background: green;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
}
.submit-btn:hover {
  background: darkgreen;
}
.back-btn {
  width: 100%;
  padding: 12px 16px;
  background: #ccc;
  color: #333;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.back-btn:hover {
  background: #b3b3b3;
}

/* IRCTC Login Box */
.irctc-login {
  background: #f8f9fa;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 15px;
}
.irctc-login label {
  display: block;
  font-weight: 600;
  margin-top: 8px;
}
.irctc-login input {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Checkbox styling */
.meta-item.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.meta-item.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007BFF;
  cursor: pointer;
}
.meta-item.checkbox-item label {
  font-weight: 500;
  color: #333;
  cursor: pointer;
}
/* ............................................. */
.upi-box {
  text-align: center;
  margin-top: 15px;
}

.upi-pay-btn {
  margin-top: 12px;
  padding: 12px 20px;
  font-size: 16px;
  background: linear-gradient(135deg, #0d6efd, #198754);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 220px;
}

.upi-pay-btn:hover {
  opacity: 0.9;
}
/*.................................................*/
/* ================== MAIN CARD ================== */

.irctc-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 6px 20px rgba(0,0,0,.18);
  overflow:hidden;
  font-family:Arial, sans-serif;
  margin-bottom:18px;
}

/* ================== TOP & BOTTOM STRIP ================== */

.irctc-top,
.irctc-bottom{
  height:14px;
  background:#1096e6;
}

/* ================== HEADER ================== */

.irctc-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:14px 16px;
}

.train-no{
  font-size:14px;
  color:#777;
}

.train-name{
  font-size:20px;
  font-weight:bold;
  color:#000;
}

.pnr-area{
  text-align:right;
}

.pnr-label{
  font-size:14px;
  color:#6baac9;
}

.pnr-no{
  font-size:20px;
  font-weight:bold;
  color:#6baac9;
}

/* ================== DIVIDER ================== */

.irctc-card hr{
  border:none;
  border-top:1px solid #e5e5e5;
  margin:8px 16px;
}

/* ================== ROUTE SECTION ================== */

.route-irctc{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
}

.route-col{
  flex:1;
}

.route-col.left{
  text-align:left;
}

.route-col.right{
  text-align:right;
}

.route-col .label{
  font-size:14px;
  font-weight:bold;
  margin-bottom:4px;
}

.route-col .station{
  font-size:18px;
  font-weight:bold;
  margin-bottom:4px;
}

.route-col .time{
  font-size:20px;
  font-weight:bold;
  color:#0d6efd;
}

.route-col .date{
  font-size:13px;
  color:#666;
  margin-top:2px;
}

/* ================== CENTER ================== */

.route-mid{
  flex:0.7;
  text-align:center;
}

.route-mid .arrow{
  font-size:22px;
  color:#999;
}

.route-mid .duration{
  font-size:14px;
  font-weight:bold;
  color:#555;
  margin-top:4px;
}

/* ================== BOARDING ================== */

.boarding-btn{
  margin:12px 16px;
  padding:12px;
  text-align:center;
  border:2px solid #cce5ff;
  border-radius:30px;
  color:#0d6efd;
  font-weight:bold;
  background:#f8fbff;
}

/* ================== META ================== */

.meta-info{
  padding:0 16px;
  font-size:15px;
  font-weight:bold;
  color:#333;
}

.booked-on{
  padding:6px 16px 14px;
  color:#555;
  font-size:14px;
}

/* ================== BUTTONS ================== */

.bottom-actions{
  display:flex;
  gap:12px;
  padding:14px 16px;
}

.bottom-actions button{
  flex:1;
  padding:12px;
  border-radius:30px;
  font-size:16px;
  cursor:pointer;
}

/* PRIMARY */
.bottom-actions .primary{
  background:#0d6efd;
  color:#fff;
  border:none;
}

/* OUTLINE */
.bottom-actions .outline{
  background:#fff;
  border:2px solid #0d6efd;
  color:#0d6efd;
}

/* ================== RESPONSIVE ================== */

@media(max-width:600px){
  .train-name{
    font-size:18px;
  }

  .route-col .station{
    font-size:16px;
  }

  .route-col .time{
    font-size:18px;
  }
}
/*..........................................................*/
/* 🔝 Fixed AppBar */
.appbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #007bff;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 2000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ⬅ Back Button */
.appbar-back {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* 🎯 Title perfectly CENTER */
.appbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
  text-align: center;
}
.dashboard-container {
  padding-top: 56px;     /* EXACT AppBar height */
  padding-bottom: 100px; /* bottom nav safe */
}
/*..........................................................................*/
/* 📱 Profile App Style */
.profile-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 16px;
  max-width: 480px;
  margin: 10px auto;
}

/* Header */
.profile-header {
  text-align: center;
  margin-bottom: 12px;
}

.profile-header h2 {
  margin: 0;
  font-size: 20px;
  color: #007bff;
}

/* Profile list */
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each row */
.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #f6f8ff;
  font-size: 15px;
}

.profile-item span {
  color: #555;
}

.profile-item strong {
  color: #000;
  font-weight: 600;
}

/* Wallet highlight */
.profile-item.highlight {
  background: #e9f7ef;
  border: 1px dashed #28a745;
}

.profile-item.highlight strong {
  color: #28a745;
  font-size: 18px;
}

/* Logout button full width */
.logout-btn.full {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
}
/*......................................................................*/
/* 🏠 Home Card Container – FULL WIDTH STACK */
.card-container{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
}

/* 📦 Service Card */
.service-card{
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* 🏷️ Title */
.service-title{
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  background: #f5f7fb;
  cursor: pointer;
}

/* 📝 Short Text */
.service-short{
  display: none;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* 🖼️ Media Box – FULL WIDTH */
.service-media{
  width: 100%;
  height: auto;
  background: #000;
}

/* 🖼️ IMAGE – NO CUT, FULL LENGTH */
.service-media img{
  width: 100%;
  height: auto;        /* 🔥 important */
  display: block;
  object-fit: contain; /* 🔥 no crop */
  background: #000;
}

/* 🎥 VIDEO – FULL WIDTH */
.service-media iframe{
  width: 100%;
  aspect-ratio: 16 / 9;   /* 🔥 perfect video ratio */
  border: none;
}
/*...............................................pan card histry card ............*/
.pan-card-container{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:12px;
}

/* Main Card */
.pan-card{
  background:#ffffff;
  border-radius:14px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
  border:1px solid #e8e8e8;
  transition:all 0.25s ease;
  position:relative;
}

/* hover effect */
.pan-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(0,0,0,0.18);
}

/* receipt highlight */
.pan-card-header{
  font-size:15px;
  font-weight:600;
  color:#1976D2;
  margin-bottom:10px;
  padding-bottom:6px;
  border-bottom:1px solid #eee;
}

/* info text */
.pan-card-body{
  font-size:13px;
  color:#555;
  line-height:1.6;
}

.pan-card-body div{
  margin-bottom:4px;
}

.pan-label{
  color:#777;
}

.pan-value{
  color:#111;
  font-weight:500;
}

/* buttons */
.pan-card-actions{
  margin-top:14px;
  display:flex;
  gap:8px;
}

/* button style */
.pan-btn{
  flex:1;
  padding:9px;
  border:none;
  border-radius:8px;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:all 0.2s ease;
}

.pan-btn-view{
  background:#2196F3;
  color:white;
}

.pan-btn-upload{
  background:#4CAF50;
  color:white;
}

.pan-btn-receipt{
  background:#FF9800;
  color:white;
}

.pan-btn:hover{
  transform:scale(0.97);
  opacity:0.9;
}


/*............................no prnt dowlod and back buttan  */
/* ===== Receipt Popup ===== */
#receiptSection{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.65);
  z-index:99999;
  overflow-y:auto;
  overflow-x:hidden;
  padding:20px 10px;
  box-sizing:border-box;
  -webkit-overflow-scrolling: touch;
}



.receipt-inner{
  position:relative;
  z-index:2;
  padding:20px;
}

.receipt-watermark{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:1;
}

.receipt-watermark img{
  width:280px;
  max-width:70%;
  opacity:0.06;
  transform:rotate(-18deg);
}

.receipt-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  border:2px solid #0b57d0;
  border-radius:12px;
  padding:14px;
  background:linear-gradient(135deg,#eef5ff,#ffffff);
  margin-bottom:14px;
}

.receipt-header-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.receipt-header-left img{
  width:68px;
  height:68px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  border:1px solid #dbe7ff;
  padding:4px;
}

.receipt-header-left h2{
  margin:0;
  font-size:28px;
  color:#0b57d0;
  line-height:1.1;
}

.receipt-header-left p{
  margin:4px 0 0;
  font-size:13px;
  color:#444;
  font-weight:600;
}

.receipt-header-right{
  font-size:13px;
  color:#222;
  line-height:1.7;
  text-align:right;
}

.receipt-title{
  text-align:center;
  margin-bottom:14px;
  border:2px dashed #0b57d0;
  border-radius:10px;
  padding:10px;
  background:#f8fbff;
}

.receipt-title h3{
  margin:0;
  font-size:22px;
  color:#111;
}

.receipt-title p{
  margin:5px 0 0;
  font-size:12px;
  color:#555;
}

.receipt-section-heading{
  font-size:15px;
  font-weight:800;
  color:#0b57d0;
  margin:14px 0 8px;
  border-left:5px solid #0b57d0;
  padding-left:8px;
}

.receipt-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  margin-bottom:12px;
  font-size:13px;
  word-break:break-word;
}

.receipt-table td{
  border:1px solid #999;
  padding:8px;
  vertical-align:top;
}

.receipt-table tr td:nth-child(odd){
  background:#f9fbff;
  font-weight:600;
}

.receipt-note{
  margin-top:16px;
  border:1px dashed #999;
  border-radius:10px;
  padding:12px;
  background:#fffdf5;
  font-size:12px;
  color:#444;
  text-align:center;
}

.receipt-sign{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:24px;
  flex-wrap:wrap;
}

.receipt-sign div{
  width:220px;
  text-align:center;
  padding-top:6px;
  border-top:1px solid #222;
  font-size:13px;
}

.receipt-footer-strip{
  margin-top:18px;
  text-align:center;
  background:#0b57d0;
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.3px;
}

.receipt-buttons{
  text-align:center;
  margin-top:20px;
}

.receipt-btn{
  margin:5px;
  padding:10px 16px;
  border:none;
  border-radius:8px;
  background:#0b57d0;
  color:#fff;
  font-size:14px;
  cursor:pointer;
}

.close-btn{
  background:#dc2626;
}
.slpback-btn{
  background:#4CAF50;
}

/* Mobile */
@media (max-width:768px){
  #receiptSection{
    padding:10px 6px 20px;
  }



  .receipt-inner{
    padding:12px;
  }

  .receipt-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .receipt-header-right{
    text-align:left;
    width:100%;
  }

  .receipt-header-left h2{
    font-size:22px;
  }

  .receipt-table{
    font-size:12px;
  }

  .receipt-table td{
    padding:7px 6px;
  }

  .receipt-sign{
    justify-content:center;
  }

  .receipt-sign div{
    width:100%;
    max-width:220px;
  }

  .receipt-btn{
    width:100%;
    max-width:220px;
  }
}

/* Print */
@media print{
  body *{
    visibility:hidden !important;
  }

  #receiptSection,
  #receiptSection *{
    visibility:visible !important;
  }

  #receiptSection{
    position:absolute !important;
    inset:0 !important;
    background:#fff !important;
    overflow:visible !important;
    padding:0 !important;
    margin:0 !important;
  }


  .no-print{
    display:none !important;
  }
}

/*............................no prnt dowlod and back buttan  */

.pan-card-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pan-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-left: 5px solid #007bff;
}

.pan-card-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 8px;
}

.pan-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 5px;
}

.pan-label {
  color: #777;
}

.pan-value {
  font-weight: 500;
}

.pan-status {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: white;
}

.status-pending { background: orange; }
.status-approved { background: green; }
.status-rejected { background: red; }

.pan-card-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.pan-btn {
  flex: 1;
  padding: 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.pan-btn-view { background: #007bff; color: white; }
.pan-btn-upload { background: #ffc107; }
.pan-btn-receipt { background: #28a745; color: white; }

/* EVEN CARD */
.even-card {
  background: linear-gradient(135deg, #85b0e2, #e9eb8a);
  border-left: 5px solid #007bff;
}

/* ODD CARD */
.odd-card {
  background: linear-gradient(135deg, #a2dd97, #e49898);
  border-left: 5px solid #ff9800;
}

/* Hover effect */
.pan-card:hover {
  transform: scale(1.01);
  transition: 0.2s;
}

/* थोड़ा spacing improve */
.pan-card {
  border-radius: 12px;
  padding: 14px;
}

.pan-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

/* Base button */
.pan-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: 0.2s;
}

/* 👁 View */
.pan-btn-view {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
}

/* 📤 Upload */
.pan-btn-upload {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #000;
}

/* 🧾 Receipt */
.pan-btn-receipt {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: #fff;
}

/* Hover effect */
.pan-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ..........................VIEW FORM PAN CARD ,,,,,...............................*/
