/* Universal defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

:root {
  --welcome-text-color: #000000; 
}

.dark-mode {
  --welcome-text-color: #ffffff;
}


body {
  background-color: #f4f5f5;
  font-family: sans-serif;
}


.page {
  display: none;
}
.active {
  display: block;
}


.icon-button {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  font-size: 30px;
  color: blue;
  cursor: pointer;
  z-index: 1000;
  max-width: 100vw;
}


.custom-box {
  position: relative;
  top: 37px;
  left: 38px;
  width: 90%;
  height: 580px;
  max-width: 1170px;
  max-height: 2000px;
  margin-left: 0;
  padding: 20px;

  border-radius: 7px;
  text-align: center;
  z-index: 1;
}


@media (min-width: 768px) {
  .custom-box {
    transform-origin: left;
    transform: scaleX(1.08);
  }
}

@media (max-width: 767px) {
  .custom-box {
    transform: none;
    width: 95%;
    height: 706px;
    padding: 16px;
  }
}

.img {
  position: absolute;
  top: 2px;
  left: 3px;
  width: auto;
  height: 47px;
  max-width: 100vw;
  transition: filter 0.3s ease;
}

.dark-mode .img {
  filter: invert(1); 
}


.welcome-text {
  position: absolute;
  top: 15px;
  left: 48px;
  font-size: 20px;
  font-weight: bold;
  color: var(--welcome-text-color);
  margin: 0;
  z-index: 10;
}

:root {
  --box-bg: #e5e0e0; 
  --box-border: #fafafa;
}

.dark-mode {
  --box-border: 	#575555; 
  --box-bg: 	#121212;
}

.box {
  position: absolute; 
  width: 317px;
  background-color: var(--box-bg);
  border: 3px solid var(--box-border);
  border-radius: 7px;
  padding: 20px;
  z-index: 1;
  overflow-y: auto;
  top: 38px;
  left: 39px;
}

/* Laptop / Tablet */
@media (min-width: 768px) {
  .box {
    width: 319px;
    max-width: 100%;
    height: 600px;
    top: 37px;
    left: 39px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .box {
    width: 50%;        /* ✔ mobile me sirf 1% width */
    height: 705px;
    top: 40px;
    left: 10;          /* ✔ bilkul left se chipak jayega */
    padding: 5px;     /* ✔ chhota padding */
    overflow: hidden; /* ✔ content hide so box looks like bar */
  }
}


:root {
  --bix-bg: #e5e0e0; 
  --bix-border: #fafafa;
}

.dark-mode {
  --bix-border: 	#575555;
  --bix-bg: 	#121212;
}

.bix {
  position: absolute;
  top: 17px;
  left: 353px; 
  display: block;
  width: auto;
  max-width: 1000000px;
  min-width: 10px;
  margin: 20px auto;
  padding: 5px 15px;
  background-color: var(--bix-bg);
  border-radius: 7px;
  border: 3px solid var(--bix-border);
  z-index: 1000;
  box-sizing: border-box;
  height: auto;
    display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  padding: 4px 25px;
  margin: 20px auto;
  max-width: 10000000px;
  box-sizing: border-box;
  gap: 8px;
}

:root {
  --bix-h1-color: #000000; /* Light mode text color */
}

.dark-mode {
  --bix-h1-color: #fff; /* Light mode text color */
}

.bix h1 {
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-align: left;
  color: var(--bix-h1-color);
  line-height: 1.4;
  letter-spacing: 0;
  box-sizing: border-box;
  flex: 1;
  font-size: 23px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}



/* ✅ Large Screens (Desktop / Laptop) */
@media (min-width: 900px) {
  .bix {
    width: 900px;
  }
}

/* ✅ Medium Screens (Tablet) */
@media (min-width: 768px) and (max-width: 1199px) {
  .bix {
    width: 96%;
  }
}

/* ✅ Small Screens (Mobile) */
@media (max-width: 768px) {
  .bix {
    width: 95%;
    

  }
}

:root {
  --bx-bg: #e5e0e0; /* Light mode text color */
  --bx-border: #fafafa;
}

.dark-mode {
  --bx-border: 	#575555; /* Dark mode text color */
  --bx-bg: 	#121212;
}
.bx {
  position: absolute;
  top: 57px;
  left: 3px;         /* Pehle 5px tha, ab 4px for 1-2px extra width */
  right: 3px;        /* Pehle 5px tha, ab 4px */
  width: auto;
  height: 541px;
  margin: 20px auto;
  margin-left: 1px;
  padding: 20px;
  background-color: var(--bx-bg);
  border-radius: 7px;
  border: 3px solid var(--bx-border);
  text-align: center;
  z-index: 1;
  box-sizing: border-box;
}

/* ✅ Large Screens (Desktop / Laptop) */
@media (min-width: 900px) {
  .bx {
    width: 900px;
  }
}

/* ✅ Medium Screens (Tablet) */
@media (min-width: 768px) and (max-width: 1199px) {
  .bx {
    width: 96%;
  }
}

/* ✅ Small Screens (Mobile) */
@media (max-width: 768px) {
  .bx {
    width: 95%;
    

  }
}
/* Remove media queries with fixed widths */
/* Instead, rely only on width: auto with left & right spacing */

/* Small Screens (Mobile) */


/* Icon container */
.icon-container {
  position: fixed;
  top: 8px;
  bottom: 96.5%;
  right: 1%;
  display: flex;
  flex-wrap: nowrap;  /* no wrap */
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px;
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;

}






.add-avatar-container {
  position: absolute;
  top: 35px;
  left: 38.8%;                  /* Center horizontally */
  transform: translateX(-50%); /* Exactly center the element */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}




:root {
  --plus-button-bg: #000;  /* Light mode: black bg */
  --plus-button-color: #fff;  /* Light mode: white icon */
}

.dark-mode {
  --plus-button-bg: #fff;  /* Dark mode: white bg */
  --plus-button-color: #000;  /* Dark mode: black icon */
}


/* Plus Button */
.plus-button {
  position: relative;
  width: 80px;
  height: 80px;
  font-size: 60px;
  background-color: var(--plus-button-bg);
  color: var(--plus-button-color);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  max-width: 100vw;
  z-index: 100;
}


.plus-button::after {
  content: "";
  position: absolute;
  width: 93px;
  height: 120px;
  top: -8px;
  left: -8px;
  border: 2px solid #fff;
  background-color: #00000022; /* ← YAHI SE HALKA PURPLE EFFECT AATA HAI */
  border-radius: 15%;
  opacity: 0;
  z-index: -10;
  transition: all 0.3s ease;
  max-width: 100vw;
}

.plus-button:hover::after {
  opacity: 1;
  transform: scale(1);
}

:root {
  --add-text-color: #000;  /* Light mode: white icon */
}

.dark-mode {
  --add-text-color: #fff;  /* Dark mode: black icon */
}

.add-text {
  position: relative;
  font-size: 14px;
  color: var(--add-text-color);
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}

/* Toggle Button */
.toggle-button {
  position: relative;
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 30px;
  cursor: pointer;
}
.toggle-button::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}
.toggle-button.active {
  background: #333;
}
.toggle-button.active::before {
  transform: translateX(30px);
}

