/* Custom MiaCatBot Navbar - Independent of Bulma */
:root {
    --bg-primary: #181c24;
    --bg-secondary: #23283a;
    --bg-tertiary: #2c3244;
    --bg-accent: #202735;
    --text-primary: #e0e6ef;
    --text-secondary: #bec4cf;
    --text-muted: #888;
    --accent-primary: #7ecfff;
    --accent-secondary: #5bbbe0;
    --accent-purple: #4a148c;
    --accent-purple-hover: #6a1b9a;
    --success: #66bb6a;
    --warning: #ffa726;
    --error: #ef5350;
    --border-color: #4a5368;
    --shadow: rgba(0,0,0,0.18);
}
.custom-navbar {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: var(--bg-secondary);
    box-shadow: 0 4px 16px var(--shadow);
    backdrop-filter: blur(10px);
}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-menu {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.navbar-start, .navbar-end {
    display: flex;
    align-items: center;
}
.navbar-item {
    color: #afb2bd;
    text-decoration: none;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 4px;
}

.navbar-item:hover {    
    color: #7ecfff;
    background: rgba(126, 207, 255, 0.1);
}
.navbar-item.active {
    color: #fff;
    font-weight: bold;
}
.navbar-brand {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-button {
    background: var(--accent-purple, #4a148c);
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: auto; /* let button size fit content */
    margin-left: 0; /* remove default margin */
}
.custom-button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25em; /* slight space between icon and text */
}
/* Only add margin to buttons after the first in a group */
.navbar-end .custom-button:not(:first-child) {
    margin-left: 12px;
}

.custom-button:hover {
    background: var(--accent-purple-hover, #6a1b9a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 20, 140, 0.3);
}
.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #7ecfff;
}

.navbar-burger span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: currentColor;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.navbar-burger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.login-status {
    color: #7ecfff;
    margin-right: 1rem;
    font-size: 0.875rem;
}

/* Add dropdown menu fixes */
.navbar-item.has-dropdown {
  position: relative;
}
.navbar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #23283a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 100;
  display: none;
}
.navbar-item.has-dropdown:hover .navbar-dropdown {
  display: block;
}
.navbar-dropdown .navbar-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: #a5a5a5;
  background: none;
  margin: 0;
  min-height: 40px;
}
.navbar-dropdown .navbar-item:hover {
  background: #202735;
  color: #7ecfff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar-burger {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #181c24;
        border-top: 1px solid #2c3244;
        flex-direction: column;
        padding: 1rem;
    }
    
    .navbar-menu.is-active {
        display: flex;
    }
    
    .navbar-start {
        flex-direction: column;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-end {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
    }
    
    .navbar-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem;
        margin: 0.25rem 0;
    }
}