/* Header Navigation */
header {
    background-color: #fff;
    /* background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    height: var(--header-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 400;
  }

.nav-menu .greeting {
  font-weight: 600;
  color: var(--primary-brand-dark);
  margin-right: 20px;
  font-size: 1rem;
}

.nav-menu a.active {
  color: var(--accent-brand-green);
  font-weight: bold;
  border-bottom: 2px solid var(--accent-brand-green);
  padding-bottom: 4px;
}
  
.navbar {
    width: 98%;
    /* max-width: 1280px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
.logo img {
    height: 40px;
    width: auto;
    padding: 5px;
  }
  
.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
  }
  
.nav-menu li {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-color);
  }
  
.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease-in-out;
  }
  
.nav-menu a:hover {
    color: var(--accent-color);
  }

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    overflow-x: clip;
  }
  
main {
    flex: 1;
  }

/* SETTINGS */

.settings-menu {
    position: relative;
}

.settings-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color .2s ease;
}

.settings-btn:hover {
    background: rgba(0,0,0,0.04);
}

.gear-icon {
    font-size: 1.4rem;
    color: var(--primary-brand-dark);
    display: inline-block;
    transform-origin: center center;
    transition: transform .5s ease;
    width: 24px;
    height: 24px;
}

/* .settings-btn:hover .gear-icon {
    transform: rotate(180deg);
} */

/* DROPDOWN */

.settings-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    /* transform: translateY(-5px); */
    transition:
        opacity .2s ease,
        /* transform .2s ease, */
        visibility .2s;
}

.settings-menu:hover
.settings-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-dropdown a {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background .15s ease;
}

.settings-dropdown a:hover {
    background: var(--background-color);
}

.settings-dropdown hr {
  margin: -5px;
}
  
  /* Footer styles */
footer {
    text-align: center;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--footer-height);
    background-color: var(--footer-bg);
    font-family: var(--font-family);
    color: var(--footer-text-color);
    width: 100vw;
  }
  
.footer-content {
    width: 95%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
  }
  
.flaticon-credit {
    font-size: 8px;
    font-style: italic;
    color: var(--footer-text-color, white);
    text-decoration: none;
  }

.login-button {
    background-color: var(--primary-brand-dark);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    float: right; /* Keeps it on the right as per your old template */
    margin-right: 3%;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: var(--highlight-brand-gray);
    /* background-color: #525557; */
}

/* =========================
   LEFT MENU
   ========================= */

.side-menu {
    width: 230px;
    min-width: 230px;
    background-color: #ffffff;
    border-right: 1px solid #e1e4e8;
    padding: 20px 0;
}

.side-menu-header {
    padding: 0 20px 20px;
    font-size: 20px;
    font-weight: 600;
    color: #222;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 10px;
}

.side-menu nav {
    display: flex;
    flex-direction: column;
}

.menu-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 13px 20px;
    text-align: left;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.menu-item a {
  text-decoration: none;
  font-size: 14px;
  color: #555;
}

.menu-item:hover {
    background-color: #f3f5f7;
    color: #222;
}

.menu-item.active {
    background-color: #eaf2ff;
    color: #1769d1;
    border-left-color: #1769d1;
    font-weight: 600;
    pointer-events: none;
}

.menu-item.active a {
    color: #1769d1;
    font-weight: 600;
    pointer-events: none;
}

.menu-item.inactive {
    color: var(--text-muted);
    pointer-events: none;
}