/* ============================================================================
   NRICH TOOLBAR CSS
   Adapted from main system styling with nrich.work colors
   ============================================================================ */

body {
    background-color: #1a183a !important;
}

.nrich-toolbar {
    background-color: #15132F;
    border-bottom: 1px solid #4D3894;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    font-family: 'Poppins', system-ui, sans-serif;
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.nrich-toolbar-logo {
    height: 60px;
    width: auto;
    display: block;
}

.nrich-toolbar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.nrich-toolbar-link {
    color: #a8b4c4;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

    .nrich-toolbar-link:hover {
        color: #ffffff;
    }

    .nrich-toolbar-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #6366f1;
        transition: width 0.2s ease;
    }

    .nrich-toolbar-link:hover::after {
        width: 100%;
    }

.nrich-toolbar-cta {
    background-color: #6366f1;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

    .nrich-toolbar-cta:hover {
        background-color: #4f46e5;
    }

/* ============================================================================
   TOOLBAR BUTTON - matches main system styling
   ============================================================================ */
.toolbar-button {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #4D3894;
    background-color: #1e1b4b;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

    .toolbar-button:hover {
        background-color: #2d2a5e;
    }

/* ============================================================================
   DROPDOWN - matches main system styling
   ============================================================================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e1b4b;
    width: max-content;
    min-width: 240px;
    border: 1px solid #4D3894;
    border-radius: 0.375rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu a {
        display: block;
        padding: 0.75rem 1rem;
        color: #a8b4c4;
        white-space: nowrap;
        border-bottom: 1px solid #4D3894;
        text-decoration: none;
    }

        .dropdown-menu a:last-child {
            border-bottom: none;
        }

        .dropdown-menu a:hover {
            background-color: #2d2a5e;
            color: #ffffff;
        }

/* Icon support for dropdown items */
.dropdown-item-with-icon {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.dropdown-menu img {
    flex-shrink: 0;
}

/* Nav section - mobile only */
.dropdown-menu-nav {
    display: none;
}

/* Settings section - always visible */
.dropdown-menu-settings {
    display: block;
}

    .dropdown-menu-settings a:last-child {
        border-bottom: none;
    }

/* Divider between nav and settings sections */
.dropdown-menu-divider {
    height: 1px;
    background-color: #4D3894;
    margin: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .nrich-toolbar {
        position: relative;
    }

    .nrich-toolbar-nav {
        display: none;
    }

    .nrich-toolbar-logo {
        height: 45px;
        margin-right: 1rem;
    }

    /* Show nav section in dropdown on mobile */
    .dropdown-menu-nav {
        display: block;
    }
}

.dropdown {
    position: relative;
    margin-left: 1rem;
}