/* Reset Button */
.reset-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 300px;
  height: 45px;
  font-size: 20px;
  background: #e5e5e5;
  color: #ff4d4d;
  padding: 12px 25px;
  border: none;
  border-radius: 15px;
  margin: 20px auto;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100vw;
}
.reset-btn:hover {
  background-color: #ff4d4d;
  color: white;
}
      .dark-mode {
        background-color: #000000 !important;
        color: white !important;
      }

      :root {
  --sds-color: #000;  /* Light mode: white icon */
}

.dark-mode {
  --sds-color: #fff;  /* Dark mode: black icon */
}
      .sds{
        text-align: center;
         font-size: 32px;
          font-weight: 700;
           margin-bottom: 40px;
            color: var(--sds-color);
      }
      :root {
  --ads-color: #1f1937;  /* Light mode: white icon */
}

.dark-mode {
  --ads-color: #fff;  /* Dark mode: black icon */
}
      .ads{
        text-align: center;
         font-size: 2.5em;
          margin-bottom: 40px
          ; color: var(--sds-color);
      }






      .profileContainer{
        position: relative;
        bottom: 148px;
        left: 180px;
      }

      .reset-button {
  background: linear-gradient(135deg, #ff5500, #ff002b);
  color: white;
  font-size: 1.1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  top: 10px;
  overflow: hidden;
}

.reset-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: all 0.3s ease;
}

.reset-button:hover::before {
  opacity: 1;
}

.reset-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.reset-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}







:root {
  --plus-button-bg: #000;  /* Light mode: black bg */
  --plus-button-color: #fff;  /* Light mode: white icon */
}

.dark-mode {
  --plus-button-bg: #fff;  /* Dark mode: white bg */
  --plus-button-color: #000;  /* Dark mode: black icon */
}


/* Plus Button */
.fraind-profile {
  position: relative;
  bottom: 115px;
  left: 200px;
  width: 80px;
  height: 80px;
  font-size: 60px;
  background-color: var(--plus-button-bg);
  color: var(--plus-button-color);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  max-width: 100vw;
  z-index: 100;
}

