/* Pulse attention for Save Changes button */
.save-attention {
  animation: savePulse 1.2s ease-in-out 3;
}

@keyframes savePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,193,7,0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255,193,7,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,193,7,0);
  }
}

.is-invalid {
  border-color: #dc3545 !important;
}


.preview-sticky {
  position: sticky;
  top: 20px; /* adjust based on header height */
}
#pdf_upload_btn:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

/* QR container centered cleanly */
.qr-section {
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: center;
}

/* Make QR tidy and centered */
.qr-section #public_qr {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

/* Center canvas inside */
#public_qr canvas {
    display: block !important;
    margin: 0 auto !important;
}

/* Make download button rounded and small */
.qr-section .btn {
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 14px;
}



.masq-global-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #b91c1c;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.masq-stop-btn {
  background: #ffffff;
  color: #b91c1c;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.masq-stop-btn:hover {
  background: #fee2e2;
  color: #991b1b;
}






.text-primary {
    color:  #0066cc !important;    
}






#qrcode canvas {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}



/* Fix Analytics Filter Buttons Height */
.analytics-filters a.btn {
    padding: 6px 14px !important;
    line-height: 1.2 !important;
    height: 38px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix form inputs so they match height cleanly */
.analytics-filters input.form-control {
    height: 38px !important;
    padding: 6px 10px !important;
}

/* Apply button same height */
.analytics-filters button.btn {
    height: 38px !important;
    padding: 6px 14px !important;
}

/* Optional: prevent vertical stretching inside flex */
.analytics-filters {
    align-items: center !important;
}



/* ============================
   DASHBOARD ELEMENTS
============================ */
.icon-pill {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#38bdf8, #0284c7);
  color: #fff;
}
.grid-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-wrap {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
}
.avatar-holder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  background: #f8f9fa;
}
.img-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.cover-preview, .avatar-preview {
  border-radius: 10px;
  object-fit: cover;
}


/* ============================
   ANALYTICS SECTION
============================ */
.analytics-card {
  border-radius: 16px;
  transition: all 0.25s ease;
  background-color: #fff;
}
.analytics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.08);
}
#analytics table td,
#analytics table th {
  font-size: 14px;
}



.lang-switch {
  background-color: #FED254 !important;  /* Infotap purple */
  color: black !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 12px;
  transition: background 0.3s ease;
}

.lang-switch:hover {
  background-color: #6f3fb1;
  color: #fff !important;
  text-decoration: none;
}


/* ============================
   INFOTAP BUTTON COLORS
============================ */
.btn-outline {
  color: #0066cc;
  border: 1.8px solid #ffd968 !important;
  background-color: transparent;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
}
.infotap-btn-outline:hover {
  background-color: #8852c9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(136, 82, 201, 0.3);
}
.infotap-btn-outline.copied {
  background-color: #22c55e;
  color: #fff;
  border-color: #8852c9 !important;
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.35);
}
.infotap-btn-outline i {
  margin-right: 4px;
}

/* ============================
   INFOTAP LINK STYLING
============================ */
#publicUrlLink {
  color: #0066cc;
}
#publicUrlLink:hover {
  color: black;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  box-shadow: 0 2px 0 rgba(136, 82, 201, 0.3);
}

/* ============================
   BRAND BUTTONS & LINKS
============================ */
.btn-primary {
  background-color: #FED254 !important;
  border-color: #ebc046; !important;
  transition: all 0.25s ease-in-out;
  color:black;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #0066cc !important;
  border-color: #0358ad !important;
  color:white;
}
button.btn.btn-success.w-100 {
  background-color: #FED254 !important;
  border-color: #ebc046 !important;
  color:black;
}
a.text-primary {
  color: #8852c9 !important;
  text-decoration: none;
}
a.text-primary:hover {
  color: #6e41a6 !important;
  text-decoration: underline;
}

.text-center.mt-3 a {
  color: #0066cc !important;
}


/* ============================
   HERO SECTION
============================ */
section.bg-light {
  background-color: #fff9e7  !important;
}
.display-5 {
  color: #111;
}
.lead {
  font-size: 1.05rem;
}
.copyright-note {
  font-size: 11px;
  padding-bottom: 15px;
  letter-spacing: 0.2px;
}

/* ============================
   PUBLIC PROFILE BIO
============================ */


