* {
  padding: 0;
  margin: 0;
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #D8C3A5;
}

.nav-top-left, .nav-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8E8D8A;
}

.nav-top-left p{
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 0;
}

.nav-top-left img {
  width: 15px;
  height: 15px;
}

.nav-top-right img {
  width: 25px;
  height: 25px;
}

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: white;
  box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-bottom: 10px;
  z-index: 10;

}

.nav-right{
    display: flex;
    gap: 25px;
    margin-left: 220px;
}

.nav-right a{
    color: #8E8D8A;
    font-weight: 400;
    font-size: 16px;
}

.nav-right a:hover{
    color: #D8C3A5;
}

.nav-left img{
  width: auto;
  height: 70px;
}

.btn-appointment{
  border: none;
  background-color: #E85A4F;
  color: white;
  padding: 10px 30px 10px 30px;
  border-radius: 40px;
  text-decoration: none;
}

.btn-appointment a{
  text-decoration: none;
  color: white;
}


/* Dropdown wrapper */
.dropdown {
  position: relative;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
}

.nav-link{
  margin-top: 10px;
}

.nav-link a{
  text-decoration: none;
}

.nav-link span{
    color: #8E8D8A;
}
.nav-link span:hover{
    color: #D8C3A5;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  z-index: 999;
  padding: 10px 0;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #222;
  text-decoration: none;
  font-size: 16px;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

.bg-home{
  display: flex;
}

.bg-home-confirm{
  display: flex;
}

.bg-confirm{
  display: flex;               /* Make it a flex container */
  flex-direction: column;      /* Stack items vertically */
  align-items: center;         /* Center items horizontally */
  justify-content: center;     /* Center items vertically (optional) */
  
  line-height: 20px;
  background-color: rgba(255, 255, 255, 0.86);
  padding: 40px;
  border-radius: 30px;
}

.bg-confirm h1{
  font-size: 30px;
  font-weight: 200;
  color: #E85A4F;
  padding: 0;
  margin-bottom: 0;
}

.bg-confirm h4{
  font-size: 18px;
  font-weight: 200;
  color: #8E8D8A;
  padding: 0;
  margin-top: 0;
  letter-spacing: 5px;
}

.bg-confirm hr{
  width: 50%;
  border: none;              
  border-top: 1px solid #E85A4F;
  opacity: 1;                 
  margin: 10px auto; /* center horizontally */
}

.bg-confirm h2{
  font-size: 35px;
  font-weight: 700;
  color: #8E8D8A;
  padding: 0;
  margin-top: 20px;
  text-align: center;
}

.bg-confirm p{
  color: #8E8D8A;
  padding-top: 10px;
  text-align: center;
}

.confirm-left{
  display: flex;
}

.confirm-left img{
  height: auto;
  width: 30px;
}

.bg-header-confirm {
    background-image: url(./images/bg_img.jpg);
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;
    height: 600px;
    margin-top: -10px;
    width: 100%;
}

.overlay-confirm{
    background-color: rgba(120, 120, 120, 0.63);
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 40px;
    color: white;
    padding: 0 80px;
    gap: 200px;
}

.bg-header{
    background-image: url(./images/bg_img.jpg);
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;
    height: 600px;
    margin-top: -10px;
    width: 70%;
}

.bg-header-sd{
    background-image: url(./images/bg_img.jpg);
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;
    height: 1450px;
    margin-top: -10px;
    width: 50%;
}

.bg-header-cl{
    background-image: url(./images/bg_img.jpg);
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;
    height: 840px;
    margin-top: -10px;
    width: 50%;
}

.overlay{
    background-color: rgba(120, 120, 120, 0.63);
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 40px;
    color: white;
    padding: 0 80px;
    gap: 200px;
}

.overlay-signup{
    background-color: rgba(120, 120, 120, 0.63);
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 5px 40px;
    color: white;
    padding: 0 80px;
    gap: 200px;
}


.for-donor{
  display: flex;
  margin-top: 20px;
}

.bg-left{
  line-height: 20px;
  background-color: rgba(255, 255, 255, 0.8588235294117647);
  padding: 40px;
  border-radius: 30px;
}

.bg-left hr{
  width: 90px;
  border: none;              
  border-top: 1px solid #E85A4F;
  opacity: 1;                 
  margin: 10px 0;     
}

.bg-left h1{
  font-size: 60px;
  font-weight: 200;
  color: #E85A4F;
  padding: 0;
  margin-bottom: 0;
}

.bg-left h4{
  font-size: 35px;
  font-weight: 200;
  color: #8E8D8A;
  padding: 0;
  margin-top: 0;
  letter-spacing: 17px;
}

.bg-left p{
  color: #8E8D8A;
  padding-top: 10px;
}

.left-logo{
  display: flex;
}

.left-logo img{
  height: auto;
  width: 50px;
}

.for-donor button{
  padding: 7px 30px;
  border-radius: 30px;
  background-color: #E85A4F;
  border: none;
  color: white;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.for-donor button:hover {
  transform: translateY(-5px);  /* Moves the button up */
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.bg-right{
  background-color: rgba(255, 255, 255, 0.8588235294117647);
  padding: 40px;
  border-radius: 30px;
  width: 50%px;
}

.bg-right header{
  padding: 0;
  font-size: 70px;
  font-weight: 300;
  color: #E85A4F;
  text-align: center;
}

.bg-right h5{
  font-size: 20px;
  font-weight: 500;
  color: #8E8D8A;
  text-align: center;
  margin-bottom: 40px;
}


.field-input label{
  color: #222;
}

.field-input input{
  width: 100%;
  border: none;
  height: 50px;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  background-color: #EEEEEE;
}

.field-input select{
  width: 100%;
  border: none;
  height: 50px;
  padding: 10px 40px 10px 20px; /* Right padding for space near arrow */
  border-radius: 20px;
  margin-bottom: 20px;
  background-color: #EEEEEE;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center; /* <-- controls arrow spacing */
  background-size: 16px;
}

.field-button {
  display: flex;
  justify-content: center; 
  margin-top: 20px;
}

.field-button input{
  padding: 10px 40px;
  border-radius: 30px;
  background-color: #E85A4F;
  border: none;
  color: white;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.field-button input:hover {
  transform: translateY(-5px);  /* Moves the button up */
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.link, .link a{
  color: #222;
  font-size: 0.8rem;
  margin-left: 10px;
}

.link-bot, .link-bot a {
  color: #222;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* css for dashboard */

.sidebar{
  width: 250px;
  min-height: 100vh; /* Full height of screen */
  border-right: 1px solid rgba(34, 34, 34, 0.15); /* Visible border */
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  
}

.side-logo{
  margin-bottom: 40px;
}

.side-logo img{
  height: auto;
  width: 100%;
}

.side-content h2{
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(34, 34, 34, 0.6);
  letter-spacing: 2px;
}

.side-content i{
  padding-right: 7px;
  color: #E98575;
  size: 2px;
}

.side-content button{
    width: 240px;
    margin-left: -28px;
    text-align: left;
    background-color: #E98575;
    color: white;
    border: none;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 10px 30px 10px 30px;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 40px;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  margin-bottom: 20px;
  list-style: none;
}

.menu-link {
  display: flex;
  justify-content: left;
  cursor: pointer;
  color: #E98575;
  font-size: 16px;
  font-weight: 400;
}

.menu-link i {
  margin-right: 7px;
  size: 2px;
  color: rgb(233, 133, 117);
  align-content: center;
}

.arrow{
  margin-left: 100px;
}

.menu-item.active .menu-link {
  color: #E98575;
}

.menu-item.active .menu-link i {
  color: #E98575;
}

.submenu {
  margin-top: 10px;
  margin-left: 7px;
  display: none;
  flex-direction: column;
}

.menu-item.active .submenu {
  display: flex;
}

.submenu li {
  margin: 5px 0;
  list-style: none;
}

.submenu li a {
  color: #E98575;
  text-decoration: none;
  font-size: 14px;
  text-align: left;
}

.submenu-title {
  font-size: 12px;
  color: #E98575  ;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.nav-dash-top{
  display: flex;
  width: 100%;
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
  padding: 20px;
  justify-content: right;
  align-items: center;
}

.nav-dash-top h2{
  font-size: 1rem;
  font-weight: 300;
  margin-right: 20px;
}

.user-con {
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    border-left: 1px solid rgba(34, 34, 34, 0.15);
    position: relative; /* Ensure the dropdown positions correctly */
    cursor: pointer;
}

.user-con i {
    font-size: 30px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    background-color: white;
    display: none;
    z-index: 999;
    min-width: 100px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 0; /* Ensure no inner padding */
}

.dropdown-nav {
  position: absolute;
  top: 100%;
  right: 15px;
  background-color: white;
  display: none;
  flex-direction: column;
  z-index: 999;
  min-width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 10px;
  margin-top: 25px;
}

.dropdown-nav.active {
  display: flex;
}

.dropdown-menu a {
  display: flex;
  text-align: left;
  gap: 8px;
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.2;
}

.dropdown-nav a {
  display: block;
  text-decoration: none;
  color: #333;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}


.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.dropdown-nav a:last-child {
  border-bottom: none;
}

/* Hide toggle on desktop */
.mobile-nav-toggle-home {
  display: none;
}





.btn-dashboard {
    display: inline-block;
    padding: 8px 16px;
    color: #E98575;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}
.btn-dashboard.active {
    background-color: #E98575;
    border: none;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    text-align: left;
    padding: 10px 30px 10px 30px;
    color: white;
    font-size: 0.9rem;
    width: 100%;
    margin-left: -20px;
}

.btn-dashboard.active i{
  color: white;
}

/* css for content-containers */
.dashboard-home{
  display: flex;
}

.main-content{
  width: 100%;
  background-color: #f5f5f5;
}

.content-header{
  padding-bottom: 20px;
  padding-left: 80px;
  margin-top: 30px;
  
}

.content-header h1{
  font-size: 30px;
  color: #5B5B5B;

}

.content-header i{
  font-size: 24px;
  margin-right: 10px;
}

.content-container{
  display: flex;
  gap: 20px;
  padding-left: 80px;
}

.approved-con{
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 130px;
  padding: 20px;
  border-left: 4px solid green;
}

.approved-con h2{
  font-size: 0.7rem;
  color: green;
  font-weight: 700;
  margin-top: 20px;
}

.approved-con p{
  font-size: 3rem;
  color: #5B5B5B;
  font-weight: bold;
  margin-top: -15px;
}

.for-approval-con{
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 130px;
  padding: 20px;
  border-left: 4px solid #E85A4F;
}

.for-approval-con h2{
  font-size: 0.7rem;
  color: #E85A4F;
  font-weight: 700;
  margin-top: 20px;
}

.for-approval-con p{
  font-size: 3rem;
  color: #5B5B5B;
  font-weight: bold;
  margin-top: -15px;
}

.wishlist-con{
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 130px;
  padding: 20px;
  border-left: 4px solid #E98575;
}

.wishlist-con h2{
  font-size: 0.7rem;
  color: #5B5B5B;
  font-weight: 700;
  margin-top: 20px;
}

.wishlist-con a{
  text-decoration: none;
}

.wishlist-con p{
  font-size: 3rem;
  color: #5B5B5B;
  font-weight: bold;
  margin-top: -15px;

}

.followup-con{
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 130px;
  padding: 20px;
  border-left: 4px solid orange;
}

.followup-con h2{
  font-size: 0.7rem;
  color: orange;
  font-weight: 700;
  margin-top: 20px;
}

.followup-con p{
  font-size: 3rem;
  color: #5B5B5B;
  font-weight: bold;
  margin-top: -15px;
}

.not-approved-con{
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 130px;
  padding: 20px;
  border-left: 4px solid #5B5B5B;
}

.not-approved-con h2{
  font-size: 0.7rem;
  color: #5B5B5B;
  font-weight: 700;
  margin-top: 20px;
}

.not-approved-con p{
  font-size: 3rem;
  color: #5B5B5B;
  font-weight: bold;
  margin-top: -15px;
}

/* CSS FOR SPERM DONOR DASHBOARD */

.sperm-main-content{
  width: 100%;
}

.smcontent-upper{
  padding: 20px;
}

.smcontent-upper i{
  font-size: 20px;
  margin-right: 10px;
  align-content: center;
}

.smcontent-upper h1{
  font-size: 1.5rem;
}

.smcontent-upper span{
  font-size: 0.8rem;
}

.smcontent-header{
  background-color: white;
}

.smcontent-header tr{
  padding: 10px;
}

.smcontent-main{
  margin: 10px;
  border: 1px solid rgba(34, 34, 34, 0.15);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: auto;
}

.smcontent-record{
  display: flex;
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
  background-color: #f8f9fc;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 50px;
  align-items: center;
  padding-right: 20px;
  padding-left: 20px;
  gap: 580px;

}

.smcontent-record h4, i{
  font-size: 18px;
  margin-bottom: -2px;
}

.smcontent-record i{
  font-size: 13px;
  margin-right: 5px;
 
}

.smcontent-record button{
  background-color: #E98575;
  border: none;
  border-radius: 10px;
  padding: 5px 10px 5px 10px;
  color: white;
  font-size: 0.8rem;
}

.record-body{
  border: 1px solid rgba(34, 34, 34, 0.15);
  margin: 10px;
}

.record-body p{
  font-size: 1rem;
  padding: 25px 25px 0 25px;
  font-weight: 700;
  font-style: italic;
}

.styled-header {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9fbfd;
    font-size: 12px;
}

.styled-header thead{
  border: 1px solid rgba(0, 0, 0, 0.2);;
}

.styled-header th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: #4a5865;
    white-space: nowrap;
    vertical-align: bottom;
}

.styled-header tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* light grey for even rows */
}

.styled-header td {
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
    color: #4a5865;
    white-space: nowrap;
    vertical-align: bottom;
}

.sub-label {
    font-style: italic;
    font-size: 12px;
    color: #7d8a99;
}

.record-data table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.record-data td{
  font-size: 0.8rem;
}

.record-data th, .record-data td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.status.pending {
    color: red;
    font-weight: bold;
}

.status.approved {
    color: red;
    font-weight: bold;
}

.status.not-approved {
    color: red;
    font-weight: bold;
}

.status.follow-up {
    color: red;
    font-weight: bold;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    text-align: center;
    animation: fadeIn 0.2s ease-in-out;
}

.confirm-box p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirm-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.confirm-yes {
    background: #E98575;
    color: white;
}

.confirm-no {
    background-color: #ccc;
    color: black;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.approved-con a, .for-approval-con a,
.followup-con a, .not-approved-con a{
  text-decoration: none;
}

.confirm-modals {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.confirm-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.confirm-modal-content p {
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-buttons button {
    margin: 0 10px;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#confirmYes {
    background-color: #E98575;
    color: white;
}

#confirmNo {
    background-color: #ccc;
    color: black;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
   background-color: #fff;
    margin: 15% auto;
    padding: 20px 30px;
    border-radius: 10px;
    object-fit: contain;
    max-width: 50%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
    margin-top: 15px;
}

.modal-buttons button {
    margin: 0 10px;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#confirmDeleteBtn {
    background-color: #E98575;
    color: white;
}

#cancelDeleteBtn {
    background-color: #ccc;
    color: black;
}



/* Add Donor Design */

.add_donor_con {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.field-row select{
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px;
}

.field-row label {
    font-weight: 400;
    color:#333;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
}

.field-row .field {
    flex: 1;
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

h3 {
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Search bar */

.search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    border: 1px solid #ccc;
    padding: 5px 10px;
    width: 300px;
    transition: all 0.3s ease;
    margin-left: 10px;
    margin-top: 10px;
}

.search:focus-within {
    border-color: #E98575;
    box-shadow: 0 0 5px rgba(233, 133, 117, 0.5);
}

.search input {
    border: none;
    outline: none;
    padding: 8px 12px;
    flex: 1;
    font-size: 14px;
    background: transparent;
}

.search button {
    background: #E98575;
    border: none;
    outline: none;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search button:hover {
    background: #d26a5d;
}

#search-results {
    margin-top: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

/* Image Container */

.upload-form{
  margin-left: 40%;
}

.add-btn{
  background: #d26a5d;
  color: white;
  width: 20%;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.gallery-item {
    flex: 1 1 20%;
    max-width: 200px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.image_con{
  margin: 10px;
  border: 1px solid rgba(34, 34, 34, 0.15);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: auto;
  padding-bottom: 20px;
}

.image_con form{
  padding-left: 10px;
}

.image_con i{
  margin-right: 5px;
}

.image-con-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    background-color: #f8f9fc;
    border-bottom: 1px solid rgba(34, 34, 34, 0.15);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 50px;
}

.image-con-header h4 {
    margin: 0;
    line-height: 1;
    font-size: 18px;
}

.image-con-header i {
    font-size: 25px;
}

.image_con input{
  border: none;
}

/* Logout Button */

.log-button{
  width: 50%;
  margin-left: 50px;
}

.logout-button{
  background-color: #E98575;
  border-radius: 30px;
  padding: 5px 10px 5px 10px;
  height: 40px;
  width: 50%;
  margin-left: 47px;
  margin-top: 250px;
}

.logout-button a{
  color: white;
  text-decoration: none;
  margin: 20px;
}

/* Error notif */

.notification.error {
    background-color: #ffdddd;
    border-left: 6px solid #f44336;
    padding: 12px;
    margin: 10px 0;
    color: white;
    font-weight: bold;
    width: 100%;
}

.notification-success {
  background-color: #deffdd;
    border-left: 6px solid #69f436;
    padding: 12px;
    margin: 10px 0;
    color: #5aa942;
    font-weight: bold;
    width: 100%;
}

/* Image Wrapper */

.image-wrapper {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.image-wrapper i{
  margin-left: 5px;
}

.image-wrapper img {
    width: 300px;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Position delete button in top-right */
.image-wrapper .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 6px 6px;
    cursor: pointer;
    z-index: 10;
}

.image-wrapper .delete-btn:hover {
    background-color: rgba(255, 0, 0, 1);
}

.image-wrapper .favorite-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(255, 215, 0, 0.8); /* gold/yellow */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 6px 6px;
    cursor: pointer;
    z-index: 10;
}

.image-wrapper .favorite-btn.active {
    background-color: rgba(255, 215, 0, 1);
}

.image-wrapper .favorite-btn:hover {
    background-color: rgba(255, 215, 0, 1);
}


/* cl dashboard */

.cl-dashboard * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cl-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f5f5f5;
}

.sd-container {
    background-color: white;
    border-radius: 8px;
    padding: 10px 10px 20px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.2s ease;
}

.sd-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sd-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.sd-container span {
    display: block;
    font-size: 14px;
}

.sd-container button {
    background-color: #E98575;
    border: none;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sd-container button:hover {
    background-color: #d26a5d;
}


.favorite-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.favorite-button {
    background: none !important;
    border: none !important;
    font-size: 30px !important;
    cursor: pointer;
    color: #E98575;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.favorite-button:hover {
    transform: scale(1.1);
}

.favorite-button.favorited {
    color: #E98575; /* pink when favorited */
}

.favorite-button:hover {
    transform: scale(1.1);
}

.delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.ex-btn {
    background: none !important;
    border: none !important;
    font-size: 30px !important;
    cursor: pointer;
    
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.ex-btn i{
  color: #E98575;
}


/* Image overlay */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.image-modal .modal-content {
    display: block;
    margin: auto;
    width: 100%;
    height: 80%;
}
/*
.image-modal .close {
    position: absolute;
    top: 20px;
    right: 280px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
} */

/* Main Search Bar */

.donor-filter {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.filter-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.filter-form input,
.filter-form select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    min-width: 100px;
}

.filter-form label {
    font-weight: bold;
    margin-right: 5px;
}

.btn-search {
    background-color: #E98575;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-clear {
    background-color: #ccc;
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}

/* Setting Content */

.settings-content{
  padding-left: 60px;
  padding-top: 40px;
}

.settings-content h3{
  border: none;
}

.settings-content hr{
  width: 80%;
}

.password-change input{
  width: 30%;
  margin-bottom: 10px;
}

.password-btn{
  background-color: #E98575;
  padding: 10px;
  border-radius: 20px;
  border: none;
  color: white;
  margin-top: 10px;
}

.notification {
    background-color: #ffdddd;
    border-left: 6px solid #f44336;
    padding: 12px;
    margin: 10px 0;
    color: #a94442;
    font-weight: bold;
    width: 40%;
}

.notification.error {
    background-color: #d9534f;
}

.notification.success {
    background-color: #5cb85c;
}

/* Username & Passwords*/

.users_pass{
  background-color: white;
  width: 50%;
  padding: 20px;
  margin-left: 20px;
  margin-top: 40px;
}

.users_pass h2{
  color: red;
}

.btn-star {
  border: none;
  background-color: #f8f9fc;
  font-size: 0.8rem;
  margin-left: 800px;
}

.btn-star i{
  color: #E98575;
}

/* Choose your Donor */

.body_con{
  background-image: url("images/bg_img.jpg");
  background-size: cover;      
  background-position: center;  
  background-repeat: no-repeat;
  height: 600px;
  margin-top: -10px;
  width: 100%;
}

.choice_con{
  display: flex;
  
}

.ed_con{
  background-color: rgba(255, 255, 255, 0.717);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column; /* or row, depending on your layout */
  align-items: center; /* centers items horizontally if column */
  justify-content: center; 
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.ed_con:hover{
  background-color: white;
}

.ed_con h1{
  color: #5B5B5B;
}

.sd_con{
  background-color: rgba(255, 255, 255, 0.717);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column; /* or row, depending on your layout */
  align-items: center; /* centers items horizontally if column */
  justify-content: center; 
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.sd_con:hover{
  background-color: white;
}

.sd_con h1{
  color: #5B5B5B;
}

.choice_con{
  gap: 20px;
  justify-content: center;
}

.choice_con a{
  text-decoration: none;
}

.overlay-choose{
    background-color: rgba(120, 120, 120, 0.63);
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 150px;
}

.choose_con{
  text-align: center;
  margin-bottom: 40px;
}

.choose_con h1{
  font-size: 4rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Forgot Password Page */

.changePass-container{
  background-color: rgba(255, 255, 255, 0.904); 
  border-radius: 30px;
  color: black; 
  padding: 20px;
}

.changePass-container h2{
  padding-left: 22%;
  margin-bottom: 20px;
}

.changePass-container form input{
  width: 100%;
}

.changePass-container form button{
  margin-top: 20px;
  background-color: #E98575;
  padding: 10px 15px 10px 15px;
  border-radius: 20px;
  border: none;
  color: white;
  margin-left: 25%;
}

.reset-password{
  background-color: rgba(255, 255, 255, 0.904);
  border-radius: 30px;
  color: black; 
  padding: 20px;
}

.reset-password form input{
  width: 100%;
  margin-top: 20px;
}

.reset-password form button{
  border: none;
  background-color: #E98575;
  padding: 10px 15px 10px 15px;
  border-radius: 20px;
  margin-top: 20px;
  color: white;
  margin-left: 30%;
}

.reset-password h2{
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    text-align: center;
    font-weight: bold;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
}

/* Scroll-up Button */

#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 100; /* Stay on top */
  font-size: 30px;
  border: none;
  color: #E85A4F;
  cursor: pointer;
  transition: opacity 0.3s ease;
  background-color: rgba(255, 255, 255, 0);
}

.donor-login{
  display: none;
}

.donor-login a{
  background-color: #E98575;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  padding: 10px;
}

.form_design_phone{
  display: none;
}

/* Tablets (768px to 1024px) */
@media (max-width: 1024px) {
  #scrollTopBtn {
    bottom: 30px;
    right: 30px;
    font-size: 26px;
  }
}

/* Mobile (less than 768px) */
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    font-size: 50px;
  }
}

/* Responsive Design */

.mobile-nav-toggle {
    display: none;
    position: relative;
    z-index: 1100;
    margin-right: 130px;
}

.mobile-nav-toggle button {
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

 .dashboard-home {
        min-height: 100vh;
        display: flex;
        flex-direction: row; /* or column for mobile if needed */
        background-color: #f5f5f5;
    }

    .btn-dashboard {
        flex: 1 1 45%;
        margin: 5px;
        text-align: center;
        font-size: 14px;
        padding: 10px 5px;
    }

    .main-content {
        padding: 15px;
    }



/* =============================
   Tablets (768px to 1024px)
============================= */
@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: block; /* ✅ Show hamburger toggle on tablet/mobile */
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        background: #f5f5f5;
        overflow-y: auto;
        transform: translateX(-100%); /* ✅ Hidden by default */
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 15px;
    }

    .sidebar.active {
        transform: translateX(0); /* ✅ Slide in when active */
    }

    .sperm-main-content {
        margin-left: 0 !important; /* Prevent shift when sidebar opens */
        padding: 15px;
    }

    .cl-dashboard {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .sd-container {
        width: 45%;
        padding: 10px;
    }

    .donor-filter .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .donor-filter input,
    .donor-filter select {
        width: 100%;
    }

    .nav-dash-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-top {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 30px;
    }

    .nav-top-left,
    .nav-top-right {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .nav-main {
    display: none;
  }

  .mobile-nav-toggle-home {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
  }

  .mobile-nav-toggle-home button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .dropdown-nav {
    position: absolute;
    top: 60px;
    right: 15px;
    width: 80%;
    max-width: 300px;
  }

    .nav-left img {
        width: 120px;
    }

    .nav-right {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-top: 0;
    }

    .bg-home {
        flex-direction: row;
        justify-content: space-between;
    }

    .bg-left,
    .bg-right {
        width: 100%;
        padding: 0;
        border-radius: 0;
        margin-top: 10px;
    }

    .bg-left h1 {
        font-size: 32px;
    }

    .dropdown-content {
        position: absolute;
    }
}


/* =============================
   Mobile (below 768px)
============================= */
@media (max-width: 768px) {

    .navigation{
      flex-direction: row;
    }

    .side-logo{
      height: auto;
      width: 150px;
      margin-left: 50px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .nav-main{
      transform: translateX(-250%);
    }

    .nav-main.active{
      transform: translateX(0);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sperm-main-content {
        margin: 0;
        padding: 10px;
    }

    .cl-dashboard {
        flex-direction: column;
        gap: 15px;
    }

    .sd-container {
        width: 80%;
        padding: 10px;
        margin: auto;
    }

    .donor-filter h3 {
        font-size: 18px;
    }

    .donor-filter .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .donor-filter input,
    .donor-filter select {
        width: 100%;
        padding: 8px;
    }

    .nav-dash-top {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .nav-dash-top h2 {
        font-size: 20px;
    }

    .user-con {
        font-size: 18px;
    }

    .btn,
    .btn-search,
    .btn-clear {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        text-align: center;
    }

    #scrollTopBtn {
      position: fixed;
      bottom: 15px;
      right: 15px;
      padding: 8px 10px;
      font-size: 30px;
    }


    .image-modal .modal-content {
        max-width: 90%;
        max-height: 60vh;
    }


    .image-modal .close {
        font-size: 30px;
        right: 20px;
        top: 15px;
    }

    .image_con{
      padding: 10px;
    }

    .image-con-header{
      margin: -10px;
    }

    .add_donor_con{
      margin: 0;
      padding: 20px;
      border-radius: 0;
      box-shadow: none;
    }

    .btn-star{
      margin-left: 150px;
    }

    .nav-top{
      flex-direction: row;
      justify-content: space-between;
      padding: 15px;
    }

    .nav-top-left{
      flex-direction: row;
      gap: 5px;
      margin-right: 0;
    }

    .nav-top-left img{
      width: 10px;
      height: auto;
    }

    .nav-top-left p{
      font-size: 0.6rem;
    }

    .nav-top-right{
      flex-direction: row;
      gap: 5px;
    }

    .nav-top-right img{
      width: 15px;
      height: auto;
      margin-left: 0;
    }
.nav-main {
    display: none;
  }

  .mobile-nav-toggle-home {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .mobile-nav-toggle-home button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .dropdown-nav {
    position: absolute;
    top: 60px;
    right: 15px;
    width: 80%;
    max-width: 300px;
  }

  .bg-header{
    display: none;
  }

  .bg-header-cl{
    display: none;
  }

  .bg-header-sd{
    display: none;
  }

  .form_design {
  width: 100%;
  max-width: 300px; /* Prevents the form from becoming too wide on large screens */
  margin: 0 auto;   /* Center the form horizontally */
  padding: 10px;
  box-sizing: border-box;
}

.field-input {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field-input input {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.field-button input.log-button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: #E98575;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.field-button input.log-button:hover {
  background-color: #E85A4F;
}

.link, .link-bot {
  text-align: center;
  margin-top: 10px;
}

.notification.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  width: 100%;
}

.bg-right{
  margin-bottom: 40px;
}

.bg-right header{
  font-size: 3.8rem;
  margin-top: 10px;

}

.bg-right h5{
  font-size: 0.9rem;
}

.link-bot{
  margin-top: -20px;
}

.field-button{
  margin: 0;
  padding: 10px 0px 10px 0px;
}

.donor-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  margin: 20px auto;
  text-align: center;
}

.donor-login p{
  font-size: 0.6rem;
}

.form_design_sd{
  display: none;
}

.form_design_phone{
  width: 100%;
  max-width: 300px; /* Prevents the form from becoming too wide on large screens */
  margin: 0 auto;   /* Center the form horizontally */
  padding: 10px;
  box-sizing: border-box;
  display: block;
}

.smcontent-record{
  gap: 25px;
}

.smcontent-record h6{
  font-size: 0.7rem;
  margin: 0;
}

.smcontent-record h4{
  font-size: 0.7rem;
}

.record-body p{
  font-size: 1rem;
}

.btn-dashboard {
  flex: 1 1 100%;
}

.content-container > div {
  font-size: 14px;
  padding: 15px;
}

.content-container p {
  font-size: 24px;
}


  .overlay-choose {
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 90px 20px 40px 20px;
  }

  .choose_con h1 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .choice_con {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .ed_con{
    width: 135%;
    max-width: 320px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: -20px;
  }

  .sd_con {
    width: 100%;
    max-width: 320px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .ed_con img, .sd_con img {
    width: 60px;
    margin-bottom: 10px;
  }

  .ed_con h1, .sd_con h1 {
    font-size: 18px;
    color: #222;
  }
  
  .settings-content{
    padding: 30px;
  }

  .settings-content input{
    width: 40%;
  }

}
