/* Reset default styles */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/* Color scheme */
:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
}

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* Global styles */
html {
  overflow-x: hidden
}

body {
  line-height: 1.5;
  color: black;
  background-color: whitesmoke;
}

/* Utility classes */
.hidden {
  display: none !important;
}

a {
  text-decoration: none;
  color: #007bff;
}

/* Noto Sans Variable Font */
@font-face {
  font-family: 'Noto Sans';
  src: url('/Fonts/Noto_Sans/static/NotoSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* Variable weight from 100 to 900 */
  font-style: normal;
}

@font-face {
  font-family: 'Noto Sans';
  src: url('/Fonts/Noto_Sans/static/NotoSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* Variable weight from 100 to 900 */
  font-style: italic;
}

/* Ubuntu Fonts */
@font-face {
  font-family: 'Ubuntu';
  src: url('/Fonts/Ubuntu/Ubuntu-Regular.ttf') format('truetype');
  font-weight: 400; /* Regular */
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/Fonts/Ubuntu/Ubuntu-Bold.ttf') format('truetype');
  font-weight: 700; /* Bold */
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/Fonts/Ubuntu/Ubuntu-Italic.ttf') format('truetype');
  font-weight: 400; /* Regular Italic */
  font-style: italic;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/Fonts/Ubuntu/Ubuntu-BoldItalic.ttf') format('truetype');
  font-weight: 700; /* Bold Italic */
  font-style: italic;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/Fonts/Ubuntu/Ubuntu-Light.ttf') format('truetype');
  font-weight: 300; /* Light */
  font-style: normal;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/Fonts/Ubuntu/Ubuntu-LightItalic.ttf') format('truetype');
  font-weight: 300; /* Light */
  font-style: italic;
}


@font-face {
  font-family: 'Ubuntu';
  src: url('/Fonts/Ubuntu/Ubuntu-Medium.ttf') format('truetype');
  font-weight: 500; /* Medium */
  font-style: normal;
}

/* Raleway Variable Font */
@font-face {
  font-family: 'Raleway';
  src: url('/Fonts/Raleway/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* Variable weight from 100 to 900 */
  font-style: normal;
}

@font-face {
  font-family: 'Raleway';
  src: url('/Fonts/Raleway/static/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* Variable weight from 100 to 900 */
  font-style: italic;
}

/* Apply Fonts */
body, p, i, div, span, a {
  font-family: 'Ubuntu', sans-serif;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
}


/* Logo */
#logo {
  width: 10em;
  position: fixed;
  top: 20px;
  right: 3%;
  z-index: 1000;
}

/* Logo visibility on dashboard vs other pages */
body[data-page="dashboard"] #logo {
  display: none;
}

body[data-page="other"] #logo,
body:not([data-page="dashboard"]) #logo {
  display: block;
}

@media (max-width: 1024px) {
  body[data-page="other"] #logo,
  body:not([data-page="dashboard"]) #logo {
    width: 6em;
    top: 15px;
    right: 2%;
    position: absolute;
    display: block;
  }

  body[data-page="dashboard"] #logo {
    display: none;
  }

  /* Ensure login pages have proper spacing */
  body.login main,
  body.leaders-login main {
    margin-top: 80px;
  }

  #partners {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body[data-page="dashboard"] #logo {
    display: none;
  }
  
  /* Hide logo on mobile auth pages to prevent blocking */
  body.login #logo,
  body.leaders-login #logo {
    display: none !important;
  }
  
  /* Show smaller logo on other mobile pages */
  body[data-page="other"]:not(.login):not(.leaders-login) #logo,
  body:not([data-page="dashboard"]):not(.login):not(.leaders-login) #logo {
    width: 4em;
    top: 10px;
    right: 2%;
    position: absolute;
    display: block;
  }
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: white;
  border-top: 1px solid #e9ecef;
  font-size: 12px;
  font-weight: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  max-height: 35px;
  min-height: 35px;
  z-index: 100;
}

