﻿/* ===== Global Reset and Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #eef2f3;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  border: 2px solid #212b59;
}

.header {
  position: relative;
  margin-bottom: 20px;
}

/* CIN number at top-right of page */
.cin-number {
  text-align: right;
  font-size: 12px;
  color: #212b59;
  font-weight: 600;
  margin-bottom: 5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header layout with logo and title */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Logo on left */
.logo {
  width: 120px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(76, 175, 145, 0.3);
  position: absolute;
  left: 0;
  margin-top:10px;
}

/* Title centered */
.title {
  font-size: 22px;
  color: #212b59;
  font-weight: 700;
  font-family: 'Georgia', serif;
  line-height: 1.3;
  text-align: center;
  flex: 1;
  margin-top:10px;
}


/* ===== Action Buttons ===== */
.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 20px;
}

/* Buttons without background */
.action-buttons button {
  background: none;
  color: #212b59;
  border: 0px solid #212b59;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

/* Hover Effect */
.action-buttons button:hover {
  background-color: #212b59;
  color: #fff;
}

/* Specific button (Logout) - outlined in red */
.btn-logout {
  border-color: #c0392b;
  color: #c0392b;
}

.btn-logout:hover {
  background-color: #c0392b;
  color: #fff;
}








/* ===== Member Name Section ===== */
.member-name {
  font-size: 16px;
  font-weight: 600;
  color: #212b59;
  margin-bottom: 20px;
  text-align: left;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-left: 5px;
  display:inline-block;
}











/* ===== Button Layout ===== */
/* Menu layout */
.menu .top-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Make <a> look like a button */
.menu-btn {
  text-decoration: none;
  background-color: #212b59;
  color: #fff;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 120px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.menu-btn:hover {
  background-color: #0191ff;
}

.menu-btn i {
  font-size: 36px;
}

.menu-btn span {
  margin-top: 8px;
  font-size: 14px;
}










/* ===== Vertical Menu Links (like buttons) ===== */
.vertical-menu {
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  gap: 15px;
  margin-top: 20px;
}

.vertical-menu .menu-link {
  width: 70%; /* default width for desktop */
  background-color: #212b59;
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.vertical-menu .menu-link:hover {
  background-color: #0191ff;
}

/* ===== Mobile Adjustments ===== */

/* Small Phones: up to 480px */
@media (max-width: 480px) {
  .vertical-menu {
    display: grid; /* switch to grid */
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 8px;
  }

  .vertical-menu .menu-link {
    width: 95%; /* fit inside grid cell */
    font-size: 13px;
    padding: 10px 0;
  }
}

/* Medium Phones: 481px – 767px */
@media (min-width: 481px) and (max-width: 767px) {
  .vertical-menu {
    display: grid; /* switch to grid */
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 10px;
  }

  .vertical-menu .menu-link {
    width: 90%; 
    font-size: 14px;
    padding: 12px 0;
  }
}

/* Tablets: 768px – 991px */
@media (min-width: 768px) and (max-width: 991px) {
  .vertical-menu {
    display: grid; /* switch to grid */
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    gap: 12px;
  }

  .vertical-menu .menu-link {
    width: 85%;
    font-size: 15px;
    padding: 13px 0;
  }
}





/* === Back Section === */
.back-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0 20px 20px;
}

/* Row Container */
.row-line {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;    /* <-- FIX PERFECT ALIGNMENT */
  padding-right: 20px;
}

/* Back Arrow */
.back-arrow {
  background-color: #212b59;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 0 !important;      /* <-- REMOVE WRONG ALIGNMENT */
}

/* Hover Effect */
.back-arrow:hover {
  background-color: #0191ff;
  transform: translateX(-3px);
}

/* Home Icon */
.home-icon {
  background-color: #212b59;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 18px;
}

/* Member Name */
.member-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #212b59;
}










/* ===== Mobile & Tablet View ===== */

