@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');


:root {
  --bg-color: #101820;
  --text-color: #ffffff;
  --container-bg: rgba(255, 255, 255, 0.05);
  --container-shadow: rgba(0,0,0,0.25);
}

.light-theme {
  --bg-color: #f2f2f2;
  --text-color: #101820;
  --container-bg: rgba(0, 0, 0, 0.03);
  --container-shadow: rgba(0,0,0,0.1);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.container, .password-clipboard, .tools-section, .faq-section {
  background-color: var(--container-bg);
  box-shadow: 0 10px 30px var(--container-shadow);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}



.container {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.btn span {
  font-weight: 500;
}


@media (max-width: 600px) {
  .logo-img {
    max-width: 140px;
  }

  .container {
    padding-top: 2rem;
  }
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  animation: fade-in 1s ease-in-out forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.logo-top {
  position: relative;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}


@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


.password-display {
  background-color: #f2f2f2;
  color: #101820;
  padding: 1rem;
  min-height: 3.5rem;
  height: auto;
  width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  word-break: break-word;
  text-align: center;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.password-clipboard {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

#passwordStrength {
  transition: all 0.3s ease;
  animation: fade-in 0.4s ease-in-out;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}





.social-icons a {
  color: white;
  font-size: 20px;
  margin-right: 10px;
}

/* Page layout wrapper to push footer down */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Let main container grow, footer stays at bottom */
.container {
  flex: 1;
}

/* Footer improvements */
footer {
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: white;
  background-color: #1f2937;
  border-top: 1px solid #2a3749;
}

footer a {
  color: #60a5fa;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}



.button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  
}

.button-container button {
  margin: 0 5px;
}

#characterCount {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}




.weak {
  color: #ff4d4d;
}

.medium {
  color: #ffa500;
}

.strong {
  color: #4caf50;
}

.password-display-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.icon-button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.icon-button:hover {
  transform: rotate(90deg);
  color: #0dcaf0;
}

/* Spin animation keyframes */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Class to trigger spin */
.spin {
  animation: spin 0.5s ease-in-out;
}
.button-container.single-button {
  justify-content: center;
}

.button-container.single-button button {
  margin: 0 auto;
  font-size: 1.25rem;
  padding: 0.75rem 2rem;
}

/* Button success animation */
.copy-success {
  animation: pop 0.4s ease;
  background-color: #198754 !important; /* Bootstrap success green */
  border-color: #198754 !important;
  color: #fff !important;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #101820;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200vh; /* enough to cover long pages */
  background-color: #101820;
  z-index: -2;
}

.password-clipboard {
  margin-bottom: 1rem;
}




#characterAmountRange {
  margin-bottom: 0.5rem;
}

#characterCount {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.form-check {
  margin-bottom: 1.25rem !important;
}

.button-container.single-button {
  margin-top: 2.5rem;
}


.password-display {
  max-width: 90vw;
  width: 500px;
}

.tools-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px; /* matches the soft curve in the screenshot */
  padding: 1.5rem 1rem; /* tighter spacing top/bottom */
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  max-width: 800px;
  margin: 3rem auto 2rem auto;
}

.tools-section h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}


.tools-section .btn {
  background-color: #0d6efd;
  color: #ffffff;
  flex-shrink: 0;
  min-width: 120px; /* smaller width */
  font-weight: 500;
  padding: 0.4rem 0.8rem; /* smaller padding */
  font-size: 0.9rem;       /* slightly smaller text */
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 8px rgba(13, 110, 253, 0.3); /* soft blue glow */
}

.tools-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.4);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  justify-content: center;
}

/* Optional: make buttons smaller and cleaner */
.tools-grid .btn {
  background-color: #0d6efd;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(13, 110, 253, 0.3);
  transition: all 0.2s ease-in-out;
}

.tools-grid .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.4);
}

.btn-copy-password {
  background-color: #0d6efd;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(13, 110, 253, 0.3);
  border: none;
}

.btn-copy-password:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.4);
}

