/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

:root {
  /* Semantic color mapping */
  --primary-light: var(--theme-medium);
  --primary-medium: var(--theme-medium-dark);
  --primary-dark: var(--theme-black);
  --accent: var(--theme-accent);
  
  /* Common UI colors */
  --text-color: var(--theme-black);
  --background-color: var(--theme-light);
  --nav-background: var(--theme-dark);
  --nav-text: var(--theme-white);
}

html, body {
    height:100%;
}

/* Use the root variable for primary color in your CSS */
body {
  background-color: var(--theme-light);
  font-family: 'Ubuntu Sans', sans-serif;
  color: var(--theme-black);
}

nav {
	background-color:var(--primary-dark);
    /* height: 5rem; */
}

.navbar-brand{
	color:var(--theme-white) !important;
	font-size:1.75rem !important;
    font-weight: 700;
    position: relative;
    transition: transform 0.3s ease;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--theme-white);
    transition: width 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link{
	color:var(--theme-white) !important;
    position: relative;
    padding: 0.5rem 0.3rem !important; /* Reduce padding */
    margin: 0 0.3rem !important; /* Add small margin for minimal spacing */
    transition: transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--theme-white);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--theme-white) !important;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-expand-lg{
    font-size:1.2rem !important;
}

/* Navbar item spacing adjustments */
.navbar-nav .nav-item {
    margin: 0 0.3rem !important; /* Improved spacing for nav items */
}

.navbar-nav {
    gap: 0.2rem; /* Add small gap between items */
}

/* buttons */




#header_middle_letter{
    color: var(--primary-light);
}

a {
  color:var(--primary-light);
}

a:hover {
  color: var(--primary-medium) !important;
  /* text-decoration: none !important; */
  /* font-size:1.3rem !important; */
}

h1, h2, h3, h4, h5, h6 {
  /* font-family: "Raleway", sans-serif;
   */
   font-family: 'Ubuntu Sans', sans-serif;
}


/* footer */

.footer-lemos {
  background-color: var(--primary-dark);
  font-size: smaller;
}

.footer-lemos-nifme {
    background-color: var(--darker-b);
    font-size: smaller;
  }

.footer-icons{
    color: var (--primary-light);   
}

.footer-icons:hover{
    color: var(--primary-medium);   
}


#page-container {
    position: relative;
    /* min-height: 94%; */
    min-height:93vh;
  }
  
#content-wrap {
    /* padding-bottom: 100px;    Footer height */
    padding-bottom: 2.5rem;    /*Footer height*/
    /* padding-top: 5rem; */
}

#footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* height: 100px;            Footer height */
    height: 2.5rem;            /*Footer height*/
    
}


/* Language switcher styles */
.language-switcher {
  display: flex;
  /* align-items: center; */
  margin-left: 0.5rem !important;
  padding-bottom: 5px;
  border-left: 1px solid var(--light-gray);
  padding-left: 1rem;
  gap: 0.5rem; /* Language switcher improvements */
}

.language-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--theme-white) !important;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.language-btn:hover {
  color: var(--theme-white) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.language-btn.active {
  color: var(--white-ish) !important;
  font-weight: bold;
  border-color: var(--light-gray);
  background-color: rgba(255, 255, 255, 0.15);
}

.language-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
}

@media (max-width: 991.98px) {
  .language-switcher {
    border-left: none;
    margin-top: 0.5rem;
    padding-left: 0;
  }
  
  .language-btn {
    margin: 0 0.25rem;
  }
}

/* Theme toggle button styles */
.theme-toggle-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 2px solid var(--theme-white);
width: 2.5rem;  /* Fixed width */
    height: 2.5rem; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    color: var(--theme-white);
width: 1.2rem;   /* Fixed width */
    height: 1.2rem;  /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn svg {
    color: var(--theme-white);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Remove Bootstrap's default outline styles */
.theme-toggle-btn:focus,
.theme-toggle-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Theme-dependent styles */
[data-theme="light"] .dark-icon,
[data-theme="dark"] .light-icon {
    display: none !important;
}

[data-theme="light"] .light-icon,
[data-theme="dark"] .dark-icon {
    display: inline-block !important;
}

/* Update navbar styles for theme switching */
.navbar-toggler {
    border: 2px solid var(--theme-white) !important;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler-icon .my-fa-navbar-icon {
  color:rgba(var(--theme-white), 1) !important;
  font-size:28px;
}

.nav-separator {
    margin: 0 0.5rem !important;
}

/* Navbar layout improvements */
.navbar {
    padding: 0.5rem 1rem;
}

.container-fluid {
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
}

/* Theme toggle positioning */
.theme-toggle-wrapper {
    margin-left: 1rem;
    margin-right: 1rem;
    /* display: flex; */
    /* align-items: center; */
}

/* Center nav items on larger screens */
@media (min-width: 992px) {
    .navbar-nav {
        margin: 0 auto;
    }

    .language-switcher-wrapper {
        margin-left: auto;
    }
}

/* Mobile improvements */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-right: auto;
    }

    .theme-toggle-wrapper {
        order: 2;
        margin-right: 1rem;
    }

    .navbar-toggler {
        order: 3;
    }

    .language-switcher-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    #navbarCollapse {
        margin-top: 0.5rem;
    }
}