/* Small Phones: up to 480px */
@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .container {
    padding: 12px;
    margin: 15px auto;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
  }

  .logo {
    width: 55px;
    position: absolute;
    left: 0;
    
  }
.title {
    font-size: 16px;
    flex: 1;
    margin-top: 26px;
  }

  .cin-number {
   font-size: 12px;
        position: absolute;
        right: 7px;
        top: 3px;
  }

  .action-buttons button {
    font-size: 11px;
    padding: 5px 8px;
  }

  .member-name {
    font-size: 13px;
  }

  .menu .top-menu {
    grid-template-columns: repeat(2, 1fr); /* 2 buttons per row */
    gap: 8px;
  }

  .menu-btn {
    height: 90px;
    font-size: 12px;
    border-radius: 12px;
  }

  .menu-btn i {
    font-size: 24px;
  }

  .menu-btn span {
    font-size: 12px;
  }

  
}

/* Medium Phones: 481px – 767px */
@media (min-width: 481px) and (max-width: 767px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
    margin: 20px auto;
  }

  .logo {
    width: 65px;
  }

  .title {
    font-size: 18px;
  }

  .cin-number {
    font-size: 11px;
  }

  .action-buttons button {
    font-size: 12px;
    padding: 6px 10px;
  }

  .member-name {
    font-size: 14px;
  }

  .menu .top-menu {
    grid-template-columns: repeat(2, 1fr); /* 2 buttons per row */
    gap: 10px;
  }

  .menu-btn {
    height: 100px;
    font-size: 14px;
    border-radius: 15px;
  }

  .menu-btn i {
    font-size: 28px;
  }

  .menu-btn span {
    font-size: 13px;
  }

  
}

/* Large Phones / Small Tablets: 768px – 991px */
@media (min-width: 768px) and (max-width: 991px) {
  body {
    padding: 15px;
  }

  .container {
    max-width: 550px;
    padding: 18px;
    margin: 25px auto;
  }

  .logo {
    width: 80px;
  }

  .title {
    font-size: 20px;
  }

  .cin-number {
    font-size: 12px;
  }

  .action-buttons button {
    font-size: 13px;
    padding: 7px 12px;
  }

  .member-name {
    font-size: 15px;
  }

  .menu .top-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .menu-btn {
    height: 110px;
    font-size: 15px;
    border-radius: 18px;
  }

  .menu-btn i {
    font-size: 32px;
  }

  .menu-btn span {
    font-size: 14px;    
  }

  
}


.save-btn 
{
    width: 100px;
    background: #212b59;
    color: #fff;
    border: none;
    padding: 12px 0px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 4px solid #212b59;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.25);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
}