#password-manager-btn {
  background-color: #ff2e43;
  border: none;
  box-shadow: 0 4px 10px rgba(255, 46, 67, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#password-manager-btn:hover {
  background-color: #e62438;
  transform: scale(1.05);
}

.logo-top {
  position: relative;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: fadeInTop 0.6s ease;
  text-align: center;
}



.logo-img {
  max-width: 180px; /* adjust to make it smaller */
  height: auto;
}

@media (max-width: 600px) {
  .logo-img {
    max-width: 140px;
  }

  .container {
    padding-top: 2rem;
  }
}

.logo-top {
  animation: fadeInTop 0.6s ease;
}

@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

input.styled-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #0d6efd;
  border-radius: 6px;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 10px;
}

input.styled-checkbox:checked {
  background-color: #0d6efd;
}

input.styled-checkbox::before {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 4px;
  color: white;
  font-size: 14px;
  line-height: 20px;
  display: none;
}

input.styled-checkbox:checked::before {
  display: block;
}

input.styled-checkbox:hover {
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}
/* Password Strength Section Styles */
.password-strength-section {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 2rem;
  max-width: 950px;
  margin: 4rem auto;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.password-strength-title {
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 1.8rem;
}

.password-strength-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.strength-box {
  flex: 1;
  min-width: 220px;
  padding: 1.2rem;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.strength-box:hover {
  transform: translateY(-6px);
}

.box-title {
  font-size: 1.3rem;
  color: #0dcaf0;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.strength-box p {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.4;
}

/* FAQ Section Styling */
.faq-section {
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  text-align: center;
  color: #ffffff;
  margin: 4rem auto;
}

.faq-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq {
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background-color: transparent;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq.active .faq-question::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(255,255,255,0.05);
}

.faq-answer p {
  padding: 1rem 1.5rem;
  margin: 0;
  text-align: left;
}

.main-title {
  font-size: 3rem; /* Larger size for more impact */
  font-weight: 700;
  color: #ffffff;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 60%; /* underline effect */
  background: linear-gradient(90deg, #0dcaf0, #ff8820); /* vibrant gradient */
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(13, 202, 240, 0.6);
}

@media (max-width: 600px) {
  .main-title {
    font-size: 2.2rem;
  }
}

/* Related Blog Posts Section */
.related-blogs {
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.07);
  padding: 2rem;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: #ffffff;
  text-align: center;
}

.blogs-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.blogs-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.blog-link {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.blog-link:hover {
  transform: translateY(-4px);
  background-color: rgba(13, 202, 240, 0.3);
}

.main-title::after {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 6px #0dcaf0; }
  50% { box-shadow: 0 0 18px #ff8820; }
  100% { box-shadow: 0 0 6px #0dcaf0; }
}

.password-display.reveal {
  color: #4caf50;
}



@media (max-width: 500px) {
  .password-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .icon-buttons {
    justify-content: center;
  }

  .password-text {
    text-align: center;
  }
}



.password-text {
  font-size: 1.2rem;
  font-weight: 600;
  word-break: break-word;
  flex: 1; /* allow it to grow and fill space */
  text-align: left;
  overflow-wrap: anywhere;
}

.icon-buttons .icon-button {
  font-size: 1.4rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


.icon-buttons .icon-button {
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.password-box {
  background-color: #f2f2f2;
  color: #101820;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 90vw;
  width: 500px;
  margin: 0 auto; /* center horizontally */
  gap: 1rem;
}

.password-box .icon-button {
  color: #101820; /* dark text for visibility on light bg */
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.password-box .icon-button:hover {
  color: #0d6efd; /* Bootstrap blue for hover */
  opacity: 1;
}


.password-box .icon-button i {
  color: #101820 !important;
}

.password-box .icon-button:hover i {
  color: #0d6efd !important;
}

.animated-tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: #ffffff;
  min-height: 1.5em;
}

.fade {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Refined Toggle Switch for Passphrase Checkbox */
.form-check.form-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.form-check-input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 45px;
  height: 24px;
  background-color: #6b7280;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
  border: none;
  flex-shrink: 0;
}

.form-check-input[type="checkbox"]::before {
  content: '';
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.form-check-input[type="checkbox"]:checked {
  background-color: #0d6efd;
}

.form-check-input[type="checkbox"]:checked::before {
  transform: translateX(21px);
}

.form-check-label {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  text-align: left;
  flex: 1;
}

/* Media query to further adjust for small screens */
@media (max-width: 480px) {
  .form-check.form-switch {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 100%;
  }

  .form-check-label {
    font-size: 0.85rem;
    text-align: left;
  }
}

.container, .password-clipboard, .tools-section, .faq-section {
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-copy-password,
#password-manager-btn,
.tools-section .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-copy-password:hover,
#password-manager-btn:hover,
.tools-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4);
}

#password-manager-btn:hover {
  box-shadow: 0 10px 20px rgba(255, 46, 67, 0.4);
}

#strengthBarContainer {
  width: 100%;
  max-width: 300px;
  height: 10px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 10px;
  margin: 10px auto;
  overflow: hidden;
}

#strengthBar {
  height: 100%;
  width: 0%;
  background-color: #ff4d4d;
  transition: width 0.4s ease, background-color 0.4s ease;
}
.copy-success {
  animation: buttonPop 0.5s ease-out;
}

@keyframes buttonPop {
  0% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.icon-button {
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-button:hover {
  transform: rotate(360deg) scale(1.2);
  color: #0dcaf0;
}
.theme-toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.theme-toggle-checkbox {
  opacity: 0;
  position: absolute;
}

.theme-toggle-label {
  width: 50px;
  height: 26px;
  background-color: #6b7280;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.theme-toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  height: 20px;
  width: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.theme-toggle-checkbox:checked + .theme-toggle-label {
  background-color: #0d6efd;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-ball {
  transform: translateX(24px);
}

/* Fix theme text colors */
h1, h2, h3, h4, h5, h6,
.main-title,
.password-display,
.password-text,
.password-clipboard h5,
.tools-section h4,
.password-strength-title,
.faq-title,
.faq-subtitle,
.box-title,
.strength-box p,
.faq-question,
.faq-answer p,
.animated-tagline,
footer,
footer a,
.social-icons a,
#characterCount,
.form-check-label,
label {
  color: var(--text-color) !important;
}

/* Fix background colors for password-display */
.password-display, .password-box {
  background-color: var(--container-bg) !important;
  box-shadow: 0 2px 6px var(--container-shadow) !important;
}

/* Ensure button text color is visible */
.btn-copy-password, .tools-section .btn {
  color: #ffffff !important;
}

#password-manager-btn {
  color: #ffffff !important;
}

/* Adjust icons for visibility */
.password-box .icon-button, 
.password-box .icon-button i {
  color: var(--text-color) !important;
  opacity: 0.8;
}

.password-box .icon-button:hover, 
.password-box .icon-button:hover i {
  color: #0d6efd !important;
}
/* Root Theme Colors */
:root {
  --bg-color: #101820;
  --text-color: #ffffff;
  --container-bg: rgba(255, 255, 255, 0.05);
  --container-shadow: rgba(0, 0, 0, 0.25);
  --section-bg: #1f2937;
  --footer-bg: #111827;
  --password-display-bg: #374151;
}

.light-theme {
  --bg-color: #f2f2f2;
  --text-color: #101820;
  --container-bg: rgba(0, 0, 0, 0.03);
  --container-shadow: rgba(0, 0, 0, 0.1);
  --section-bg: #ffffff;
  --footer-bg: #e5e7eb;
  --password-display-bg: #e0e0e0;
}

/* Body Styling */
body {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Main Containers */
.container, 
.password-clipboard, 
.tools-section, 
.faq-section,
.password-strength-section {
  background-color: var(--container-bg) !important;
  box-shadow: 0 10px 30px var(--container-shadow) !important;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Password Display Container */
.password-display, 
.password-box {
  background-color: var(--password-display-bg) !important;
  box-shadow: 0 2px 6px var(--container-shadow) !important;
}

/* Footer and Sections */
footer {
  background-color: var(--footer-bg) !important;
  transition: background-color 0.4s ease;
}

/* Buttons for visibility */
.btn-copy-password, 
.tools-section .btn,
#password-manager-btn {
  color: #ffffff !important;
}

/* Text Colors Fix */
h1, h2, h3, h4, h5, h6,
.main-title,
.password-display,
.password-text,
.password-clipboard h5,
.tools-section h4,
.password-strength-title,
.faq-title,
.faq-subtitle,
.box-title,
.strength-box p,
.faq-question,
.faq-answer p,
.animated-tagline,
footer,
footer a,
.social-icons a,
#characterCount,
.form-check-label,
label {
  color: var(--text-color) !important;
}
.theme-toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.theme-toggle-checkbox {
  opacity: 0;
  position: absolute;
}

.theme-toggle-label {
  width: 60px;
  height: 30px;
  background-color: #6b7280;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  position: relative;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.theme-icon {
  font-size: 16px;
  color: #fff;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.theme-toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  height: 24px;
  width: 24px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-toggle-checkbox:checked + .theme-toggle-label {
  background-color: #0d6efd;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-ball {
  transform: translateX(30px);
}

.theme-toggle-checkbox:checked + .theme-toggle-label .sun {
  opacity: 0.3;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .moon {
  opacity: 1;
}

.theme-toggle-label .sun {
  opacity: 1;
}

.theme-toggle-label .moon {
  opacity: 0.3;
}
/* Global switch-style toggle for all checkboxes */
input[type="checkbox"].styled-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 45px;
  height: 24px;
  background-color: #6b7280;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  outline: none;
  border: none;
  transition: background-color 0.3s ease;
}

input[type="checkbox"].styled-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

input[type="checkbox"].styled-toggle:checked {
  background-color: #0d6efd;
}

input[type="checkbox"].styled-toggle:checked::before {
  transform: translateX(21px);
}
.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.modal.fade.show {
  opacity: 1 !important;
  display: block !important;
  pointer-events: auto;
  z-index: 1050;
}
#qrcode canvas {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

#qrcode canvas:hover {
  transform: scale(1.05);
}
.qr-share-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  animation: fade-in 0.8s ease-in;
}

.qr-box canvas {
  border-radius: 0.5rem;
  padding: 0.3rem;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease-in-out;
}

.qr-box canvas:hover {
  transform: scale(1.05);
}

.qr-share-wrapper p {
  margin: 0;
}
.qr-share-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.qr-code-box {
  padding: 0.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  display: inline-block;
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Light mode overrides */
.light-theme {
  --bg-color: #f9fafb;
  --text-color: #111827; /* base body text */
  --text-muted: #4b5563; /* darker subtext for contrast */
}
/* Fix light-mode text visibility for tools-section paragraphs */
.light-theme .tools-section p {
  color: var(--text-color) !important;
}
.light-mode .footer-copyright {
  color: #4b5563; /* Tailwind gray-600 */
}

.dark-mode .footer-copyright {
  color: #9ca3af; /* Tailwind gray-400/500 */
}
footer p {
  color: var(--text-color) !important;
}
/* Header sticks at the top but stays in the normal flow */
.logo-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}




.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0dcaf0;
}

@media (max-width: 768px) {
  .nav-links a {
    display: none;
  }
}

.theme-toggle-container.static-toggle {
  position: relative;
  top: auto;
  right: auto;
  margin-top: 0;
}
.text-brand-blue {
  color: #00B6E3; /* Exact branding blue */
}
.text-brand-blue:hover {
  color: #00D5FF; /* Lighter hover variant */
}
/* Ensure generated password text is visible */
.password-box,
.password-text,
#passwordActual,
#passwordMasked {
  color: var(--text-color);
}
.password-box,
.password-text,
#passwordActual,
#passwordMasked {
  color: var(--text-color);
}
/* Make Tactical Kit section text follow the active theme */
.tools-section h4,
.tools-section h5,
.tools-section p,
.tools-section li {
  color: var(--text-color) !important;
}