/* Additional mobile responsiveness improvements */
@media (max-width: 480px) {
  /* Further hide logo on small screens for auth pages */
  body.login #logo,
  body.leaders-login #logo {
    display: none !important;
  }
  
  /* Very small logo for other pages */
  body[data-page="other"]:not(.login):not(.leaders-login) #logo,
  body:not([data-page="dashboard"]):not(.login):not(.leaders-login) #logo {
    width: 3.5em;
    top: 8px;
    right: 2%;
    position: absolute;
    display: block;
  }
  
  /* Reduce footer height on mobile */
  #footer {
    height: 30px;
    max-height: 30px;
    min-height: 30px;
    font-size: 10px;
  }
  
  /* Improve mobile spacing */
  body {
    padding-bottom: 40px;
  }
}

@media (max-width: 320px) {
  /* Hide logo completely on very small screens */
  #logo {
    display: none !important;
  }
  
  #footer {
    height: 25px;
    max-height: 25px;
    min-height: 25px;
    font-size: 9px;
  }
}

/* Floating Partner Logos */
.floating-partners {
  position: fixed;
  right: 3%;
  top: 120px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.floating-partners.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.partner-logo {
  width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(50px) scale(0.8);
  background: white;
  padding: 8px;
}

.partner-logo.animate-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.partner-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile Partner Logos */
.mobile-partners {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  position: fixed;
  bottom: 30px; /* Above the fixed footer */
  left: 0;
  right: 0;
  z-index: 100;
}

.mobile-partners-title {
  text-align: center;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.partner-logo-mobile {
  width: 70px;
  height: auto;
  border-radius: 8px;
  background: white;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.partner-logo-mobile:hover {
  transform: scale(1.05);
}

/* Back to Top Button (Mobile Only) */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  backdrop-filter: blur(10px);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(98, 178, 47, 0.3);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
  transition: all 0.1s ease;
}

.back-to-top.show {
  opacity: 0.9;
  transform: translateY(0) scale(1);
}

.back-to-top.show:hover {
  opacity: 1;
}

.back-to-top svg {
  margin: 0 auto;
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-height: 500px) {
  #footer {
    display: none;
  }
}

/* Mobile responsive styles */
@media (max-width: 1500px) {
  .floating-partners {
    display: none !important;
  }
  
  .mobile-partners {
    display: none !important; /* Hide the fixed mobile partners */
  }
  
  #footer {
    position: fixed; /* Keep footer fixed at bottom always */
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    max-height: 30px;
    min-height: 30px;
    font-size: 11px;
    background: white;
    border-top: 1px solid #e2e8f0;
    z-index: 101;
  }
  
  /* Reduce bottom padding since mobile partners are hidden */
  body {
    padding-bottom: 30px; /* Only space for footer */
  }
  
  /* Remove Excode logo fixed positioning on smaller screens */
  #logo {
    position: static !important;
    top: auto;
    right: auto;
    margin: 20px auto;
    display: block;
  }
}

/* Back to top button only shows from 768px and below */
@media (max-width: 768px) {
  .back-to-top {
    display: block;
  }
}

/* Adjust positioning on very small screens */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 16px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
  
  /* Ensure button doesn't interfere with footer */
  body {
    padding-bottom: 50px;
  }
  
  #footer {
    height: 30px;
  }
}

@media (max-width: 320px) {
  .back-to-top {
    bottom: 12px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  
  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
  
  body {
    padding-bottom: 45px;
  }
  
  #footer {
    height: 25px;
  }
}

@media (max-width: 480px) {
  .partner-logo-mobile {
    width: 60px;
  }
  
  .mobile-partners {
    gap: 15px;
    padding: 15px;
  }
}

#partners {
  display: none; /* Hide old partners div */
}

#partners img {
  display: none; /* Hide old partner images */
}