.navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}

.navbar-brand {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    justify-content: center;
}

.navbar-brand:hover {
    color: #00ff87;
    text-decoration: none;
}

.app-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.navbar-toggler {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
    margin-left: auto;
    display: block;
}

.navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.top-row.navbar {
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-link {
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 4px 0;
    transition: all 0.2s ease;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background-color: rgba(0, 255, 135, 0.1);
    color: #00ff87;
    font-weight: 500;
}

.nav-link .oi {
    font-size: 1.1rem;
    color: #a0a0a0;
    transition: color 0.2s;
}

.nav-link:hover .oi {
    color: white;
}

.nav-link.active .oi {
    color: #00ff87;
}

.logout-button {
    color: #ff6b6b;
    font-weight: 500;
}

.logout-button:hover {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.logout-button .oi {
    color: #ff6b6b;
}

.logout-button:hover .oi {
    color: #ff6b6b;
}

.nav-scrollable {
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    overflow-y: auto;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 640.98px) {
    .nav-scrollable {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        padding-top: 3.5rem;
    }

    .nav-scrollable.show {
        display: block;
        animation: slideIn 0.3s ease-out;
    }

    .navbar-toggler {
        display: block;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (min-width: 641px) {
    .navbar {
        position: relative;
    }

    .nav-scrollable {
        display: block;
        position: fixed;
        top: 3.5rem;
        left: 0;
        width: 250px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: hidden;
    }

    .navbar-toggler {
        display: none;
    }
}