.topbar {
    width: 100%;
    height: 60px;
    background: #1f2937;
    display: flex;
    flex-direction:row;
    align-items: center;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.topbar nav
{
	flex: 1 1 auto;
}

.user-menu 
{
    position: relative;
    width:auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-info:hover {
    background: rgba(255,255,255,0.1);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 180px;
    background: white;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-title {
    font-weight: bold;
    padding: 10px;
    background: #f3f4f6;
    margin: 0;
}

.dropdown-item {
    padding: 10px;
    text-decoration: none;
    color: #333;
    display: block;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #e5e7eb;
}

.logout {
    color: #b91c1c;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