/* Hover & Active Effects */
.save-btn:hover {
    background: #0191ff;
    border-bottom-color: #0191ff;
    transform: translateY(2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.save-btn:active {
    transform: translateY(3px);
    border-bottom-width: 2px;
}


.mGrid
{
    margin: 5px 0 10px 0;
    border: 1px solid #CCCCCC;  
    padding: 4px 3px;
    border-collapse:collapse;
    color:Black;
    
}  
	
.mGrid td {   
font-family: Times New Roman;
font-size:14px; 
border:solid 1px #CCCCCC;
font-weight: normal;
padding:6px 5px 6px 5px;
text-transform:capitalize;
    border-collapse:collapse;
}
  
.mGrid th
{
    background-color: #192f4e;
background-repeat:repeat-x;
/*background-color:#eae9e6;*/
font-family: Times New Roman;
font-size:16px;
color: #fff;
font-weight: normal;
padding:7px 5px 6px 5px;
text-transform:uppercase;
text-align:center;
border-collapse:collapse;
border:solid 1px #CCCCCC;
} 

.mGrid th a {      
    color: #fff /*#242f06*/;           
    font-size:16px;
	text-decoration:none;
	padding:4px 0px 0px 0px;
	text-transform:uppercase;
    border-collapse:collapse;
}  

.mGrid .alt td  
{
    /*padding: 4px 3px;*/   
    border: solid 1px #CCCCCC;  
    background-color:/*#F0F0F0*/#d7e8ff;
    border-collapse:collapse;   
}  
.mGrid .ftr { background: #569a35 url(grd_head.png) repeat-x top; font-weight:bold; border-width:0px; color:White; }  
.mGrid .pgr { background: #569a35 url(grd_pgr.png) repeat-x top; }  
.mGrid .pgr table { margin: 5px 0; }  
.mGrid .pgr td
{
    border-width: 0;
    padding: 0 6px;
    border-left: solid 1px #666;
    font-weight: bold;
    background: #569a35 url(grd_pgr.png) repeat-x top;
    color: White;
    line-height: 12px;
    text-align: center;
    float: none;
    border-style: solid;
    border-color: #000000;
    border-collapse:collapse;
    
}     
.mGrid .pgr a { color: #666; text-decoration: none; }  
.mGrid .pgr a:hover { color: #000; text-decoration: none; }






@media (max-width: 1024px) {
    .container {
        width: 100% !important; 
        padding: 8px; /* Remove horizontal padding on smallest screens if needed */
        margin: 0 auto; /* Keep it centered */
    }
    .container1 {
        /* CRITICAL: Override the desktop width of 1665px */
        width: 100% !important; 
        padding: 0; /* Remove horizontal padding on smallest screens if needed */
        margin: 0 auto; /* Keep it centered */
    }
    /* Ensure the registration box itself is centered and full width */
    .registration-box {
        max-width: 95%; 
        margin-left: auto; /* Override the fixed 372px margin */
        margin-right: auto;
    }
    
    /* Ensure the body or the top element still centers the registration box */
    body {
        justify-content: center; 
        align-items: flex-start;
        padding-top: 55px; /* Adjust for fixed top bar */
    }
}

 .container2 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    
  
}

/* Form Box */
.registration2-box {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 1000px;      /* Increased width */
    max-width: 100%;      /* Keep responsive on smaller screens */
    box-sizing: border-box;
}


.registration2-box h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #333;
}

/* Form Grid: Two fields per row */
.form-grid2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row2 {
    display: flex;
    gap: 20px;
}

.form-group2 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group2 label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.input2 {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* File Upload */
.file-upload-group2 .file-controls2 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-btn2 {
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.upload-btn2:hover {
    background-color: #0056b3;
}

/* Action Buttons */
.form-actions2 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.save-btn2 {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    background-color: #212b59;
    cursor: pointer;
}

.save-btn2:hover {
    background-color: #1e7e34;
}

.cancel-btn2 {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    background-color: #dc3545;
    cursor: pointer;
}

.cancel-btn2:hover {
    background-color: #c82333;
}











/* ===========================
   TABLET (max-width: 992px)
   =========================== */
@media (max-width: 992px) {

    .registration2-box {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    .form-row2 {
        gap: 15px;
    }

    .input2 {
        font-size: 14px;
    }
}

/* ===========================
   MOBILE LANDSCAPE (max-width: 768px)
   =========================== */
@media (max-width: 768px) {

    
    .form-row2 {
        flex-direction: column; /* TWO FIELDS BECOME ONE UNDER THE OTHER */
    }

    .registration2-box {
        width: 100%;
        max-width: 100%;
        padding: 27px;
    }

    .form-group2 label {
        font-size: 14px;
    }

    .input2 {
        font-size: 14px;
        padding: 7px;
    }
}


/* ===========================
   MOBILE SMALL (max-width: 480px)
   =========================== */
@media (max-width: 480px) {

    .registration2-box h1 {
        font-size: 20px;
    }

    .form-row2 {
        flex-direction: column;
        gap: 10px;
    }

    .form-group2 label {
        font-size: 13px;
    }

    .input2 {
        font-size: 13px;
        padding: 6px;
    }

    .save-btn2,
    .cancel-btn2 {
        width: 100%;
        padding: 10px;
        font-size: 15px;
    }

    .form-actions2 {
        flex-direction: column;
        gap: 10px;
    }
}



 
.action-buttons .btn-change {
    background: none;       /* No background */
    border: none;           /* No border */
    color: #000;            /* Text color */
    padding: 8px 15px;
    cursor: pointer;
}

.action-buttons .btn-change:hover {
    background: none;       /* No hover background */
    color: #0056b3;         /* Only text color change */
}

.action-buttons .btn-logout {
    background: none;       /* No background */
    border: none;           /* No border */
    color: #000;            /* Text color */
    padding: 8px 15px;
    cursor: pointer;
}

.action-buttons .btn-logout:hover {
    background: none;       /* No hover background */
    color: #a71d2a;         /* Only text color change */
}

.action-buttons i {
    margin-right: 8px;
    font-size: 16px;
}


/* === Back Section === */
.back-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0 20px 20px;
}

/* Row Container */
.row-line {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;    /* <-- FIX PERFECT ALIGNMENT */
  padding-right: 20px;
}

/* Back Arrow */
.back-arrow {
  background-color: #212b59;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 0 !important;      /* <-- REMOVE WRONG ALIGNMENT */
}

/* Hover Effect */
.back-arrow:hover {
  background-color: #0191ff;
  transform: translateX(-3px);
}

/* Home Icon */
.home-icon {
  background-color: #212b59;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 18px;
}

/* Member Name */
.member-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #212b59;
}


 @media (max-width: 600px){
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #16216A;     /* Navy blue – same as your theme */
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.footer-item {
    color: white;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.footer-item:hover {
    opacity: 0.7;
}
}


/* ===========================
   CONTAINER
   =========================== */
.container3 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    background-color: #f4f4f4; /* optional page background */
}

/* ===========================
   FORM BOX
   =========================== */
.registration3-box {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 1000px;
    max-width: 113%;
    box-sizing: border-box;
}

.registration3-box h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #333;
}

/* ===========================
   TWO COLUMN LAYOUT
   =========================== */
.form-columns3 {
    display: flex;
    gap: 30px;
}

.form-column3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ===========================
   FORM GROUPS
   =========================== */
.form-group3 {
    display: flex;
    flex-direction: column;
}

.form-group3 label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Apply uniform styling for all TextBox, DropDownList, FileUpload */
input[type="text"], input[type="password"], select, .file-label, textarea, .list_box {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
}

/* ===========================
   FILE UPLOAD GROUPS
   =========================== */
.file-upload-group3 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-controls3 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-btn3 {
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.upload-btn3:hover {
    background-color: #0056b3;
}

/* ===========================
   FORM ACTION BUTTONS
   =========================== */
.form-actions3 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.save-btn3, .save-btn4 {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    background-color: #212b59;
    cursor: pointer;
}

.save-btn3:hover, .save-btn4:hover {
    background-color: #1e7e34;
}

.cancel-btn3, .cancel-btn4 {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    background-color: #dc3545;
    cursor: pointer;
}

.cancel-btn3:hover, .cancel-btn4:hover {
    background-color: #c82333;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
    .registration3-box {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    input[type="text"], input[type="password"], select, .file-label, textarea, .list_box {
        font-size: 14px;
    }

    .form-row3 {
        gap: 15px;
    }
}

/* Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
    .form-columns3 {
        flex-direction: column;
    }

    .form-row3 {
        flex-direction: column;
    }

    .registration3-box {
        width: 100%;
        max-width: 100%;
        padding: 27px;
    }

    .form-group3 label {
        font-size: 14px;
    }

    input[type="text"], input[type="password"], select, .file-label, textarea, .list_box {
        font-size: 14px;
        padding: 7px;
    }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
    .registration3-box h1 {
        font-size: 20px;
    }

    .form-row3 {
        flex-direction: column;
        gap: 10px;
    }

    .form-group3 label {
        font-size: 13px;
    }

    input[type="text"], input[type="password"], select, .file-label, textarea, .list_box {
        font-size: 13px;
        padding: 6px;
    }

    .save-btn3, .save-btn4, .cancel-btn3, .cancel-btn4 {
        width: 100%;
        padding: 10px;
        font-size: 15px;
    }

    .form-actions3 {
        flex-direction: column;
        gap: 10px;
    }
}

.app-footer {
    width: 100%;
    background: #16216A;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.footer-item {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-item i {
    font-size: 22px;
    margin-bottom: 4px;
}


@media (max-width: 600px){
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #16216A;     /* Navy blue – same as your theme */
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.footer-item {
    color: white;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.footer-item:hover {
    opacity: 0.7;
}
}

.footer-nav {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 10px 0;
  z-index: 999;
}

.nav-links-list {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.nav-item-link a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000000;
  font-size: 12px;
}

.icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.nav-item-link.active-link a {
  color: #4f83ab;
  font-weight: bold;
}

 .mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1a237e; /* Dark Blue */
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    z-index: 100;
}

.mobile-footer .footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    flex: 1;
}

.mobile-footer .footer-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-footer .footer-btn:hover {
    color: #ffcc00; /* Highlight on hover/tap */
}


.upload-btn {
    /* ORIGINAL COLOR: #2e8b57 */
    background: #212b59;

    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 13px;
    text-transform: uppercase;
    /* Button 3D Effect */
    border-bottom: 3px solid #212b59;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
}





.profile-container {
  background: #f5f7fa;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* === Profile Box === */
.profile-box {
  background: #fff;
  width: 100%;
  max-width: 950px;
  border-radius: 10px;
  border: 1px solid #e0e3eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px 50px;
  font-family: "Segoe UI", sans-serif;
}

/* === Headings === */
.profile-box h1 {
  font-size: 26px;
  color: #1a237e;
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
  border-bottom: 3px solid #1a237e;
  display: inline-block;
  padding-bottom: 5px;
}

.profile-box h2 {
  background: #e8ecf9;
  border-left: 5px solid #1a237e;
  padding: 10px 15px;
  color: #1a237e;
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px;
  border-radius: 6px;
}

/* === Info Grid === */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 40px;
  margin-bottom: 15px;
}

.info-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #fafbff;
  border: 1px solid #e1e5ee;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.info-block:hover {
  background: #f3f6ff;
}

.info-block label {
  width: 45%;
  font-weight: 600;
  color: #333;
}

.label-value {
  flex: 1;
  color: #222;
  font-weight: 500;
}

/* === Table Grid (if used) === */
.profile-gridview {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}

.profile-gridview th {
  background: #1a237e;
  color: #fff;
  padding: 8px;
  text-align: left;
}

.profile-gridview td {
  padding: 8px;
  border-bottom: 1px solid #d9dce4;
}

.profile-gridview tr:nth-child(even) {
  background: #f5f7ff;
}

/* === Modal Popup (if any) === */





 .modalBackground
        {
            background-color: Black;
            filter: alpha(opacity=40);
            opacity: 0.6;
        }
        .modalPopup
        {
			height:auto;
			overflow:scroll;
            background-color: #FFFFFF;
            width: 940px;
            border: 0px solid #333;
			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;
		}























.modal-bg {
  background-color: rgba(0, 0, 0, 0.6);
}

.popup-box {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  border: 2px solid #1a237e;
  width: 80%;
  max-width: 900px;
  margin: auto;
}

.popup-close {
  text-align: right;
  margin-bottom: 10px;
}

.popup-close img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.popup-close img:hover {
  transform: scale(1.2);
}

/* === Responsive === */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-box {
    padding: 20px;
  }

  .info-block label {
    width: 40%;
  }
}



/* === PRINT EXACTLY LIKE SCREEN (A4) === */
@media print {
  body * {
    visibility: hidden; /* Hide everything */
  }

  .profile-container, 
  .profile-container * {
    visibility: visible; /* Show only profile section */
  }

  .profile-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;    /* A4 width */
    min-height: 297mm; /* A4 height */
    margin: 0;
    padding: 20mm;
    box-shadow: none;
    border: none;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: #f5f7fa !important; /* Keep background */
  }

  .profile-box {
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e0e3eb !important;
    padding: 40px 50px !important;
  }

  .profile-box h1,
  .profile-box h2,
  .info-block,
  .profile-gridview th,
  .profile-gridview tr:nth-child(even) {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Keep original layout proportions */
  html, body {
    width: 210mm;
    height: 297mm;
    margin: 0;
    padding: 0;
    background: #f5f7fa !important;
    overflow: visible !important;
  }

  @page {
    size: A4;
    margin: 10mm;
  }
}








    /* Section */
    .section {
      margin-top: 20px;
      border-radius: 10px;
      padding: 0px 18px;
      background: linear-gradient(145deg, #fefefe, #f5f5f7);
      box-shadow:
        2px 2px 5px rgba(0, 0, 0, 0.1),
        -2px -2px 5px rgba(255, 255, 255, 0.7);
      border: 1px solid #ddd;
    }

    .section-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary);
      border-left: 4px solid var(--accent);
      padding-left: 8px;
      margin-bottom: 14px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* Field Layout */
    .member-details-wrapper {
      display: flex;
      gap: 12px;
    }

    .member-fields {
      flex: 3;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .member-photo-vertical {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .photo-img-vertical {
      width: 120px;
      height: 120px;
      border: 2px solid var(--accent);
      border-radius: 8px;
      object-fit: cover;
      padding: 2px;
      background: linear-gradient(145deg, #ffffff, #f5f5f7);
      box-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.2),
        -2px -2px 4px rgba(255, 255, 255, 0.6);
    }

    .field {
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: linear-gradient(145deg, #ffffff, #f7f7f7);
      padding: 6px 8px;
      box-shadow:
        inset 1px 1px 3px rgba(255, 255, 255, 0.8),
        inset -1px -1px 3px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
    }

    .field:hover {
      box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.08),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);
      transform: scale(1.01);
    }

    .field span {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      margin-bottom: 4px;
    }

    .display-box {
      min-height: 24px;
      background: linear-gradient(145deg, #f0f0f0, #ffffff);
      border-radius: 4px;
      border: 1px dashed var(--border);
      box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.05),
        inset -1px -1px 2px rgba(255, 255, 255, 0.6);
    }

    .display-box-textarea {
      height: 60px;
    }

    .form-grid {
      display: grid;
      gap: 10px;
    }

    .form-grid.cols-2 {
      grid-template-columns: repeat(2, 1fr);
    }

    .form-grid.cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .form-grid.cols-4 {
      grid-template-columns: repeat(4, 1fr);
    }

    .field--full {
      grid-column: 1 / -1;
    }

    /* ID Images */
    .id-images {
      display: flex;
      gap: 20px;
      justify-content: space-around;
      flex-wrap: wrap;
      background: linear-gradient(145deg, #ffffff, #f5f5f5);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 14px;
      box-shadow:
        inset 1px 1px 3px rgba(255, 255, 255, 0.8),
        2px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .id-field {
      text-align: center;
    }

    .id-field p {
      font-weight: 600;
      color: var(--primary);
      font-size: 13px;
      margin-bottom: 5px;
    }

    .manual-img {
      width: 100px;
      height: 100px;
      border: 2px solid var(--accent);
      border-radius: 6px;
      object-fit: cover;
      background: linear-gradient(145deg, #ffffff, #f6f7f9);
      padding: 2px;
      box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.2),
        -2px -2px 6px rgba(255, 255, 255, 0.6);
    }