.preview .icon-label { color: #334155; }
.preview.bg-dark .icon-label { color: #fff; }

p.profile-bio.mb-0 {
    font-size: 13px;
    padding: 10px 20px 5px 20px;
}

.preview.bg-dark .bio,
body.dark .bio { color: #fff; }

.preview.bg-white .bio,
body.light .bio { color: #000; }

.bio {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-top: 6px;
  margin-bottom: 0;
  white-space: pre-line; /* allows multi-line bios to display properly */
}



/* ============================
   Temp For Old Users
============================ */

.tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-top: 6px;
  margin-bottom: 0;
}

/* ============================
   GENERAL ELEMENTS
============================ */
section { scroll-margin-top: 80px; }
img.shadow, img.shadow-sm { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
img.rounded { border-radius: 12px; }

/* ============================
   BENEFITS SECTION
============================ */
section .col-md-3 img {
  transition: transform 0.3s ease;
}
section .col-md-3 img:hover {
  transform: scale(1.1);
}
section .col-md-3 h6 {
  color: #0066cc;
  font-weight: 600;
  margin-top: 12px;
}

/* ============================
   FAQ SECTION
============================ */
.accordion-button:focus { box-shadow: none !important; }
.accordion-button:not(.collapsed) {
  background-color: #ffd968;
  color: #8852c9;
  box-shadow: none;
}
.accordion-button::after {
  transition: transform 0.25s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}
.accordion-item {
  background-color: #fff;
  border-radius: 8px;
}
.accordion-body {
  line-height: 1.7;
  color: #555;
}

/* ============================
   PROFILE COVER & AVATAR
============================ */

.cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 555; /* keeps perfect proportional height automatically */
  overflow: hidden;
  border-radius: 10px;
  background: #e9ecef; /* fallback background color */
}

.card {  
    border-radius: 0px !important;
    
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* scales image nicely without stretching */
  display: block;
}

/* ===============================
   Avatar Image (1:1 ratio)
   =============================== */
.avatar-wrapper {
  position: relative;
  margin-top: -60px; /* overlap slightly on cover */
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c9c9c9;
  background: #f8f9fa;
}




@media (max-width: 576px) {
  .cover-wrapper { aspect-ratio: 16 / 9; border-radius: 0; }
  .avatar-image { width: 130px; height: 130px; }
}





/* Reset the dropdown toggle button */
.user-avatar,
.user-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
}

/* Avatar image styling */
.user-avatar img,
.user-btn img,
.user-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Remove Bootstrap default caret (the ▼ arrow) */
.user-avatar::after,
.user-btn::after {
    display: none !important;
}

/* Align dropdown menu correctly */
.user-dropdown .dropdown-menu {
    margin-top: 8px;
    border-radius: 10px;
    padding: 8px 0;
}





/* ===============================
   Account Settings Page
=============================== */
.account-settings form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.account-settings h2 {
  color: #1e1e2f;
}

.account-settings button {
  background: linear-gradient(135deg, #6c63ff, #1e1e2f);
  border: none;
}

/* Fix dropdown not visible in navbar */
.navbar,
.user-menu,
.dropdown {
  position: relative;
  overflow: visible !important;
  z-index: 1030;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 2000 !important;
}


/* Account Settings Layout */
form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

form button.btn-primary {
  background: #f8f9fa;
  border: none;
  font-weight: 500;
  color:black;
}

form button.btn-primary:hover {
  opacity: 0.9;
}


/* ===============================
   Unified Infotap Header Styling
   (Applies to dashboard + main header)
=============================== */


.navbar-brand img.infotap-logo {
  height: 40px;
  width: auto;
}

.navbar .btn-outline-primary {
  border-color: #6c63ff;
  background-color: #0066cc;
  color:white;
  transition: all 0.2s ease-in-out;
}

.navbar .btn-outline-primary:hover {
  background-color: #fed254;
  color: black;
 border-color: #ebc046;
}



/* ================================
   CONTACT PAGE STYLES (Infotap)
================================ */
.contact-hero {
      background: linear-gradient(135deg, #fed254 0%, #fedd54 100%);
  padding: 100px 0;
  text-align: center;
}
.contact-hero h1 {
      color: black !important;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0;
}
.contact-section {
  padding: 80px 0;
  background: #fff;
}
.contact-section h2 {
  font-weight: 700;
  color: #2c2c2c;
}
.contact-section p {
  color: #666;
  max-width: 600px;
  margin: 10px auto 40px;
}
.contact-form .form-control {
  border: 1.5px solid #ffd968;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.2s ease-in-out;
}
.contact-form .form-control:focus {
  border-color: #8852c9;
  box-shadow: 0 0 0 0.15rem rgba(136, 82, 201, 0.25);
}
.contact-form .btn {
  border: none;
  color: black;
  padding: 12px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.contact-form .btn:hover {
  background-color: #6e41a6;
  color:white;
}
.contact-wave {
  position: relative;
  overflow: hidden;
}
.contact-wave::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 100px;
  background: url('/assets/img/wave-purple.svg') center/cover no-repeat;
}

/* ================================
   PRICING PAGE (Infotap)
================================ */
.pricing-hero {
      background: linear-gradient(135deg, #fed254 0%, #fedd54 100%);
  color: black;
  padding: 100px 0;
  text-align: center;
}
.pricing-hero h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.pricing-hero p {
  font-size: 1.1rem;
  color: black;
  margin-bottom: 0;
}
.pricing-single {
  transition: all 0.3s ease;
  border-top: 4px solid #7c3aed;
  border-radius: 12px;
}
.pricing-single:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.price-display { color: #0066cc; }
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch-toggle input { display: none; }
.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}
.slider-toggle:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider-toggle { background-color: #7c3aed; }
input:checked + .slider-toggle:before { transform: translateX(26px); }
.discount-badge {
  background-color: #f1e4ff;
  color: #7c3aed;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}
.note-pill {
  display: inline-block;
  background: #7c3aed;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 320px;
}
.benefits-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: start;
  gap: 8px;
}
.benefits-list li::before {
  content: "✔";
  color: #000;
  font-size: 1rem;
  line-height: 1.4;
}
@media (max-width: 576px) {
  .pricing-hero { padding: 80px 20px; }
  .pricing-hero h1 { font-size: 2rem; }
  .pricing-single { padding: 1.5rem; }
  .benefits-list li { font-size: 0.9rem; }
}


/* ============================
   PUBLIC PROFILE (u.php)
============================ */
body.light { background-color: #f8f9fa; }
body.dark { background-color: #111; }
.cardish {
  max-width: 450px;
  margin: auto;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.preview.dark .text-muted,
.dark .text-muted {
  color: #ffffff !important;
}



/* ============================
   DASHBOARD PROFILE IMAGES
============================ */
.cover-preview {
  width: 300px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  display: block;
}
.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  display: block;
}
.avatar {
  position: relative;
  margin: -48px auto 10px auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  z-index: 20;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  justify-items: center;
  margin-top: 12px;
}
.icon-pill {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-color);
  color: #fff;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.icon-pill:hover { transform: translateY(-2px); }
.icon-label {
  font-size: 13px;
  margin-top: 4px;
  color: #444;
}
body.dark .icon-label { color: #ccc; }
.joined-date {
  margin-top:13%;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #000;
}
body.dark .joined-date { color: #fff; }
.text-muted.mt-4 { color: inherit; }


body.light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}
body.dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.icon-pill {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--icon-color);
  color: #fff;
}
.grid-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}


.preview.dark {
  background-color: #111827;
  color: #f9fafb;
}

.preview.dark .icon-pill {
  background: linear-gradient(#6d28d9, #4c1d95);
}


/* ============================
   INFOTAP MODERN ALERTS
============================ */
.infotap-alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  animation: fadeIn 0.3s ease-in-out;
}
.infotap-alert i { font-size: 18px; }
.infotap-alert-success {
  background: linear-gradient(90deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.infotap-alert-danger {
  background: linear-gradient(90deg, #fee2e2, #fecaca);
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}
.fade-in {
  opacity: 0;
  transform: translateY(-5px);
  animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}


/* ============================
   MODERN FLAT FOOTER
============================ */



/* The main content wrapper should grow to fill space */
main {
  flex: 1;
}

.main-footer {
  margin-top: auto;
  background-color: #f9fafc;
  border-top: 1px solid #e4e6eb;
  color: #555;
  text-align: center;
  padding: 28px 10px;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}

.main-footer p {
  margin: 0;
  font-weight: 300;
}

.main-footer a {
  color: #8852c9;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.25s ease;
}

.main-footer a:hover {
  color: #6e41a6;
  text-decoration: underline;
}




/* Simple fade-in animation for smooth appearance */
@keyframes fadeUpFooter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-footer {
  animation: fadeUpFooter 0.5s ease forwards;
}

/* Mobile Tweaks */
@media (max-width: 576px) {
  .main-footer {
    padding: 22px 8px;
    font-size: 0.85rem;
  }
}


/* ============================
   RESPONSIVE TWEAKS
============================ */
@media (max-width: 991px) {
  .navbar-nav { text-align: center; }
  .col-md-3 { margin-bottom: 1.5rem; }
}