.fraind-profile img {
  width: 94%;
  height: 94%;
  margin-top: -1px;
  object-fit: cover;       /* image crop ho kar circle me fit hogi */
  object-position: center; /* center align */
  border-radius: 50%;      /* image bhi circle me dikhni chahiye */
}

.fraind-profile::after {
  content: "";
  position: absolute;
  width: 93px;
  height: 120px;
  top: -8px;
  left: -8px;
  border: 2px solid #fff;
  background-color: #00000022; /* ← YAHI SE HALKA PURPLE EFFECT AATA HAI */
  border-radius: 15%;
  opacity: 0;
  z-index: -10;
  transition: all 0.3s ease;
  max-width: 100vw;
}

.fraind-profile:hover::after {
  opacity: 1;
  transform: scale(1);
}

:root {
  --add-text-color: #000;  /* Light mode: white icon */
}

.dark-mode {
  --add-text-color: #fff;  /* Dark mode: black icon */
}

.pa-text {
  position: relative;
  font-size: 14px;
  color: var(--add-text-color);
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  bottom: 125px;
  left: 201.5px;
}


.fraind{
  height: 75px;
   border-radius: 50px;
align-items: center;
}










/* Overlay blur background */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: 9998;
}

/* Modern Popup Box */
.popup-box {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 40px 30px 30px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  animation: popupFade 0.4s ease;
}

@keyframes popupFade {
  from { transform: translate(-50%, -40%) scale(0.95); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.popup-box h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #111827;
}

.popup-box p {
  color: #111213;
  font-size: 1em;
  margin-bottom: 25px;
}

.popup-login-btn {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.popup-login-btn:hover {
  background-color: #1e40af;
}


.popup-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  font-weight: bold;
  color: #6b7280;
  cursor: pointer;
}

.popup-close-btn:hover {
  color: #ef4444;
}


.profile-icon img {
    border-radius: 50%;  /* Circular profile image */
    width: 17px;          /* Adjust size as needed */
    height: 20px;         /* Adjust size as needed */
 
}









:root {
  --fa-user-bg: black; /* Light mode text color */
  --fa-user-color: white; /* Light mode text color */
}

.dark-mode {
  --fa-user-bg: 	white;
  --fa-user-color: black; /* Light mode text color */
}


.fa-user{
            font-size:15px; 
            background-color: var(--fa-user-bg); 
            color: var(--fa-user-color); 
            border-radius: 50%;  
            display: inline-flex; 
            align-items: center; 
            justify-content: center;
            width: 35px; 
            height: 26px;
            cursor: pointer;
            transition: 0.2s ease;
            
}

:root {
  --fa-user-hover-bg: black; /* Light mode text color */
  --fa-user-hover-color: white; /* Light mode text color */
}

.dark-mode {
  --fa-user-hover-bg: 	white;
  --fa-user-hover-color: black; /* Light mode text color */
}

.fa-user:hover{
  background-color: var(--fa-user-hover-bg);
  color: var(--fa-user-hover-color);
}




.profile-icon {
    position: relative;
    display: inline-block;
}

:root {
  --profile-icon-bg: rgba(0, 0, 0, 0.15); /* Light mode text color */
  --profile-icon-border: white; /* Light mode text color */
}

.dark-mode {
  --profile-icon-bg: 	rgb(43, 43, 43);
  --profile-icon-border: rgb(150, 145, 145); /* Light mode text color */
}
/* -------------------------------
   DEFAULT (Laptop & Computer)
--------------------------------*/
.profile-icon::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 64px;
    width: 140px;
    height: 150px;
    background: var(--profile-icon-bg);
    border-radius: 15px;
    border: 2px solid var(--profile-icon-border);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: -1;
}



/* ---------------------------------------
   MOBILE ONLY (Screen width ≤ 768px)
-----------------------------------------*/
@media (max-width: 768px) {
    .profile-icon::before {
        top: 20px;      /* yahi rakhna ho to same */
        left: 23%;      /* mobile par change yaha hoga */
        width: 140px;   /* yahi rakhna ho to same */
        height: 150px;  /* yahi rakhna ho to same */
    }
}


.profile-icon:hover::before {
    opacity: 1;
}


.profile-hover-btn {
    position: absolute;
    top: 153%;   /* icon ke just neeche */
    left: 165.9%;
    width: 110px;
    transform: translateX(-50%);
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: none; /* hidden hone par click na ho */
    transition: opacity 0.3s ease;
    font-weight: bold;
}
@media (max-width: 768px) {
    .profile-hover-btn {
        left: 111%;      /* mobile par change yaha hoga */

    }
}

.profile-icon:hover .profile-hover-btn {
    opacity: 1;
    pointer-events: auto; /* hover hone par clickable */
}

.fa-user {
  opacity: 0.5; 
  position: relative; 
  top: 30px;
  left: 95px; 
  width: 82px; 
  height: 82px; 
  font-size: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* Icon पर hover करने पर opacity 1 */
.fa-user:hover {
  opacity: 1;
}

/* Profile box hover होने पर भी icon की opacity 1 */
.profile-icon:hover .fa-user {
  opacity: 1;
}

:root {
  --profile-img-border: rgb(255, 255, 255); /* Light mode text color */
}

.dark-mode {
  --profile-img-border: rgb(150, 145, 145);
}


.profile-img{
        opacity: 0.5;
        position: relative;
        top: 30px;
        left: 95px;
        border: 2px solid var(--profile-img-border); 
        border-radius: 50%;
        cursor: pointer;
        transition: opacity 0.2s ease;
    
}

@media (max-width: 768px) {
    .profile-img { 
        left: 60%;      /* mobile par change yaha hoga */
        width: 140px;   /* yahi rakhna ho to same */
        height: 150px;  /* yahi rakhna ho to same */
    }
}

/* Image hover पर opacity 1 */
.profile-img:hover {
  opacity: 1;
}

/* Agar pura .profile-icon hover हो (box समेत) 
   to bhi image bright हो जाएगी */
.profile-icon:hover .profile-img {
  opacity: 1;
}


.sidebar-icons {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* icons ke beech gap */
    padding: 10px;
    
}



:root {
  --icon-box-bg: #ffffff69; /* Light mode text color */
  --icon-box-border: rgb(255, 255, 255);
}

.dark-mode {
  --icon-box-bg: rgb(85, 85, 85);
  --icon-box-border: rgb(199, 199, 199);
}

.icon-box {
    display: flex;
    align-items: center;
    gap: 10px; /* icon aur text ke beech ka gap */
    padding: 10px 15px;
    background: var(--icon-box-bg);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--icon-box-border);
}

.icon-box:hover {
    background: #9f9f9f;
    transform: translateX(5px); /* halka hover effect */
}


:root {
  --icon-box-i: #252525; /* Light mode text color */
}

.dark-mode {
  --icon-box-i: rgb(21, 21, 21);
}

.icon-box i {
    font-size: 18px;
    color: var(--icon-box-i);
}




:root {
  --icon-box-span-color: #252525; /* Light mode text color */
}

.dark-mode {
  --icon-box-span-color: rgb(21, 21, 21);
}


.icon-box span {
    font-size: 16px;
    font-weight: 500;
    color: var(--icon-box-span-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .icon-box {
        padding: 8px 12px;
    }
    .icon-box span {
        font-size: 14px;
    }
}

:root {
  --pc-bg: #f0eaea;
  --pc-border: #c3c3c3;
}

.dark-mode {
  --pc-bg: #222222;
  --pc-border: #575555;
}

.profilesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, auto));
  gap: 50px 100px;
  justify-content: start;
  margin-top: 180px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  width: 100%;
  max-width: 8000px;
  height: 320px;  /* Default height */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 40px;
  box-sizing: border-box;
  background: var(--pc-bg);
  border-radius: 25px 5px 5px 25px;
  border: 2px solid var(--pc-border);
}




.profilesContainer::-webkit-scrollbar {
  width: 10px;
}

.profilesContainer::-webkit-scrollbar-track {
  background: #ddd;
}

.profilesContainer::-webkit-scrollbar-thumb {
  background: #888;
}

.profilesContainer::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.profilesContainer::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -49px;
  width: 100%;
  height: 100%;
  background: var(--pc-bg);
  border-radius: 25px;
  z-index: -1;
}

.profile-box img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: block;
  margin: 10px auto;
  object-fit: cover;
  border: 2px solid black;
  cursor: pointer;
}

.profile-box {
  text-align: center;
  width: 70px;
  position: relative;
  cursor: pointer;
}

.profile-box:hover {
  transform: scale(1.1);
}

.no-profiles {
  margin-left: 50px;
  margin-top: 100px;
  font-weight: bold;
  color: rgb(142, 142, 142);

}

.no-login {
  margin-left: 200px;
  margin-top: 100px;
  font-weight: bold;
  color: rgb(142, 142, 142);

}


.logout-btn {
  margin-top: 20px;
  padding: 12px 30px;
  background: red;
  color: black;
  border: none;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
  background: #ff4d4d;
  color: white;
}
.bx, .bix {
  position: absolute;
  left: 353px !important;    /* Desktop static location */
  transition: none !important;
}
